diff --git a/tools/gn2bp/Android.bp.swp b/tools/gn2bp/Android.bp.swp index 19901fa5e4..c6e508cbd0 100644 --- a/tools/gn2bp/Android.bp.swp +++ b/tools/gn2bp/Android.bp.swp @@ -14,6 +14,8 @@ // // This file is automatically generated by gen_android_bp. Do not edit. +soong_namespace {} + build = ["Android.extras.bp"] // The actual license can be found in Android.extras.bp @@ -16656,10 +16658,6 @@ cc_genrule { "net/third_party/quiche/src/quiche/quic/core/proto/crypto_server_config.proto", "net/third_party/quiche/src/quiche/quic/core/proto/source_address_token.proto", ], - shared_libs: [ - "//external/cronet/third_party/boringssl:libcrypto", - "//external/cronet/third_party/boringssl:libssl", - ], tools: [ "cronet_aml_third_party_protobuf_protoc", ], diff --git a/tools/gn2bp/gen_android_bp b/tools/gn2bp/gen_android_bp index b55b9bf6d1..23edbffaeb 100755 --- a/tools/gn2bp/gen_android_bp +++ b/tools/gn2bp/gen_android_bp @@ -235,6 +235,9 @@ def enable_zlib(module, arch): module.arch[arch].shared_libs.add('libz') def enable_boringssl(module, arch): + # Do not add boringssl targets to cc_genrules. This happens, because protobuf targets are + # originally static_libraries, but later get converted to a cc_genrule. + if module.is_genrule(): return if arch is None: shared_libs = module.shared_libs else: @@ -1900,6 +1903,8 @@ def main(): // // This file is automatically generated by %s. Do not edit. +soong_namespace {} + build = ["Android.extras.bp"] """ % (tool_name) ]