Update date of copyright notices
[src/app-framework-binder.git] / CMakeLists.txt
index 541b639..2efee1d 100644 (file)
@@ -1,5 +1,5 @@
 ###########################################################################
-# Copyright 2015, 2016, 2017 IoT.bzh
+# Copyright (C) 2015-2018 "IoT.bzh"
 #
 # author: José Bollo <jose.bollo@iot.bzh>
 #
@@ -23,7 +23,7 @@ PROJECT(afb-daemon C CXX)
 SET(PROJECT_NAME "AFB Daemon")
 SET(PROJECT_PRETTY_NAME "Application Framework Binder Daemon")
 SET(PROJECT_DESCRIPTION "Secured binder of API for clients of the Application framework")
-SET(PROJECT_VERSION "4.99-EERC1")
+SET(PROJECT_VERSION "5.99-FFRC0")
 set(PROJECT_URL "https://gerrit.automotivelinux.org/gerrit/gitweb?p=src/app-framework-binder.git;a=summary")
 
 SET(LIBAFBWSC_VERSION "1.1")
@@ -39,6 +39,11 @@ INCLUDE(CTest)
 # possible settings
 set(AGL_DEVEL OFF CACHE BOOL "Activates developping features")
 set(INCLUDE_MONITORING OFF CACHE BOOL "Activates installation of monitoring")
+set(INCLUDE_SUPERVISOR OFF CACHE BOOL "Activates installation of supervisor")
+set(AFS_SURPERVISION_SOCKET "@urn:AGL:afs:supervision:socket" CACHE STRING "Internal socket for supervision")
+set(AFS_SUPERVISOR_PORT 1619 CACHE STRING "Port of service for the supervisor")
+set(AFS_SUPERVISOR_TOKEN HELLO CACHE STRING "Secret token for the supervisor")
+set(UNITDIR_SYSTEM ${CMAKE_INSTALL_LIBDIR}/systemd/system CACHE STRING "Path to systemd system unit files")
 
 ###########################################################################
 
@@ -80,6 +85,8 @@ PKG_CHECK_MODULES(openssl openssl)
 PKG_CHECK_MODULES(uuid uuid)
 PKG_CHECK_MODULES(cynara cynara-client)
 
+ADD_DEFINITIONS("-DAFS_SURPERVISION_SOCKET=\"${AFS_SURPERVISION_SOCKET}\"")
+
 IF(AGL_DEVEL)
        ADD_DEFINITIONS(-DAGL_DEVEL)
 endif()
@@ -176,3 +183,13 @@ ELSE()
        )
 
 ENDIF()
+
+IF(INCLUDE_SUPERVISOR)
+       CONFIGURE_FILE(afs-supervisor.service.in afs-supervisor.service @ONLY)
+       INSTALL(FILES
+           ${CMAKE_CURRENT_BINARY_DIR}/afs-supervisor.service
+           DESTINATION
+           ${UNITDIR_SYSTEM}
+       )
+ENDIF()
+