step: fix meson
This commit is contained in:
parent
32b0253a55
commit
64e9506555
|
@ -17,12 +17,14 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <mongoc.h>
|
|
||||||
|
|
||||||
#include "ogs-dbi.h"
|
#include "ogs-dbi.h"
|
||||||
|
|
||||||
int __ogs_dbi_domain;
|
int __ogs_dbi_domain;
|
||||||
|
|
||||||
|
#ifdef OGS_DBI_WITH_MONGODB
|
||||||
|
#include <mongoc.h>
|
||||||
|
|
||||||
|
|
||||||
static ogs_mongoc_t self;
|
static ogs_mongoc_t self;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -24,12 +24,11 @@
|
||||||
#ifndef OGS_MONGOC_H
|
#ifndef OGS_MONGOC_H
|
||||||
#define OGS_MONGOC_H
|
#define OGS_MONGOC_H
|
||||||
|
|
||||||
#include <mongoc.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
|
||||||
typedef struct ogs_mongoc_s {
|
typedef struct ogs_mongoc_s {
|
||||||
bool initialized;
|
bool initialized;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
|
@ -115,7 +115,7 @@ subdir('src')
|
||||||
subdir('misc')
|
subdir('misc')
|
||||||
# Don't build the tests unless we can run them (either natively or in an exe wrapper)
|
# Don't build the tests unless we can run them (either natively or in an exe wrapper)
|
||||||
build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper())
|
build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper())
|
||||||
if build_tests
|
if build_tests and get_option('mongodb')
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue