From 8c477651f8ea635157cd4421c507020c50a0a451 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 15 Aug 2023 14:43:37 +0200 Subject: [PATCH] add missing stuff to remove mongodb --- lib/dbi/meson_dummy.h | 34 ++++++++++++++++++++++++++++++++++ src/meson.build | 4 +++- src/sepp/n32c-build.h | 2 ++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 lib/dbi/meson_dummy.h diff --git a/lib/dbi/meson_dummy.h b/lib/dbi/meson_dummy.h new file mode 100644 index 000000000..09be9358e --- /dev/null +++ b/lib/dbi/meson_dummy.h @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2019-2022 by Sukchan Lee + * + * This file is part of Open5GS. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef MESON_DUMMY_H +#define MESON_DUMMY_H + +#ifdef __cplusplus +extern "C" { +#endif + +struct dummy_bson; +typedef struct dummy_bson bson_t; + +#ifdef __cplusplus +} +#endif + +#endif /* MESON_DUMMY_H */ diff --git a/src/meson.build b/src/meson.build index 8dd3eaa2e..3807f03f9 100644 --- a/src/meson.build +++ b/src/meson.build @@ -34,7 +34,9 @@ version_conf.set_quoted('OPEN5GS_VERSION', package_version) configure_file(output : 'version.h', configuration : version_conf) subdir('mme') -subdir('hss') +if get_option('mongodb') + subdir('hss') +endif subdir('sgwc') subdir('sgwu') subdir('pcrf') diff --git a/src/sepp/n32c-build.h b/src/sepp/n32c-build.h index ce66bc941..113e1ff72 100644 --- a/src/sepp/n32c-build.h +++ b/src/sepp/n32c-build.h @@ -22,6 +22,8 @@ #include "context.h" +#include "meson_dummy.h" + #ifdef __cplusplus extern "C" { #endif