platform_build_soong/cmd
Lukacs T. Berki d518e1a407 Make bp2build be more correct.
It now handles adding .bp files and changing globs.

In order to do this, depfiles are now written separately from RunBlueprint.

This is necessary due to the confluence of a number of seemingly
unrelated factors:

1. The glob filelist dependencies are discovered in globSingleton
2. Singletons need to be registered because otherwise singleton module
   types panic
3. Singletons don't work because they require mutators bp2build does not
   run

Due to (1), we would need to run the glob singleton. However, due to (2)
and (3), we can't run singletons and have to run Blueprint with
StopBeforeGeneratingBuildActions, which is when the build actions
writing glob files would be generated. So what happens is:

1. When bp2build is run, the glob singleton is disabled
2. At the end of bp2build, the list of glob files is artifically added
   to the depfile of the workspace marker file
3. When build.ninja is generated, the Ninja file containing the glob
   list file is written by the now-active glob singleton

Test: Presubmits.
Change-Id: I3c5898d8c57c554a93520276c64a952afc912dbe
2021-04-15 13:06:16 +02: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 LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
extract_jar_packages Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
extract_linker Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
fileslist Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
host_bionic_inject Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00: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 Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00: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
sbox Fix multiple copies of read-only files in sbox 2021-03-31 13:17:42 -07:00
soong_build Make bp2build be more correct. 2021-04-15 13:06:16 +02:00
soong_ui Embed minibp into soong_ui. 2021-03-17 08:35:52 +01: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