aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-04-10 17:52:47 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-04-10 17:52:47 +0800
commit6a151ec022b2520f5c68fc1c8af483afd4c887c7 (patch)
tree58523daa82bfa8ccbe0d05087471b037dffccfa6
parent134be0531d2aa3926bb6ed441c7839174a8bba17 (diff)
add json file
Change-Id: Ib68bf6c21b4644626042789e48fa8eb47dc1a0cc
-rw-r--r--conf/hs-conf.json32
-rw-r--r--conf/lastmode.json10
-rw-r--r--src/CMakeLists.txt3
3 files changed, 45 insertions, 0 deletions
diff --git a/conf/hs-conf.json b/conf/hs-conf.json
new file mode 100644
index 0000000..633f585
--- /dev/null
+++ b/conf/hs-conf.json
@@ -0,0 +1,32 @@
+{
+ "handshake": {
+ "times": 20000,
+ "sleep": 50
+ },
+ "hs-apps": [
+ {
+ "appid": "homescreen",
+ "visibility": "visible"
+ },
+ {
+ "appid": "launcher",
+ "visibility": "invisible"
+ },
+ {
+ "appid": "onscreenapp",
+ "visibility": "invisible"
+ },
+ {
+ "appid": "restriction",
+ "visibility": "invisible"
+ }
+ ],
+ "default-lastmode": {
+ "appid": "launcher",
+ "area": "normal.full"
+ },
+ "normal-apps": {
+ "appid": "warehouse",
+ "visibility": "invisible"
+ }
+} \ No newline at end of file
diff --git a/conf/lastmode.json b/conf/lastmode.json
new file mode 100644
index 0000000..fbae6e9
--- /dev/null
+++ b/conf/lastmode.json
@@ -0,0 +1,10 @@
+[
+ {
+ "appid": "navigation",
+ "area": "split.main"
+ },
+ {
+ "appid": "video",
+ "area": "split.sub"
+ }
+] \ No newline at end of file
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 98dc27c..53055b4 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -64,6 +64,9 @@ endif()
add_custom_command(TARGET ${TARGETS_HSBINDER} POST_BUILD
COMMAND mkdir -p ${PROJECT_BINARY_DIR}/package/root/lib
COMMAND cp -rf ${PROJECT_BINARY_DIR}/src/${TARGETS_HSBINDER}.so ${PROJECT_BINARY_DIR}/package/root/lib
+ COMMAND mkdir -p ${PROJECT_BINARY_DIR}/package/root/etc
+ COMMAND cp -f ${CMAKE_SOURCE_DIR}/conf/hs-conf.json ${PROJECT_BINARY_DIR}/package/root/etc
+ COMMAND cp -f ${CMAKE_SOURCE_DIR}/conf/lastmode.json ${PROJECT_BINARY_DIR}/package/root/etc
)
add_custom_target(package DEPENDS ${PROJECT_BINARY_DIR}/package/root