add json file
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Wed, 10 Apr 2019 09:52:47 +0000 (17:52 +0800)
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Wed, 10 Apr 2019 09:52:47 +0000 (17:52 +0800)
Change-Id: Ib68bf6c21b4644626042789e48fa8eb47dc1a0cc

conf/hs-conf.json [new file with mode: 0644]
conf/lastmode.json [new file with mode: 0644]
src/CMakeLists.txt

diff --git a/conf/hs-conf.json b/conf/hs-conf.json
new file mode 100644 (file)
index 0000000..633f585
--- /dev/null
@@ -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 (file)
index 0000000..fbae6e9
--- /dev/null
@@ -0,0 +1,10 @@
+[
+       {
+               "appid": "navigation",
+               "area": "split.main"
+       },
+       {
+               "appid": "video",
+               "area": "split.sub"
+       }
+]
\ No newline at end of file
index 98dc27c..53055b4 100644 (file)
@@ -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
 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
 )
 
 add_custom_target(package DEPENDS ${PROJECT_BINARY_DIR}/package/root