gn2bp: Add source genrule for proto to the srcs
Test: ./update_result.sh
Change-Id: I4114923ec3103705c5efadada354d6abf7572f87
diff --git a/tools/gn2bp/Android.bp.swp b/tools/gn2bp/Android.bp.swp
index 85c93e7..a1878b5 100644
--- a/tools/gn2bp/Android.bp.swp
+++ b/tools/gn2bp/Android.bp.swp
@@ -1963,6 +1963,9 @@
// GN: //net/cert:root_store_proto_full
cc_library_static {
name: "cronet_aml_net_cert_root_store_proto_full",
+ srcs: [
+ ":cronet_aml_net_cert_root_store_proto_full_gen",
+ ],
static_libs: [
"cronet_aml_third_party_protobuf_protobuf_full",
],
@@ -2201,6 +2204,9 @@
// GN: //net:isolation_info_proto
cc_library_static {
name: "cronet_aml_net_isolation_info_proto",
+ srcs: [
+ ":cronet_aml_net_isolation_info_proto_gen",
+ ],
shared_libs: [
"liblog",
],
@@ -3009,6 +3015,7 @@
name: "cronet_aml_net_net_nqe_proto",
srcs: [
":cronet_aml_net_net_export_header",
+ ":cronet_aml_net_net_nqe_proto_gen",
],
shared_libs: [
"liblog",
@@ -3260,6 +3267,9 @@
// GN: //net/third_party/quiche:net_quic_proto
cc_library_static {
name: "cronet_aml_net_third_party_quiche_net_quic_proto",
+ srcs: [
+ ":cronet_aml_net_third_party_quiche_net_quic_proto_gen",
+ ],
shared_libs: [
"libandroid",
"liblog",
@@ -3393,6 +3403,7 @@
name: "cronet_aml_net_third_party_quiche_net_quic_test_tools_proto",
srcs: [
":cronet_aml_net_net_export_header",
+ ":cronet_aml_net_third_party_quiche_net_quic_test_tools_proto_gen",
],
shared_libs: [
"liblog",
diff --git a/tools/gn2bp/gen_android_bp b/tools/gn2bp/gen_android_bp
index 01410bb..674de98 100755
--- a/tools/gn2bp/gen_android_bp
+++ b/tools/gn2bp/gen_android_bp
@@ -948,6 +948,7 @@
header_module.out = [file for file in header_module.out if os.path.splitext(file)[1] == '.h']
module.out = [file for file in module.out if os.path.splitext(file)[1] == '.cc']
module.genrule_headers.add(header_module.name)
+ module.genrule_srcs.add(':' + module.name)
blueprint.add_module(header_module)
blueprint.add_module(module)