From 0d05349094ced7eeb487e572beb90fa44dd2ebe0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Thu, 5 Jul 2018 16:27:54 +0200 Subject: [PATCH] Simplify build process MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Allows to compile all files even if it isn't required to simplify the build process. Change-Id: Ie09e99794aa9f57b179c7e4cfa882859958beb7a Signed-off-by: José Bollo --- coverage/bin/Makefile | 4 ++-- src/afb-api-dbus.c | 3 +++ src/afb-api-so-v1.c | 4 ++++ src/afb-api-so-vdyn.c | 4 ++++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/coverage/bin/Makefile b/coverage/bin/Makefile index c033ffd4..3cabefa1 100644 --- a/coverage/bin/Makefile +++ b/coverage/bin/Makefile @@ -25,8 +25,8 @@ cflags = -I$(incdir) \ $(shell pkg-config --cflags --libs openssl libmicrohttpd json-c libsystemd uuid) \ -ldl -lrt -lpthread -afb_lib_src = $(shell ls $(srcdir)/*.c | egrep -v '/afs-|/main-|-so-v1|-so-vdyn|-fake|-api-dbus|-api-v1' ) -afb_clib_src = $(shell ls $(srcdir)/*.c | egrep -v '/afs-|/main-|-so-v1|-so-vdyn|-fake|-api-dbus|-api-v1|afb-supervision' ) +afb_lib_src = $(shell ls $(srcdir)/*.c | egrep -v '/afs-|/main-|-fake' ) +afb_clib_src = $(shell ls $(srcdir)/*.c | egrep -v '/afs-|/main-|-fake|afb-supervision' ) afb_daemon_srcs = $(srcdir)/main-afb-daemon.c $(afb_lib_src) afb_daemon_defs = '-DAFB_VERSION="cov"' -DAGL_DEVEL -DWITH_MONITORING_OPTION '-DBINDING_INSTALL_DIR="fake"' diff --git a/src/afb-api-dbus.c b/src/afb-api-dbus.c index a1e15fd3..dbafebe6 100644 --- a/src/afb-api-dbus.c +++ b/src/afb-api-dbus.c @@ -15,6 +15,8 @@ * limitations under the License. */ +#if defined(WITH_DBUS_TRANSPARENCY) + #define _GNU_SOURCE #define NO_PLUGIN_VERBOSE_MACRO @@ -1013,4 +1015,5 @@ error: return -1; } +#endif diff --git a/src/afb-api-so-v1.c b/src/afb-api-so-v1.c index 7db686d8..c7b40e8d 100644 --- a/src/afb-api-so-v1.c +++ b/src/afb-api-so-v1.c @@ -15,6 +15,8 @@ * limitations under the License. */ +#if defined(WITH_LEGACY_BINDING_V1) + #define _GNU_SOURCE #include @@ -217,3 +219,5 @@ error: return -1; } +#endif + diff --git a/src/afb-api-so-vdyn.c b/src/afb-api-so-vdyn.c index 17344945..bb37f0fd 100644 --- a/src/afb-api-so-vdyn.c +++ b/src/afb-api-so-vdyn.c @@ -15,6 +15,8 @@ * limitations under the License. */ +#if defined(WITH_LEGACY_BINDING_VDYN) + #define _GNU_SOURCE #include @@ -59,3 +61,5 @@ int afb_api_so_vdyn_add(const char *path, void *handle, struct afb_apiset *decla return 1; } +#endif + -- 2.16.6