platform_build_soong/cmd
Jingwen Chen 53dfa408b4 Generate build-globs.ninja when running bp2build.
This fixes null bp2build builds.

When running bp2build, out/soong/.bootstrap/build-globs.ninja wasn't
generated, therefore none of the globs in out/soong/.primary/globs have
actions to generate them. This makes bp2build always re-run on a null
build, because it depends on those non-existent globs in its depfile.

Fix the above by generating a build-globs.ninja file with the globs that
bp2build encounters during conversion, and add tests to verify that null
builds and bp2build -> soong workflows correctly regenerates the
build-globs.ninja file.

Test: soong integration tests for null soong->soong, bp2build->bp2build and bp2build->soong builds.
Fixes: 193650250
Change-Id: Icfbad351dfa85541d1ea451f73e65cac87097926
2021-08-12 10:14:02 +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 Upgrade to golang protobuf api v2 2021-07-23 11:12:05 -07:00
extract_jar_packages Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
extract_linker Add symbols for start and end of embedded linker 2021-07-27 22:47:22 -07:00
fileslist Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
go2bp go2bp: Add -limit and -skip-tests to more easily limit imported modules 2021-07-12 21:46:02 -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 Move response file handling to a separate package 2021-03-25 11:06:45 -07:00
multiproduct_kati Cut the multiproduct_kati -> soong-ui-build dep. 2021-08-11 15:15:02 +02:00
path_interposer Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
pom2bp Revert^2 "Set min_sdk_version for java imports in pom2bp" 2021-04-06 19:21:34 +00:00
pom2mk Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
run_with_timeout Add more debugging to run_with_timeout 2021-08-05 16:51:50 -07:00
sbox Upgrade to golang protobuf api v2 2021-07-23 11:12:05 -07:00
soong_build Generate build-globs.ninja when running bp2build. 2021-08-12 10:14:02 +00:00
soong_ui Cut the multiproduct_kati -> soong-ui-build dep. 2021-08-11 15:15:02 +02:00
zip2zip Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
zipsync Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00