部件化整改

Signed-off-by: xingyuanfeng <xingyuanfeng@h-partners.com>
This commit is contained in:
xingyuanfeng
2024-05-15 15:41:34 +08:00
parent 545b526163
commit dca3547948
3 changed files with 13 additions and 13 deletions
+5 -5
View File
@@ -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"
+3 -4
View File
@@ -22,12 +22,11 @@
"ram": "0",
"deps": {
"components": [
"napi"
],
"third_party": [
"napi",
"bounds_checking_function",
"cJSON"
]
],
"third_party": []
},
"build": {
"sub_component": [
+5 -4
View File
@@ -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"