Add SDcard password confirm popup
[platform/core/security/ode.git] / server / CMakeLists.txt
1 #
2 # Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16 SET(SERVER_SRCS main.cpp
17                                 server.cpp
18                                 launchpad.cpp
19                                 ext4-tool.cpp
20                                 app-bundle.cpp
21                                 file-footer.cpp
22                                 secure-erase.cpp
23                                 progress-bar.cpp
24                                 block-device.cpp
25                                 kernel-keyring.cpp
26                                 internal-encryption.cpp
27                                 external-encryption.cpp
28                                 engine/ext4-engine.cpp
29                                 engine/dmcrypt-engine.cpp
30                                 engine/ecryptfs-engine.cpp
31                                 key-manager/key-store.cpp
32                                 key-manager/key-manager.cpp
33                                 key-manager/key-generator.cpp
34                                 key-manager/anti-forensics.cpp
35 )
36
37 SET(DEPENDENCY  klay
38                                 glib-2.0
39                                 gio-2.0
40                                 aul
41                                 bundle
42                                 libtzplatform-config
43                                 cynara-client
44                                 cynara-session
45                                 openssl
46 )
47
48 SET(SERVER_NAME ${PROJECT_NAME}d)
49
50 ADD_EXECUTABLE(${SERVER_NAME} ${SERVER_SRCS})
51
52 PKG_CHECK_MODULES(SERVER_DEPS REQUIRED ${DEPENDENCY})
53
54 INCLUDE_DIRECTORIES(SYSTEM ${SERVER_DEPS_INCLUDE_DIRS} ${ODE_SERVER} ${PROJECT_SOURCE_DIR})
55
56 TARGET_LINK_LIBRARIES(${SERVER_NAME} ${SERVER_DEPS_LIBRARIES} pthread)
57
58 SET_TARGET_PROPERTIES(${SERVER_NAME} PROPERTIES COMPILE_FLAGS "-fPIE")
59 SET_TARGET_PROPERTIES(${SERVER_NAME} PROPERTIES LINK_FLAGS "-pie")
60
61 TARGET_COMPILE_DEFINITIONS(${SERVER_NAME} PRIVATE
62         RUN_PATH="${RUN_DIR}"
63         ICON_PATH="${ICON_DIR}"
64 )
65
66 CONFIGURE_FILE(systemd/${PROJECT_NAME}.service.in systemd/${PROJECT_NAME}.service)
67
68 INSTALL(TARGETS ${SERVER_NAME} DESTINATION ${BIN_DIR})
69 INSTALL(FILES systemd/${PROJECT_NAME}.service DESTINATION ${SYSTEMD_UNIT_DIR})