summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-07-05 16:27:54 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-07-05 19:17:03 +0200
commit0d05349094ced7eeb487e572beb90fa44dd2ebe0 (patch)
tree57af8fbbe793a8b7a1b625525cc0f09646f7f16e /src
parent65bbbd793955336bad0fe80e48f952a2a9a5e6bf (diff)
Simplify build process
Allows to compile all files even if it isn't required to simplify the build process. Change-Id: Ie09e99794aa9f57b179c7e4cfa882859958beb7a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r--src/afb-api-dbus.c3
-rw-r--r--src/afb-api-so-v1.c4
-rw-r--r--src/afb-api-so-vdyn.c4
3 files changed, 11 insertions, 0 deletions
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 <stdio.h>
@@ -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 <stdlib.h>
@@ -59,3 +61,5 @@ int afb_api_so_vdyn_add(const char *path, void *handle, struct afb_apiset *decla
return 1;
}
+#endif
+