platform_build_soong/bp2build
Jingwen Chen 4ecc67d3c5 bp2build: fix exclude_srcs in subpackages.
In a non-top level Android.bp file, exclude_srcs was not working at all
due to a bug in expandSrcsForBazel. GlobFiles was expanding a glob
relative to root, but the expandedExcludes list was relative to the
module dir, causing the glob function to not consider the
expandedExcludes list at all.

Add tests to demonstrate that this is working now.

Test: TH
Bug: 186388919
Change-Id: Ice8254231d085b39126e91b823a09ec328ee0ae0
2021-04-27 09:51:08 +00:00
..
Android.bp Create a synthetic Bazel workspace. 2021-04-20 10:00:02 +02:00
androidbp_to_build_templates.go queryview: prefix internal attribute names. 2021-01-25 04:46:07 -05:00
bp2build.go Generate BUILD files for every directory that has an Android.bp file. 2021-04-21 07:15:50 -04:00
build_conversion.go Generate BUILD files for every directory that has an Android.bp file. 2021-04-21 07:15:50 -04:00
build_conversion_test.go bp2build: fix exclude_srcs in subpackages. 2021-04-27 09:51:08 +00:00
bzl_conversion.go queryview: prefix internal attribute names. 2021-01-25 04:46:07 -05:00
bzl_conversion_test.go Add bp2build arch-specific paths mutator 2021-04-21 18:21:50 -04:00
cc_library_conversion_test.go bp2build: fix exclude_srcs in subpackages. 2021-04-27 09:51:08 +00:00
cc_library_headers_conversion_test.go bp2build: remove header globs in generated srcs. 2021-04-27 06:26:40 +00:00
cc_library_static_conversion_test.go bp2build: remove header globs in generated srcs. 2021-04-27 06:26:40 +00:00
cc_object_conversion_test.go bp2build: remove header globs in generated srcs. 2021-04-27 06:26:40 +00:00
configurability.go bp2build: refactor/standardize cc_* bp2build converters 2021-04-22 08:31:24 +00:00
constants.go Remove comment about gitignore for BUILD files. 2021-03-29 08:31:28 +00:00
conversion.go Write all BUILD files for queryview 2021-04-22 14:40:17 -04:00
conversion_test.go Create a synthetic Bazel workspace. 2021-04-20 10:00:02 +02:00
metrics.go Use handcrafted build targets in bp2build 2021-03-15 13:09:25 -04:00
python_binary_conversion_test.go bp2build: codegen singleton lists on one line. 2021-04-09 09:42:57 +00:00
sh_conversion_test.go bp2build: codegen singleton lists on one line. 2021-04-09 09:42:57 +00:00
symlink_forest.go Make symlink_forest.go prefer generated files. 2021-04-21 12:24:27 +02:00
testing.go Merge "Add bp2build arch-specific paths mutator" 2021-04-23 12:50:05 +00:00