gn2bp: use Android's boringssl
Using just libcrypto is too difficult at the moment as Chromium's
boringssl pulls it in directly via filegroup (go figure!).
Test: //components/cronet/android:cronet
Change-Id: I6faaca59faf14e6ae962017602c5ab39837b1e8e
diff --git a/tools/gn2bp/gen_android_bp b/tools/gn2bp/gen_android_bp
index 8a15ee1..a864665 100755
--- a/tools/gn2bp/gen_android_bp
+++ b/tools/gn2bp/gen_android_bp
@@ -117,7 +117,7 @@
'cronet_aml_net_third_party_quiche_quiche',
'cronet_aml_base_base',
"cronet_aml_crypto_crypto",
- "cronet_aml_third_party_boringssl_boringssl",
+ "libssl",
}),
],
'cronet_aml_components_cronet_android_cronet': [
@@ -218,6 +218,11 @@
module.header_libs.add('bionic_libc_platform_headers')
+def enable_boringssl(module):
+ if module.type not in ['genrule', 'filegroup']:
+ module.static_libs.add('libssl')
+
+
# Android equivalents for third-party libraries that the upstream project
# depends on.
builtin_deps = {
@@ -247,6 +252,8 @@
enable_protobuf_lite,
'//third_party/protobuf:protoc_lib':
enable_protoc_lib,
+ '//third_party/boringssl:boringssl':
+ enable_boringssl,
}
# ----------------------------------------------------------------------------