gn2bp: Fix cronet_aml_net_third_party_quiche_quiche
* This fix the includes for `cronet_aml_net_third_party_quiche_quiche` as it expects a deeper child of the genrule to be included.
Test: m cronet_aml_net_third_party_quiche_quiche
Change-Id: I461658a7f7d6981bf22fbe77449c2e2a7ec2f781
diff --git a/tools/gn2bp/Android.bp.swp b/tools/gn2bp/Android.bp.swp
index 3c59547..0392e15 100644
--- a/tools/gn2bp/Android.bp.swp
+++ b/tools/gn2bp/Android.bp.swp
@@ -2943,6 +2943,7 @@
],
export_include_dirs: [
".",
+ "net/third_party/quiche/src",
"protos",
],
}
diff --git a/tools/gn2bp/gen_android_bp b/tools/gn2bp/gen_android_bp
index 120728b..336215e 100755
--- a/tools/gn2bp/gen_android_bp
+++ b/tools/gn2bp/gen_android_bp
@@ -590,6 +590,9 @@
header_module.cmd = source_module.cmd
source_module.tools = tools
header_module.tools = tools
+ if header_module.name == "cronet_aml_net_third_party_quiche_net_quic_proto_gen_headers":
+ # This is needed for cached_network_parameters_proto.h
+ header_module.export_include_dirs.add("net/third_party/quiche/src")
for sfx in suffixes:
source_module.out.update('%s/%s' %