X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=c789fca3c92f82311265e21f73b38e971d910b84;hb=c8558c8a28966110aa3a356f95d3c60afe32b64a;hp=f72d312ea08f5d49bd3d00e97270741f270ac8ff;hpb=ca820c65c2b03a24e8936218171c6c1d138fd1f7;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f72d312e..c789fca3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ ########################################################################### -# Copyright 2015, 2016, 2017 IoT.bzh +# Copyright (C) 2015-2018 "IoT.bzh" # # author: José Bollo # @@ -26,7 +26,6 @@ ADD_DEFINITIONS(-DINFER_EXTENSION) ADD_LIBRARY(afb-lib STATIC afb-api.c - afb-api-dbus.c afb-api-dyn.c afb-api-so.c afb-api-so-v1.c @@ -75,6 +74,11 @@ ADD_LIBRARY(afb-lib STATIC wrap-json.c ) +IF(INCLUDE_DBUS_TRANSPARENCY) + ADD_DEFINITIONS(-DWITH_DBUS_TRANSPARENCY) + TARGET_SOURCES(afb-lib PUBLIC afb-api-dbus.c) +ENDIF() + ########################################### # build and install afb-daemon ########################################### @@ -89,13 +93,15 @@ INSTALL(TARGETS afb-daemon ########################################### # build and install afb-daemon ########################################### -ADD_EXECUTABLE(afs-supervisor afs-supervisor.c afs-discover.c) -TARGET_LINK_LIBRARIES(afs-supervisor - afb-lib - ${link_libraries} -) -INSTALL(TARGETS afs-supervisor - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +IF(INCLUDE_SUPERVISOR) + ADD_EXECUTABLE(afs-supervisor afs-main.c afs-supervisor.c afs-discover.c afs-config.c) + TARGET_LINK_LIBRARIES(afs-supervisor + afb-lib + ${link_libraries} + ) + INSTALL(TARGETS afs-supervisor + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +ENDIF() ########################################### # build and install libafbwsc