platform_build_soong/bp2build
Jingwen Chen 885ee7ad86 bp2build: support genrule $(location) and $(locations)
Soong genrules support $(location) and $(locations) cmd variable
shortcuts without labels. The shortcut is for the location of the first
tool module from the concatenation of the tools and tool_files
properties.

Bazel doesn't support this shortcut, so the bp2build mapping needs to
support it.

Documentation:
https://cs.android.com/android/platform/superproject/+/master:build/soong/genrule/genrule.go;l=95-96;drc=316e07c593ab66599c74725cf482dedbb32b2875
Code: https://cs.android.com/android/platform/superproject/+/master:build/soong/genrule/genrule.go;l=236-246;drc=316e07c593ab66599c74725cf482dedbb32b2875

Test: build_conversion_test.go
Test: TH

Change-Id: I8aa98ae460af3a3fbb0a7835572518680dc7ade1
2021-01-26 09:15:01 -05:00
..
Android.bp bp2build: automatically convert all genrules. 2021-01-24 20:51:18 -05:00
androidbp_to_build_templates.go queryview: prefix internal attribute names. 2021-01-25 04:46:07 -05:00
bp2build.go bp2build: introduce CodegenMode. 2021-01-26 00:30:30 -05:00
build_conversion.go Implement String() method for CodegenMode. 2021-01-26 09:14:55 -05:00
build_conversion_test.go bp2build: support genrule $(location) and $(locations) 2021-01-26 09:15:01 -05:00
bzl_conversion.go queryview: prefix internal attribute names. 2021-01-25 04:46:07 -05:00
bzl_conversion_test.go bp2build: introduce CodegenMode. 2021-01-26 00:30:30 -05:00
conversion.go bp2build: introduce CodegenMode. 2021-01-26 00:30:30 -05:00
conversion_test.go bp2build: introduce CodegenMode. 2021-01-26 00:30:30 -05:00
testing.go bp2build: framework for generating BazelTargetModules. 2021-01-21 22:46:11 -05:00