platform_build_soong/bp2build
Chris Parsons 69fa9f9e5e Seperate asflags and cflags
This fixes a bug which was a misunderstanding of soong properties:
Soong's cflags pertain only to C and C++ language, whereas bazel's copts
pertain to all three languages. This change ensures that asflags are
added as specifically asflags, and the 'copts' for the static library
macro pertains only to C and C++ languages.

This requires a somewhat hacky workaround for asflags, however: Since
assembly sources also need includepath-related flags, this duplicates
these flags between copts and asflags. To reduce verbosity of
bp2build-generated targets, this also ensures that asflags are omitted
in cases where there are no assembly sources.

Test: Mixed build droid CI
Change-Id: Ic0babed1f90d6dc82e5788638681ce5b995043f8
2021-07-13 14:06:14 -04:00
..
Android.bp Add partial bp2build support for APEX targets (second try). 2021-07-02 07:36:07 -04:00
androidbp_to_build_templates.go queryview: prefix internal attribute names. 2021-01-25 04:46:07 -05:00
apex_conversion_test.go Add partial bp2build support for APEX targets (second try). 2021-07-02 07:36:07 -04:00
bp2build.go Direct Bazel builds from m. 2021-06-21 06:12:34 +00:00
build_conversion.go Direct Bazel builds from m. 2021-06-21 06:12:34 +00:00
build_conversion_test.go Direct Bazel builds from m. 2021-06-21 06:12:34 +00:00
bzl_conversion.go queryview: prefix internal attribute names. 2021-01-25 04:46:07 -05:00
bzl_conversion_test.go Move some implicitly shared testing code for bp2build into testing.go. 2021-05-19 09:14:26 -04:00
cc_library_conversion_test.go Seperate asflags and cflags 2021-07-13 14:06:14 -04:00
cc_library_headers_conversion_test.go Handle no_libcrt in bp2build. 2021-06-08 17:18:22 -04:00
cc_library_static_conversion_test.go Seperate asflags and cflags 2021-07-13 14:06:14 -04:00
cc_object_conversion_test.go Seperate asflags and cflags 2021-07-13 14:06:14 -04:00
compatibility.go Direct Bazel builds from m. 2021-06-21 06:12:34 +00:00
configurability.go Handle no_libcrt in bp2build. 2021-06-08 17:18:22 -04:00
constants.go Have bp2build generate BUILD.bazel instead of generating BUILD. 2021-05-18 09:01:36 -04:00
conversion.go Direct Bazel builds from m. 2021-06-21 06:12:34 +00:00
conversion_test.go Direct Bazel builds from m. 2021-06-21 06:12:34 +00:00
metrics.go Use handcrafted build targets in bp2build 2021-03-15 13:09:25 -04:00
python_binary_conversion_test.go Mark test helpers as helpers. 2021-05-25 14:41:43 +00:00
sh_conversion_test.go Mark test helpers as helpers. 2021-05-25 14:41:43 +00:00
symlink_forest.go Make symlink_forest.go prefer generated files. 2021-04-21 12:24:27 +02:00
testing.go Direct Bazel builds from m. 2021-06-21 06:12:34 +00:00