From 6cce3b53fbb0a0efa652bf849790c133f0370aac Mon Sep 17 00:00:00 2001 From: liximin Date: Mon, 2 Nov 2020 15:39:07 +0800 Subject: [PATCH] =?UTF-8?q?!161=20update=20readme/=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E6=A1=86=E6=9E=B6=E5=AD=90=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?README.md.=20*=20update=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?.?= 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 b7911eb8a7..2814233952 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文件: -- GitLab