diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-05-23 18:38:45 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-06-04 09:59:09 +0200 |
commit | 828efa11e73a26c8f9669bc9d2502d68bd27a785 (patch) | |
tree | a32821aaa724b3f6770db8d672f228c33e328516 | |
parent | 5b801a3e7b0465f88b785a155dd430ba09c56568 (diff) |
afm-user-daemon: Remove it by default
The daemon afm-user-daemon is deprecated.
To be cleaner, it is removed from the compilation
and the installation.
It is still kept a again for little time in the
unexpected case where it could be useful to compile
it.
Bug-AGL: SPEC-2437
Change-Id: I164de87dd006570671543204dab5233fca40e538
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | conf/user/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/CMakeLists.txt | 8 |
3 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 84a476e..c83e59d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,8 @@ set(ALLOW_NO_SIGNATURE OFF CACHE BOOL "if set, widgets without signature are acc set(SIMULATE_SECMGR OFF CACHE BOOL "if set, the security manager is simulated") set(SIMULATE_SMACK OFF CACHE BOOL "if set, the smack environment is simulated") +set(LEGACY_USER_DAEMON OFF CACHE BOOL "compile and install the legacy afm-user-daemon") + set(afm_name "afm" CACHE STRING "Name for application framework user") set(afm_confdir "${CMAKE_INSTALL_FULL_SYSCONFDIR}/${afm_name}" CACHE STRING "Directory for configuration files") set(afm_datadir "${CMAKE_INSTALL_FULL_DATADIR}/${afm_name}" CACHE STRING "Root directory for installions") diff --git a/conf/user/CMakeLists.txt b/conf/user/CMakeLists.txt index d552a72..a8d72dc 100644 --- a/conf/user/CMakeLists.txt +++ b/conf/user/CMakeLists.txt @@ -18,7 +18,7 @@ cmake_minimum_required(VERSION 2.8) -if(NOT USE_SDK) +if(NOT USE_SDK AND LEGACY_USER_DAEMON) configure_file(afm-user-daemon.service.in afm-user-daemon.service) set(SYSCONFDIR_DBUS_USER ${CMAKE_INSTALL_SYSCONFDIR}/dbus-1/session.d CACHE STRING "Path to dbus session configuration files") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2346db0..b112d55 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -170,9 +170,11 @@ if(libsystemd_FOUND AND AFB_FOUND) add_library(jbus STATIC utils-jbus.c) - add_executable(afm-user-daemon afm-user-daemon.c) - target_link_libraries(afm-user-daemon jbus utils) - install(TARGETS afm-user-daemon DESTINATION ${CMAKE_INSTALL_BINDIR}) + if(LEGACY_USER_DAEMON) + add_executable(afm-user-daemon afm-user-daemon.c) + target_link_libraries(afm-user-daemon jbus utils) + install(TARGETS afm-user-daemon DESTINATION ${CMAKE_INSTALL_BINDIR}) + endif() add_library(afm-binding MODULE afm-binding.c) target_link_libraries(afm-binding wgtpkg wgt secwrp utils afm) |