From 18cc9c1bce6ca7462c3ace19bd3df587f1cfffb5 Mon Sep 17 00:00:00 2001 From: chen Date: Sat, 8 Jan 2022 18:12:25 +0800 Subject: [PATCH] add lsmagr as innerkit Signed-off-by: chen Change-Id: I77e3d16ca395d9a0ab4cd89286476f92d4246c35 --- interfaces/innerkits/lsamgr/BUILD.gn | 7 +++++++ ohos.build | 10 ++++++++++ services/samgr/native/test/unittest/BUILD.gn | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) mode change 100644 => 100755 ohos.build diff --git a/interfaces/innerkits/lsamgr/BUILD.gn b/interfaces/innerkits/lsamgr/BUILD.gn index 9fc817ec..1aaaf715 100755 --- a/interfaces/innerkits/lsamgr/BUILD.gn +++ b/interfaces/innerkits/lsamgr/BUILD.gn @@ -21,11 +21,18 @@ config("config_samgr") { ] } +config("public_config_lsamgr") { + include_dirs = + [ "//foundation/distributedschedule/samgr/interfaces/innerkits/lsamgr" ] +} + ################################################################################ ohos_shared_library("lsamgr") { sources = [ "../../../services/lsamgr/src/local_ability_manager_proxy.cpp" ] configs = [ ":config_samgr" ] + public_configs = [ ":public_config_lsamgr" ] + if (is_standard_system) { external_deps = [ "hiviewdfx_hilog_native:libhilog", diff --git a/ohos.build b/ohos.build old mode 100644 new mode 100755 index afeea530..26cc0d95 --- a/ohos.build +++ b/ohos.build @@ -28,6 +28,16 @@ ] }, "name": "//foundation/distributedschedule/samgr/interfaces/innerkits/common:samgr_common" + }, + { + "header": { + "header_base": "//foundation/distributedschedule/samgr/interfaces/innerkits/lsamgr/", + "header_files": [ + "if_local_ability_manager.h", + "local_ability_manager_proxy.h" + ] + }, + "name": "//foundation/distributedschedule/samgr/interfaces/innerkits/lsamgr:lsamgr" } ], "module_list": [ diff --git a/services/samgr/native/test/unittest/BUILD.gn b/services/samgr/native/test/unittest/BUILD.gn index 4333dc9c..a930ae3f 100755 --- a/services/samgr/native/test/unittest/BUILD.gn +++ b/services/samgr/native/test/unittest/BUILD.gn @@ -22,7 +22,7 @@ config("sam_test_config") { include_dirs = [ "${samgr_services_dir}/test/unittest/include", "//utils/system/safwk/native/include", - ] + ] } ohos_unittest("SystemAbilityMgrTest") { -- Gitee