X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=f72d312ea08f5d49bd3d00e97270741f270ac8ff;hb=9e8fda2954d951ea819dbddfe5afe466b2306074;hp=338f1cef3bec23a3bf7fc634a5a3e000e6cf0d2e;hpb=ba1f3e26cb5f5f3e95480cb5c6a519a87c4c5d88;p=src%2Fapp-framework-binder.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 338f1cef..f72d312e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -20,15 +20,6 @@ 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) -INCLUDE(FindPkgConfig) - -ADD_SUBDIRECTORY(genskel) - -IF(WITH_BINDER) -########################################### - -ADD_SUBDIRECTORY(tests) - ADD_DEFINITIONS(-DBINDING_INSTALL_DIR="${binding_install_dir}") # Always add INFER_EXTENSION (more details in afb-hreq.c) ADD_DEFINITIONS(-DINFER_EXTENSION) @@ -51,6 +42,7 @@ ADD_LIBRARY(afb-lib STATIC afb-debug.c afb-evt.c afb-export.c + afb-fdev.c afb-hook.c afb-hreq.c afb-hsrv.c @@ -61,6 +53,8 @@ ADD_LIBRARY(afb-lib STATIC afb-proto-ws.c afb-session.c afb-stub-ws.c + afb-supervision.c + afb-systemd.c afb-trace.c afb-websock.c afb-ws-client.c @@ -68,10 +62,12 @@ ADD_LIBRARY(afb-lib STATIC afb-ws.c afb-wsj1.c afb-xreq.c + fdev.c + fdev-epoll.c + fdev-systemd.c jobs.c locale-root.c process-name.c - sd-fds.c sig-monitor.c subpath.c verbose.c @@ -90,10 +86,21 @@ TARGET_LINK_LIBRARIES(afb-daemon INSTALL(TARGETS afb-daemon RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) +########################################### +# 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}) + ########################################### # build and install libafbwsc ########################################### -ADD_LIBRARY(afbwsc SHARED afb-ws.c afb-ws-client.c afb-wsj1.c websock.c afb-proto-ws.c jobs-fake.c) +ADD_LIBRARY(afbwsc SHARED afb-ws.c afb-ws-client.c afb-wsj1.c websock.c afb-proto-ws.c jobs-fake.c fdev.c fdev-systemd.c) SET_TARGET_PROPERTIES(afbwsc PROPERTIES VERSION ${LIBAFBWSC_VERSION} SOVERSION ${LIBAFBWSC_SOVERSION}) @@ -120,7 +127,3 @@ TARGET_LINK_LIBRARIES(afb-client-demo INSTALL(TARGETS afb-client-demo RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -########################################### -ELSE(WITH_BINDER) - MESSAGE(WARNING "NOT compiling the binder! but tools are compiled") -ENDIF(WITH_BINDER)