[dbi]: move all mongo related files into subdirectory
This commit is contained in:
parent
8b3abcce2d
commit
68efeac909
|
@ -15,18 +15,24 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
libdbi_sources = files('''
|
|
||||||
|
dbi_sources = files('''
|
||||||
ogs-dbi.h
|
ogs-dbi.h
|
||||||
|
'''.split())
|
||||||
|
libdbi_sources = [dbi_sources]
|
||||||
|
|
||||||
ogs-mongoc.h
|
mongo_sources = files('''
|
||||||
|
mongo/ogs-mongoc.h
|
||||||
ogs-mongoc.c
|
mongo/ogs-mongoc.c
|
||||||
subscription.c
|
mongo/subscription.c
|
||||||
session.c
|
mongo/session.c
|
||||||
ims.c
|
mongo/ims.c
|
||||||
'''.split())
|
'''.split())
|
||||||
|
|
||||||
libmongoc_dep = dependency('libmongoc-1.0')
|
libmongoc_dep = dependency('libmongoc-1.0', required: true)
|
||||||
|
if libmongoc_dep.found()
|
||||||
|
libdbi_sources += [mongo_sources]
|
||||||
|
endif
|
||||||
|
|
||||||
libdbi_inc = include_directories('.')
|
libdbi_inc = include_directories('.')
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#define OGS_DBI_INSIDE
|
#define OGS_DBI_INSIDE
|
||||||
|
|
||||||
/* TODO: remove ogs-mongoc.h as soon the test cases don't depend on it */
|
/* TODO: remove ogs-mongoc.h as soon the test cases don't depend on it */
|
||||||
#include "dbi/ogs-mongoc.h"
|
#include "dbi/mongo/ogs-mongoc.h"
|
||||||
|
|
||||||
#include "dbi/subscription.h"
|
#include "dbi/subscription.h"
|
||||||
#include "dbi/session.h"
|
#include "dbi/session.h"
|
||||||
|
|
Loading…
Reference in New Issue