X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=ee0adb442fd5175579f4a1015ab004eaea9f01a2;hb=refs%2Fchanges%2F03%2F22003%2F1;hp=b1475e315a083ce44c7b43a6e2921a6332844538;hpb=ec0564bc90b3c63f7e82f09e81db8bd2cfac89a2;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b1475e31..ee0adb44 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -20,12 +20,12 @@ if (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9) message(FATAL_ERROR "Require at least gcc-4.9") endif(CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9) -ADD_DEFINITIONS(-DBINDING_INSTALL_DIR="${binding_install_dir}") +ADD_DEFINITIONS(-DINTRINSIC_BINDING_DIR="${INTRINSIC_BINDING_DIR}") # Always add INFER_EXTENSION (more details in afb-hreq.c) ADD_DEFINITIONS(-DINFER_EXTENSION) ############################################################################ -# TODO: improve below setting +# TODO: improve below setting by using config file option(WITH_SIG_MONITOR_DUMPSTACK "activate dump stack on error" ON) option(WITH_SIG_MONITOR_SIGNALS "activate handling of signals" ON) option(WITH_SIG_MONITOR_FOR_CALL "activate monitoring of calls" ON) @@ -37,6 +37,7 @@ option(WITH_DBUS_TRANSPARENCY "Allows API transparency over DBUS" OFF) option(WITH_LEGACY_BINDING_V1 "Includes the legacy Binding API version 1" OFF) option(WITH_LEGACY_BINDING_V2 "Includes the legacy Binding API version 2" ON) option(WITH_LEGACY_BINDING_VDYN "Includes the legacy Binding API version dynamic" OFF) +option(WITH_DYNAMIC_BINDING "Allow to load dynamic bindings (shared libraries)" ON) if(INCLUDE_SUPERVISOR) set(WITH_SUPERVISOR ON) @@ -52,6 +53,7 @@ if(INCLUDE_LEGACY_BINDING_VDYN) endif() add_definitions( + -DAGL_DEVEL=$ -DWITH_SIG_MONITOR_DUMPSTACK=$ -DWITH_SIG_MONITOR_SIGNALS=$ -DWITH_SIG_MONITOR_FOR_CALL=$ @@ -63,6 +65,7 @@ add_definitions( -DWITH_LEGACY_BINDING_VDYN=$ -DWITH_DBUS_TRANSPARENCY=$ -DWITH_SUPERVISION=$ + -DWITH_DYNAMIC_BINDING=$ ) ############################################################################ @@ -120,6 +123,7 @@ SET(AFB_LIB_SOURCES sig-monitor.c subpath.c systemd.c + uuid.c verbose.c watchdog.c websock.c