1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 # @file CMakeLists.txt
17 # @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
29 LIST(APPEND DAEMON_BASIC_DEP libprivilege-control)
32 PKG_CHECK_MODULES(DAEMON_DEP
37 SET(DAEMON_SOURCES_PATH ${PROJECT_SOURCE_DIR}/src)
40 ${DAEMON_SOURCES_PATH}/daemon/dbus/security_dbus_service.cpp
41 ${DAEMON_SOURCES_PATH}/daemon/security_daemon.cpp
42 ${DAEMON_SOURCES_PATH}/main.cpp
44 ${DAEMON_SOURCES_PATH}/services/ocsp/dbus/ocsp_server_dbus_interface.cpp
45 ${DAEMON_SOURCES_PATH}/services/ocsp/logic/ocsp_controller.cpp
46 ${DAEMON_SOURCES_PATH}/services/ocsp/ocsp_service.cpp
48 ${DAEMON_SOURCES_PATH}/services/vcore_service.cpp
50 ${DAEMON_SOURCES_PATH}/services/ace/dbus/ace_server_dbus_interface.cpp
51 ${DAEMON_SOURCES_PATH}/services/ace/ace_service.cpp
52 ${DAEMON_SOURCES_PATH}/services/ace/logic/security_controller.cpp
53 ${DAEMON_SOURCES_PATH}/services/ace/logic/attribute_facade.cpp
54 ${DAEMON_SOURCES_PATH}/services/ace/logic/security_logic.cpp
55 ${DAEMON_SOURCES_PATH}/services/ace/logic/simple_roaming_agent.cpp
57 ${DAEMON_SOURCES_PATH}/services/popup/dbus/popup_response_dbus_interface.cpp
61 ############################# Lets start compilation process ##################
63 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/ace/include)
65 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/vcore/src/vcore)
66 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/vcore/src/orm)
67 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/vcore/src/)
69 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src)
70 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/daemon)
71 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/daemon/dbus)
73 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/services/ace/dbus)
74 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/services/ace/logic)
76 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/services/ocsp/dbus)
77 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/services/ocsp/logic)
79 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/services/popup/dbus)
80 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src/services/popup/logic)
81 INCLUDE_DIRECTORIES(${DAEMON_DEP_INCLUDE_DIRS})
83 ADD_EXECUTABLE(${TARGET_DAEMON}
86 TARGET_LINK_LIBRARIES(${TARGET_DAEMON}
87 ${DAEMON_DEP_LIBRARIES}
90 ${TARGET_ACE_DAO_RW_LIB})
92 INSTALL(TARGETS ${TARGET_DAEMON}
96 ${PROJECT_SOURCE_DIR}/src/daemon/dbus/org.tizen.SecurityDaemon.service
97 DESTINATION /usr/share/dbus-1/services
101 ${PROJECT_SOURCE_DIR}/src/services/ace/dbus/api/ace_server_api.h
102 ${PROJECT_SOURCE_DIR}/src/services/ocsp/dbus/api/ocsp_server_api.h
103 ${PROJECT_SOURCE_DIR}/src/services/popup/dbus/api/popup_response_server_api.h
104 ${PROJECT_SOURCE_DIR}/src/services/popup/dbus/api/popup_ace_data_types.h
105 ${PROJECT_SOURCE_DIR}/src/daemon/dbus/security_daemon_dbus_config.h
106 DESTINATION /usr/include/wrt-security