diff --git a/BUILD.gn b/BUILD.gn index 6d7e3d293561eeea8d157322b89c616616a19c35..fd0df91f5616d4d44aba4e4a0d604bbe2e9960df 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 4b92c2830068f4fc44331f36fceed1804d3e26c8..6d5657cb91838d176a0389acc4f43a75f7ef720d 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 dc518c7543254634bcf5327625a9c81a7a76adcb..5db0659265038dcb8eb3eae0eb3ef51ad1e70138 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 != "") { @@ -54,12 +55,10 @@ ohos_shared_library("systemcapability") { cflags = [ "-DSYSCAP_DEFINE_EXTERN_ENABLE" ] } - external_deps = [ "napi:ace_napi" ] - 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"