blob: c79cacb657919d08bae414e432fa3d13e2a0790c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT(smack-privilege-config C)
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(SHAREDIR "${PREFIX}/share/privilege-control")
SET(TIZ_VERSION_2_2_1 "2.2.1")
SET(TIZ_VERSION_2_3_0 "2.3")
SET(TIZ_VERSION_2_3_1 "2.3.1")
SET(CURRENT_TIZ_VERSION ${TIZ_VERSION_2_3_1})
SET(SHAREDIR_TIZ_VERSION_2_2_1 "${SHAREDIR}/${TIZ_VERSION_2_2_1}")
SET(SHAREDIR_TIZ_VERSION_2_3_0 "${SHAREDIR}/${TIZ_VERSION_2_3_0}")
SET(SHAREDIR_TIZ_VERSION_2_3_1 "${SHAREDIR}/${TIZ_VERSION_2_3_1}")
SET(SHAREDIR_CURRENT_TIZ_VERSION "${SHAREDIR}/${CURRENT_TIZ_VERSION}")
SET(VERSION 1.0)
SET(VERSION_MAJOR 0)
SET(VERSION "${VERSION_MAJOR}.0.2")
IF("${PROFILE_TYPE}" STREQUAL "MOBILE")
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/permissions_mobile/permissions_common/ DESTINATION ${SHAREDIR_TIZ_VERSION_2_2_1})
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/permissions_mobile/permissions_common/ DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_0})
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/permissions_mobile/permissions_common/ DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_1})
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/permissions_mobile/permissions_2_2_1/ DESTINATION ${SHAREDIR_TIZ_VERSION_2_2_1})
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/permissions_mobile/permissions_2_3_0/ DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_0})
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/permissions_mobile/permissions_2_3_1/ DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_1})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/permissions_mobile/permissions_common/ADDITIONAL_RULES.smack DESTINATION ${SHAREDIR})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/app_group_list DESTINATION ${SHAREDIR_TIZ_VERSION_2_2_1})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/app_group_list DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_0})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/app_group_list DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_1})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dev_group_list DESTINATION ${SHAREDIR_TIZ_VERSION_2_2_1})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dev_group_list DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_0})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dev_group_list DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_1})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/permissions.filter DESTINATION ${SHAREDIR})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/permissions.filter DESTINATION ${SHAREDIR_TIZ_VERSION_2_2_1})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/permissions.filter DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_0})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/permissions.filter DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_1})
ELSEIF("${PROFILE_TYPE}" STREQUAL "WEARABLE")
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/permissions_wearable/permissions_common/ DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_0})
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/permissions_wearable/permissions_common/ DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_1})
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/permissions_wearable/permissions_2_3_0/ DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_0})
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/permissions_wearable/permissions_2_3_1/ DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_1})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/permissions_wearable/permissions_common/ADDITIONAL_RULES.smack DESTINATION ${SHAREDIR})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/app_group_list DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_0})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/app_group_list DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_1})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dev_group_list DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_0})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dev_group_list DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_1})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/permissions.filter DESTINATION ${SHAREDIR})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/permissions.filter DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_0})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/permissions.filter DESTINATION ${SHAREDIR_TIZ_VERSION_2_3_1})
ENDIF()
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/smack_default_rules DESTINATION /etc/smack/accesses.d/ RENAME default)
|