From dca354794854f9cf75b59cdee746148bca95b785 Mon Sep 17 00:00:00 2001 From: xingyuanfeng Date: Wed, 15 May 2024 15:41:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E4=BB=B6=E5=8C=96=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xingyuanfeng --- BUILD.gn | 10 +++++----- bundle.json | 7 +++---- napi/BUILD.gn | 9 +++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 6d7e3d2..fd0df91 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -53,12 +53,12 @@ ohos_executable("syscap_tool_bin") { sources = [ "./src/main.c" ] sources += sources_platform_common - deps += [ "//third_party/bounds_checking_function:libsec_static" ] + external_deps = [ "bounds_checking_function:libsec_static" ] if (defined(ohos_lite)) { deps += [ "//build/lite/config/component/cJSON:cjson_static" ] } else { - deps += [ "//third_party/cJSON:cjson_static" ] + external_deps += [ "cJSON:cjson_static" ] } subsystem_name = "developtools" @@ -122,9 +122,9 @@ if (defined(ohos_lite)) { "./src/endian_internal.c", "./src/syscap_tool.c", ] - deps += [ - "//third_party/bounds_checking_function:libsec_static", - "//third_party/cJSON:cjson_static", + external_deps = [ + "bounds_checking_function:libsec_static", + "cJSON:cjson_static", ] subsystem_name = "developtools" diff --git a/bundle.json b/bundle.json index 4b92c28..6d5657c 100644 --- a/bundle.json +++ b/bundle.json @@ -22,12 +22,11 @@ "ram": "0", "deps": { "components": [ - "napi" - ], - "third_party": [ + "napi", "bounds_checking_function", "cJSON" - ] + ], + "third_party": [] }, "build": { "sub_component": [ diff --git a/napi/BUILD.gn b/napi/BUILD.gn index dc518c7..0490604 100644 --- a/napi/BUILD.gn +++ b/napi/BUILD.gn @@ -42,9 +42,10 @@ ohos_shared_library("systemcapability") { sources = [ "napi_query_syscap.cpp" ] sources += sources_platform_common - deps = [ - ":query_syscap_js", - "//third_party/bounds_checking_function:libsec_static", + deps = [ ":query_syscap_js" ] + external_deps = [ + "bounds_checking_function:libsec_static", + "napi:ace_napi" ] if (syscap_codec_config_extern_path != "") { @@ -59,7 +60,7 @@ ohos_shared_library("systemcapability") { if (defined(ohos_lite)) { deps += [ "//build/lite/config/component/cJSON:cjson_static" ] } else { - deps += [ "//third_party/cJSON:cjson_static" ] + external_deps += [ "cJSON:cjson_static" ] } relative_install_dir = "module"