platform_build_soong/cmd
Chris Parsons 8152a94816 Read BUILD files in bp2build
The parsed BUILD files will be scanned for obvious definitions of BUILD
targets which have Android.bp counterparts. In such cases, bp2build will
automatically omit conversion of these defined modules (to prevent
collisions). With this change, we no longer need one-off denylisting of
modules which have BUILD file definitions.

This has a 0.03s to 0.2s slowdown for bp2build with current state. This
impact is identical on a heavier test branch, as well. I also ran an
experiment that applied BUILD scanning to all source BUILD files
(regardless of allowlisting), and this had a 2 second slowdown.

We may want to look into parallelizing or improving the performance of
this evaluation, but it's probably not worth the effort at this time,
since the current performance hit is small.

Test: New integration test
Test: Removed libprotobuf-python from denylist and tested building the
package
Test: Treehugger

Change-Id: Ibde3bab12cd4a8fed642ad46e5344a56953bec91
2023-06-09 16:02:40 +00:00
..
dep_fixer Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
diff_target_files Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
extract_apks Add skip-sdk-check to extract_apks 2023-03-21 08:13:25 -07:00
extract_jar_packages Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
extract_linker Fix adding /DISCARD/ to linker script 2022-02-25 18:25:45 -08:00
fileslist Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
go2bp If invoked 'go list' command fails, show its stderr. 2022-04-19 11:32:28 -07:00
host_bionic_verify Stop injecting symbols into host bionic binaries 2021-06-11 15:22:41 -07:00
javac_wrapper Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
merge_zips Precompile python sources 2023-01-27 15:43:38 -08:00
multiproduct_kati Disable RBE in multiproduct_kati 2023-02-17 11:36:35 -08:00
path_interposer Add comments for path_interposer. 2022-05-06 12:42:05 +02:00
pom2bp Add support for pom with packaging=apk to pom2bp. 2022-10-12 12:12:02 -07:00
pom2mk Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
run_with_timeout Increase timeouts in Test_runWithTimeout 2021-09-17 21:36:29 +00:00
sbox sbox: print more errors 2023-03-28 22:39:00 +00:00
soong_build Read BUILD files in bp2build 2023-06-09 16:02:40 +00:00
soong_ui Delete stale bazel metrics files. 2023-06-06 18:20:13 +00:00
symbols_map symbols_map: allow unexpected EOF in ELF files 2022-04-12 21:18:09 +00:00
zip2zip add support for escaping for zip2zip 2023-04-17 14:58:02 +00:00
zipsync Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00