diff --git a/frameworks/BUILD.gn b/frameworks/BUILD.gn index 584cc1595518432087040c925945cb935b4813f7..c06ff02aa5709be43e7e86a37403bdbcedef9df3 100644 --- a/frameworks/BUILD.gn +++ b/frameworks/BUILD.gn @@ -94,10 +94,9 @@ ohos_source_set("security_component_enhance_adapter_src_set") { "c_utils:utils", "hilog:libhilog", "ipc:ipc_single", + "json:nlohmann_json_static", ] - public_external_deps = [ "json:nlohmann_json_static" ] - cflags_cc = [ "-DHILOG_ENABLE", "-fvisibility=hidden", @@ -124,10 +123,9 @@ ohos_source_set("security_component_enhance_adapter_service_src_set") { "c_utils:utils", "hilog:libhilog", "ipc:ipc_single", + "json:nlohmann_json_static", ] - public_external_deps = [ "json:nlohmann_json_static" ] - cflags_cc = [ "-DHILOG_ENABLE", "-fvisibility=hidden", @@ -193,10 +191,9 @@ ohos_source_set("security_component_no_cfi_enhance_adapter_src_set") { "c_utils:utils", "hilog:libhilog", "ipc:ipc_single", + "json:nlohmann_json_static", ] - public_external_deps = [ "json:nlohmann_json_static" ] - cflags_cc = [ "-DHILOG_ENABLE", "-fvisibility=hidden", diff --git a/frameworks/enhance_adapter/test/BUILD.gn b/frameworks/enhance_adapter/test/BUILD.gn index 911b679ad24a367adb9e17e9e2f9756937a111a4..76b7be0559e6409bcd57cda2ed64fc3c2153e2c6 100644 --- a/frameworks/enhance_adapter/test/BUILD.gn +++ b/frameworks/enhance_adapter/test/BUILD.gn @@ -38,6 +38,7 @@ ohos_unittest("sec_comp_enhance_adapter_test") { "c_utils:utils", "hilog:libhilog", "ipc:ipc_single", + "json:nlohmann_json_static", ] } diff --git a/frameworks/inner_api/enhance_kits/BUILD.gn b/frameworks/inner_api/enhance_kits/BUILD.gn index f147db43bcdfb950af5fe9d071cf96dd434645c7..7a1fea95734787d61a427fc0c921096662eead4b 100644 --- a/frameworks/inner_api/enhance_kits/BUILD.gn +++ b/frameworks/inner_api/enhance_kits/BUILD.gn @@ -82,6 +82,7 @@ ohos_source_set("security_component_no_cfi_enhance_sdk_src_set") { "c_utils:utils", "hilog:libhilog", "ipc:ipc_single", + "json:nlohmann_json_static", ] cflags_cc = [ diff --git a/frameworks/inner_api/security_component/BUILD.gn b/frameworks/inner_api/security_component/BUILD.gn index e3088354c669161e3b79ffcd0e4c73358e7d0aa9..c5ad087bab7abaa71eb04002764f6137e52a5f1c 100644 --- a/frameworks/inner_api/security_component/BUILD.gn +++ b/frameworks/inner_api/security_component/BUILD.gn @@ -67,6 +67,7 @@ ohos_shared_library("libsecurity_component_sdk") { "hilog:libhilog", "hisysevent:libhisysevent", "ipc:ipc_core", + "json:nlohmann_json_static", "samgr:samgr_proxy", ]