gn2bp: Remove srcs from out/test
cc_library_static modules that build proto cc files directly specify
with //out/test path. But these files are generated by other genrule
modules and should be specified by the genrule name.
So, this commit removing files with //out/test path from the srcs.
Test: ./update_result.sh
Change-Id: I29373877b9d576a08596f283c0344ede86c4f278
diff --git a/tools/gn2bp/gen_android_bp b/tools/gn2bp/gen_android_bp
index 5ff17ff..01410bb 100755
--- a/tools/gn2bp/gen_android_bp
+++ b/tools/gn2bp/gen_android_bp
@@ -1029,7 +1029,7 @@
module.srcs.update(
gn_utils.label_to_path(src)
for src in target.sources
- if is_supported_source_file(src))
+ if is_supported_source_file(src) and not src.startswith("//out/test"))
local_include_dirs_set = set()
if target.type in gn_utils.LINKER_UNIT_TYPES: