platform_build_soong/bazel
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
..
cquery Support cc_library_shared for mixed builds 2021-06-15 12:40:28 +00:00
Android.bp Use maps in bazel *attribute types 2021-06-03 17:37:56 -04:00
aquery.go Handle simple symlinks in mixed builds 2021-06-09 10:40:32 -04:00
aquery_test.go Handle simple symlinks in mixed builds 2021-06-09 10:40:32 -04:00
configurability.go Extract function to handle configurable excludes 2021-06-04 10:15:34 -04:00
constants.go Dump bazel product config in Soong 2021-05-19 17:38:56 -04:00
properties.go Seperate asflags and cflags 2021-07-13 14:06:14 -04:00
properties_test.go Extract function to handle configurable excludes 2021-06-04 10:15:34 -04:00