From 1f4df7901e33e055ece0198707fa1886016fff23 Mon Sep 17 00:00:00 2001 From: yudechen Date: Sun, 24 Apr 2022 20:26:25 +0800 Subject: [PATCH] modify the build gn file. Signed-off-by: yudechen Change-Id: I18985064239299330e5e0405f170d1960ae501c6 --- BUILD.gn | 3 +++ bundle.json | 3 +-- napi/BUILD.gn | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index de26b37..48f1657 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -148,4 +148,7 @@ group("syscap_codec") { ":syscap_interface_shared", ":syscap_tool_shared", ] + if (support_jsapi) { + deps += [ "napi:systemcapability" ] + } } diff --git a/bundle.json b/bundle.json index ce1c2ed..888e34e 100755 --- a/bundle.json +++ b/bundle.json @@ -24,8 +24,7 @@ }, "build": { "sub_component": [ - "//developtools/syscap_codec:syscap_codec", - "//developtools/syscap_codec/napi:systemcapability" + "//developtools/syscap_codec:syscap_codec" ], "inner_kits": [], "test": [ "//developtools/syscap_codec/test/unittest/common:unittest" ] diff --git a/napi/BUILD.gn b/napi/BUILD.gn index a275a35..7c27751 100644 --- a/napi/BUILD.gn +++ b/napi/BUILD.gn @@ -43,11 +43,13 @@ ohos_shared_library("systemcapability") { deps = [ ":query_syscap_js", - "//foundation/ace/napi:ace_napi", "//third_party/bounds_checking_function:libsec_static", ] - external_deps = [ "hiviewdfx_hilog_native:libhilog" ] + external_deps = [ + "hiviewdfx_hilog_native:libhilog", + "napi:ace_napi", + ] if (defined(ohos_lite)) { deps += [ "//build/lite/config/component/cJSON:cjson_static" ]