From 4b3b1fcc77c7fe6145f3cb2588819fc39fa28fc2 Mon Sep 17 00:00:00 2001 From: wuminjie Date: Thu, 20 Mar 2025 14:43:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4public?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuminjie --- interfaces/innerkits/common/BUILD.gn | 2 +- services/samgr/native/BUILD.gn | 1 + test/fuzztest/samgr_fuzzer/BUILD.gn | 1 + test/fuzztest/samgrcoverage_fuzzer/BUILD.gn | 1 + test/fuzztest/samgrdumper_fuzzer/BUILD.gn | 1 + test/fuzztest/systemabilitymanager_fuzzer/BUILD.gn | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/interfaces/innerkits/common/BUILD.gn b/interfaces/innerkits/common/BUILD.gn index 837fb697..639f675d 100644 --- a/interfaces/innerkits/common/BUILD.gn +++ b/interfaces/innerkits/common/BUILD.gn @@ -79,7 +79,7 @@ ohos_shared_library("samgr_common") { external_deps += [ "hicollie:libhicollie" ] defines += [ "HICOLLIE_ENABLE" ] } - public_external_deps = [ "json:nlohmann_json_static" ] + external_deps += [ "json:nlohmann_json_static" ] part_name = "samgr" } diff --git a/services/samgr/native/BUILD.gn b/services/samgr/native/BUILD.gn index e9acf73f..34cccf36 100644 --- a/services/samgr/native/BUILD.gn +++ b/services/samgr/native/BUILD.gn @@ -105,6 +105,7 @@ ohos_executable("samgr") { "init:libbegetutil", "ipc:ipc_core", "ipc:libdbinder", + "json:nlohmann_json_static", "safwk:system_ability_ondemand_reason", ] diff --git a/test/fuzztest/samgr_fuzzer/BUILD.gn b/test/fuzztest/samgr_fuzzer/BUILD.gn index a9aac270..bb083f1b 100644 --- a/test/fuzztest/samgr_fuzzer/BUILD.gn +++ b/test/fuzztest/samgr_fuzzer/BUILD.gn @@ -181,6 +181,7 @@ foreach(item, samgr_fuzztests) { "init:libbegetutil", "ipc:ipc_core", "ipc:libdbinder", + "json:nlohmann_json_static", "safwk:system_ability_fwk", "samgr:samgr_common", "samgr:samgr_proxy", diff --git a/test/fuzztest/samgrcoverage_fuzzer/BUILD.gn b/test/fuzztest/samgrcoverage_fuzzer/BUILD.gn index f082e2c6..96d72c78 100644 --- a/test/fuzztest/samgrcoverage_fuzzer/BUILD.gn +++ b/test/fuzztest/samgrcoverage_fuzzer/BUILD.gn @@ -84,6 +84,7 @@ ohos_fuzztest("SamgrCoverageFuzzTest") { "init:libbegetutil", "ipc:ipc_single", "ipc:libdbinder", + "json:nlohmann_json_static", "safwk:system_ability_fwk", "samgr:samgr_common", "samgr:samgr_proxy", diff --git a/test/fuzztest/samgrdumper_fuzzer/BUILD.gn b/test/fuzztest/samgrdumper_fuzzer/BUILD.gn index 7ed1b8bc..1a121408 100644 --- a/test/fuzztest/samgrdumper_fuzzer/BUILD.gn +++ b/test/fuzztest/samgrdumper_fuzzer/BUILD.gn @@ -83,6 +83,7 @@ ohos_fuzztest("SamgrDumperFuzzTest") { "init:libbegetutil", "ipc:ipc_single", "ipc:libdbinder", + "json:nlohmann_json_static", "safwk:system_ability_fwk", "samgr:samgr_common", "samgr:samgr_proxy", diff --git a/test/fuzztest/systemabilitymanager_fuzzer/BUILD.gn b/test/fuzztest/systemabilitymanager_fuzzer/BUILD.gn index e18e9483..7223b5f2 100644 --- a/test/fuzztest/systemabilitymanager_fuzzer/BUILD.gn +++ b/test/fuzztest/systemabilitymanager_fuzzer/BUILD.gn @@ -83,6 +83,7 @@ ohos_fuzztest("SystemAbilityManagerFuzzTest") { "init:libbegetutil", "ipc:ipc_core", "ipc:libdbinder", + "json:nlohmann_json_static", "safwk:system_ability_fwk", "samgr:samgr_common", "samgr:samgr_proxy", -- Gitee