diff --git a/BUILD.gn b/BUILD.gn index bfce7c5a1acbc0dacf592ea0779fdfdb011097b6..0a0feb1ce70afccf3c7259522f9fb254ad516898 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 3056a87a22b1b4507ef2289272f8001c5c18bd6e..f4b787ac1ff29681976c029d859b1384282b120b 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": {