From ec2d03afd9f64aa80bf3a945dbd0ffb4591b1d17 Mon Sep 17 00:00:00 2001 From: jiangzhijun8 Date: Mon, 8 Jul 2024 01:56:49 +0000 Subject: [PATCH] Issue: https://gitee.com/openharmony/ability_ability_base/issues/IAB0NZ?from=project-issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Comment: 消除ability_ability_base中all_dependent_configs Signed-off-by: jiangzhijun8 --- bundle.json | 3 ++- common/BUILD.gn | 2 ++ services/screenservice/sinkservice/BUILD.gn | 2 ++ services/screenservice/sourceservice/BUILD.gn | 2 ++ services/screentransport/screensinktrans/BUILD.gn | 2 ++ services/screentransport/screensourcetrans/BUILD.gn | 2 ++ 6 files changed, 12 insertions(+), 1 deletion(-) diff --git a/bundle.json b/bundle.json index 1a3c4914..3cf791c3 100644 --- a/bundle.json +++ b/bundle.json @@ -46,7 +46,8 @@ "c_utils", "window_manager", "distributed_hardware_fwk", - "libjpeg-turbo" + "libjpeg-turbo", + "json" ], "third_party": [] }, diff --git a/common/BUILD.gn b/common/BUILD.gn index e4a4ead8..db96426a 100644 --- a/common/BUILD.gn +++ b/common/BUILD.gn @@ -49,6 +49,8 @@ ohos_shared_library("distributed_screen_utils") { "ipc:ipc_core", ] + public_external_deps = [ "json:nlohmann_json_static" ] + defines = [ "HI_LOG_ENABLE", "DH_LOG_TAG=\"dscreenutil\"", diff --git a/services/screenservice/sinkservice/BUILD.gn b/services/screenservice/sinkservice/BUILD.gn index e6b197e5..642df475 100644 --- a/services/screenservice/sinkservice/BUILD.gn +++ b/services/screenservice/sinkservice/BUILD.gn @@ -97,6 +97,8 @@ ohos_shared_library("distributed_screen_sink") { "window_manager:libdm", ] + public_external_deps = [ "json:nlohmann_json_static" ] + subsystem_name = "distributedhardware" part_name = "distributed_screen" diff --git a/services/screenservice/sourceservice/BUILD.gn b/services/screenservice/sourceservice/BUILD.gn index d19e70a5..5161d7ca 100644 --- a/services/screenservice/sourceservice/BUILD.gn +++ b/services/screenservice/sourceservice/BUILD.gn @@ -103,6 +103,8 @@ ohos_shared_library("distributed_screen_source") { "window_manager:libdm", ] + public_external_deps = [ "json:nlohmann_json_static" ] + subsystem_name = "distributedhardware" part_name = "distributed_screen" diff --git a/services/screentransport/screensinktrans/BUILD.gn b/services/screentransport/screensinktrans/BUILD.gn index 0c33a825..29cc6a8b 100644 --- a/services/screentransport/screensinktrans/BUILD.gn +++ b/services/screentransport/screensinktrans/BUILD.gn @@ -79,6 +79,8 @@ ohos_shared_library("distributed_screen_sinktrans") { "media_foundation:media_foundation", ] + public_external_deps = [ "json:nlohmann_json_static" ] + subsystem_name = "distributedhardware" part_name = "distributed_screen" diff --git a/services/screentransport/screensourcetrans/BUILD.gn b/services/screentransport/screensourcetrans/BUILD.gn index c9ba06e4..593398cb 100644 --- a/services/screentransport/screensourcetrans/BUILD.gn +++ b/services/screentransport/screensourcetrans/BUILD.gn @@ -80,6 +80,8 @@ ohos_shared_library("distributed_screen_sourcetrans") { "media_foundation:media_foundation", ] + public_external_deps = [ "json:nlohmann_json_static" ] + subsystem_name = "distributedhardware" part_name = "distributed_screen" -- Gitee