diff options
author | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-07-11 16:21:37 +0900 |
---|---|---|
committer | Yuta Doi <yuta-d@witz-inc.co.jp> | 2018-08-15 01:49:00 +0000 |
commit | 1859dd4135f5d019f16a1333df318ecd1211afb9 (patch) | |
tree | e8b5e087215b087143f7982bf459d1d60ed45f65 /policy_manager/CMakeLists.txt | |
parent | c1d85371b1eb693128cf9553c356ea77e609d9a3 (diff) |
Readd policy table generated by ZIPC for EXAMPLE
This patch reverts commit e4222ca8da3b02afca5625fa2cef6832aa8ce90e
and update it.
To Policy Manager, add the source code of policy table
which is generated by ZIPC for EXAMPLE.
If use this example,
please comment out line 22 and uncomment line 23
in policy_manager/CMakeLists.txt as follows:
#set(STM_DIR stub)
set(STM_DIR zipc)
If try to show split layout,
please set bool value "ON" to TRY_SPLIT_LAYOUT at line 28
in policy_manager/CMakeLists.txt as follows:
set(TRY_SPLIT_LAYOUT OFF CACHE BOOL "Enable to show split layout")
The generated source codes by ZIPC are
"Common" and "StateTransitionor" in policy_manager/stm/zipc/.
Bug-AGL: SPEC-1537
Change-Id: I1f91cf728eab79c229c5b4b12b9e1bdd338f64aa
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'policy_manager/CMakeLists.txt')
-rw-r--r-- | policy_manager/CMakeLists.txt | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/policy_manager/CMakeLists.txt b/policy_manager/CMakeLists.txt index 23aec19..584d311 100644 --- a/policy_manager/CMakeLists.txt +++ b/policy_manager/CMakeLists.txt @@ -20,6 +20,21 @@ pkg_check_modules(SD REQUIRED libsystemd>=222) # Set name of STM set(STM_DIR stub) +#set(STM_DIR zipc) + +# Select roles.db +if(zipc MATCHES ${STM_DIR}) + # if trying to show split layout, change from OFF to ON + set(TRY_SPLIT_LAYOUT OFF CACHE BOOL "Enable to show split layout") + + if(${TRY_SPLIT_LAYOUT}) + set(ROLES_DB_NAME roles.db.zipc.split) + else() + set(ROLES_DB_NAME roles.db.zipc) + endif() +else() + set(ROLES_DB_NAME roles.db) +endif() # Add STM directory add_subdirectory(stm/${STM_DIR}) @@ -84,5 +99,5 @@ add_custom_command(TARGET ${TARGETS_PM} POST_BUILD COMMAND cp -f ${PROJECT_BINARY_DIR}/${PLUGIN_PM}/lib${PLUGIN_PM}.so ${PROJECT_BINARY_DIR}/package/root/lib COMMAND mkdir -p ${PROJECT_BINARY_DIR}/package/root/etc COMMAND cp -f ${PROJECT_SOURCE_DIR}/${PLUGIN_PM}/db/states.db ${PROJECT_BINARY_DIR}/package/root/etc - COMMAND cp -f ${PROJECT_SOURCE_DIR}/${PLUGIN_PM}/db/roles.db ${PROJECT_BINARY_DIR}/package/root/etc + COMMAND cp -f ${PROJECT_SOURCE_DIR}/${PLUGIN_PM}/db/${ROLES_DB_NAME} ${PROJECT_BINARY_DIR}/package/root/etc/roles.db ) |