platform_build_soong/java
Colin Cross dd7063ba08 Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES
If a static android library lib1 has static_libs: ["lib2"] then the
R.class files for packages in lib2 will be merged into the jar for
lib1.  If an app has lib1 in its static_libs it will get the R.class
files from lib2 through lib1, instead of regenerating the R.java
files with numbering that matches the resource table of the app.

Pass transtive static android library dependencies on the aapt2
command line so that aapt2 will always regenerate the R.java
constants for those packages.

Also extract the packages that have R.java files after each aapt2
invocation.  This is not necessary for Soong, but is passed to
make to let it force regenerating the packages using
--extra-packages.

Bug: 78300023
Test: m checkbuild
Change-Id: I0f3444af44d2a9f370d1f156c908972f8cc3a1ee
Merged-In: I0f3444af44d2a9f370d1f156c908972f8cc3a1ee
(cherry picked from commit 66f78820e1)
2018-05-03 14:38:12 -07:00
..
config Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-03 14:38:12 -07:00
aapt2.go Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-03 14:38:12 -07:00
aar.go Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-03 14:38:12 -07:00
android_resources.go Add support for android_library modules 2018-05-03 14:38:12 -07:00
androidmk.go Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-03 14:38:12 -07:00
app.go Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-03 14:38:12 -07:00
app_builder.go Add support for android_library modules 2018-05-03 14:38:12 -07:00
app_test.go Add support for android_library modules 2018-05-03 14:38:12 -07:00
builder.go Replace extract-srcjars.sh with zipsync tool 2018-03-20 11:21:42 -07:00
dex.go Add EMMA_INSTRUMENT_STATIC support 2018-01-04 14:52:45 -08:00
droiddoc.go Replace extract-srcjars.sh with zipsync tool 2018-03-20 11:21:42 -07:00
gen.go Add proto.canonical_path_from_root 2018-02-22 16:48:35 -08:00
genrule.go Add java_genrules to use jars as inputs and outputs 2017-12-06 03:55:20 +00:00
jacoco.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
jacoco_test.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
java.go Add support for android_library modules 2018-05-03 14:38:12 -07:00
java_resources.go Add support for android_library modules 2018-05-03 14:38:12 -07:00
java_test.go Add support for android_library modules 2018-05-03 14:38:12 -07:00
proto.go Add proto.canonical_path_from_root 2018-02-22 16:48:35 -08:00
system_modules.go Export system module library list to Make 2018-01-25 14:51:50 -08:00