X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=conf%2Fsystem%2FCMakeLists.txt;h=0b6e66ebd8341d686ac8fa51b949122768801d7a;hb=a123bb31906ef03ff813559aee426282416d729d;hp=4f77f938f2966e0e65b1238f20ef83d38cd76d51;hpb=cc937529cdf8fad47b9b988fe205406f75d61acd;p=src%2Fapp-framework-main.git diff --git a/conf/system/CMakeLists.txt b/conf/system/CMakeLists.txt index 4f77f93..0b6e66e 100644 --- a/conf/system/CMakeLists.txt +++ b/conf/system/CMakeLists.txt @@ -1,5 +1,5 @@ ########################################################################### -# Copyright (C) 2015-2019 IoT.bzh +# Copyright (C) 2015-2020 IoT.bzh # # author: José Bollo # @@ -18,11 +18,16 @@ cmake_minimum_required(VERSION 2.8) +if(AGL_DEVEL) + set(create_platform_debug "dodir ${afm_platform_rundir}/debug") +endif() + configure_file(afm-system-daemon.service.in afm-system-daemon.service) configure_file(afm-system-daemon.socket.in afm-system-daemon.socket) configure_file(afm-system-setup.service.in afm-system-setup.service) configure_file(afm-system-setup.sh.in afm-system-setup.sh) configure_file(afm-api-afm-main@.service.in afm-api-afm-main@.service) +configure_file(afm-user-session@.service.in afm-user-session@.service) configure_file(afm-user-setup@.service.in afm-user-setup@.service) configure_file(afm-user-setup.sh.in afm-user-setup.sh) @@ -39,12 +44,18 @@ if(NOT USE_SDK) ${CMAKE_CURRENT_BINARY_DIR}/afm-system-daemon.service ${CMAKE_CURRENT_BINARY_DIR}/afm-system-daemon.socket ${CMAKE_CURRENT_BINARY_DIR}/afm-system-setup.service - ${CMAKE_CURRENT_SOURCE_DIR}/afm-user-session@.service + ${CMAKE_CURRENT_BINARY_DIR}/afm-user-session@.service ${CMAKE_CURRENT_SOURCE_DIR}/afm-user-session@.target ${CMAKE_CURRENT_BINARY_DIR}/afm-user-setup@.service DESTINATION ${UNITDIR_SYSTEM} ) + install( + DIRECTORY + ${CMAKE_CURRENT_SOURCE_DIR}/user-runtime-dir@.service.wants + DESTINATION + ${UNITDIR_SYSTEM} + ) install( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/afm-user-setup.sh