From ed6a532bbdd1b830e5bd334c7c371d52e2cec46d Mon Sep 17 00:00:00 2001 From: liximin Date: Wed, 28 Oct 2020 16:17:49 +0800 Subject: [PATCH] =?UTF-8?q?update=20readme/=E7=94=A8=E6=88=B7=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E6=A1=86=E6=9E=B6=E5=AD=90=E7=B3=BB=E7=BB=9FREADME.md?= =?UTF-8?q?.=20=E6=BA=90=E7=A0=81=E9=87=8C=E6=B2=A1=E6=9C=89=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E7=9A=84build.gn=E4=BA=86=20=20=20=20=E6=94=B9build/l?= =?UTF-8?q?ite/product/ipcamera=5Fhi3516dv300.json=20=E5=8F=AF=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=9B=B8=E5=BA=94=E7=9A=84so=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\255\220\347\263\273\347\273\237README.md" | 30 +++++++++++++------ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git "a/readme/\347\224\250\346\210\267\347\250\213\345\272\217\346\241\206\346\236\266\345\255\220\347\263\273\347\273\237README.md" "b/readme/\347\224\250\346\210\267\347\250\213\345\272\217\346\241\206\346\236\266\345\255\220\347\263\273\347\273\237README.md" index 57bd3698e4f..58ff53669f3 100644 --- "a/readme/\347\224\250\346\210\267\347\250\213\345\272\217\346\241\206\346\236\266\345\255\220\347\263\273\347\273\237README.md" +++ "b/readme/\347\224\250\346\210\267\347\250\213\345\272\217\346\241\206\346\236\266\345\255\220\347\263\273\347\273\237README.md" @@ -291,18 +291,30 @@ ## 运行基于AbilityKit开发的Ability - 基于AbilityKit开发的Ability的Demo代码位于foundation/aafwk/frameworks/ability\_lite/example路径下,如有需要修改其中的功能,可在entry/src/main/cpp的文件中修改代码或增加代码文件,并在BUILD.gn中做相应的修改。 -- 在build/lite/config/subsystem/aafwk/BUILD.gn中添加对ability Demo编译配置: +- 在build/lite/product/ipcamera_hi3516dv300.json中添加对ability Demo编译配置: ``` - import("//build/lite/config/subsystem/lite_subsystem.gni") + { - lite_subsystem("aafwk") { - subsystem_components = [ - "......", - "//foundation/aafwk/frameworks/ability_lite/example:hiability", - "......", - ] - } + "ohos_version": "OpenHarmony 1.0", + + "board": "hi3516dv300", + + "kernel": "liteos_a", + + "compiler": "clang", + + "subsystem": [ + + { + + "name": "aafwk", + + "component": [ + "......", + { "name": "ability_sample", "dir": "//foundation/aafwk/frameworks/ability_lite/example:hiability", "features": []} + ] + "......" ``` - 编译该Demo,在shell中执行如下命令,编译成功后,在out/ipcamera\_hi3516dv300\_liteos\_a/dev\_tools/example下面生成libhiability.so文件: -- Gitee