From 67f851c4917a965e4bfd1ebd803372bcbb7de6fc Mon Sep 17 00:00:00 2001 From: ganchuantao Date: Wed, 20 Aug 2025 03:19:59 +0000 Subject: [PATCH] =?UTF-8?q?protobuf=20=E7=8B=AC=E7=AB=8B=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ganchuantao --- BUILD.gn | 7 +++++++ bundle.json | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index bfce7c5..0a0feb1 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -274,6 +274,13 @@ ohos_shared_library("protobuf") { part_name = "${THIRDPARTY_PROTOBUF_PART_NAME}" } +group("protobuf_static_toolchain") { + deps = [ + ":protobuf_static", + ":protobuf_static(${host_toolchain})" + ] +} + ohos_static_library("protobuf_static") { sources = [ "src/google/protobuf/any.cc", diff --git a/bundle.json b/bundle.json index 3056a87..f4b787a 100644 --- a/bundle.json +++ b/bundle.json @@ -27,7 +27,9 @@ "third_party": [] }, "build": { - "sub_component": [], + "sub_component": [ + "//third_party/protobuf:protobuf_static_toolchain" + ], "inner_kits": [ { "header": { -- Gitee