platform_build_soong/java
Colin Cross 66f78820e1 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
2018-05-02 13:11:01 -07:00
..
config Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-02 13:11:01 -07:00
aapt2.go Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-02 13:11:01 -07:00
aar.go Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-02 13:11:01 -07:00
android_resources.go Add support for android_library modules 2018-04-16 15:24:47 -07:00
androidmk.go Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-02 13:11:01 -07:00
app.go Regenerate R.java files from LOCAL_STATIC_ANDROID_LIBRARIES 2018-05-02 13:11:01 -07:00
app_builder.go Add support for android_library modules 2018-04-16 15:24:47 -07:00
app_test.go Fix aapt2 --min-sdk-version after finalized SDK 2018-04-18 12:39:25 -07:00
builder.go Add support for renamed kotlin stdlib. 2018-03-20 12:55:19 +00:00
dex.go Add EMMA_INSTRUMENT_STATIC support 2018-01-04 14:52:45 -08:00
droiddoc.go Add new Doclava flag support to soong 2018-04-25 10:12:40 +00:00
gen.go Add proto.canonical_path_from_root 2018-02-22 16:48:35 -08:00
genrule.go Soong: add "java_genrule_host" 2018-04-13 16:37:22 -07: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 Adding java_sdk_library 2018-04-19 08:57:30 +09:00
java_resources.go Add support for android_library modules 2018-04-16 15:24:47 -07:00
java_test.go Add prebuilt_etc_xml 2018-04-28 00:13:00 +09:00
proto.go Consistently use Bool instead of proptools.Bool 2018-04-10 22:50:34 -07:00
sdk_library.go Property api_srcs added for api-only source files 2018-05-02 02:13:44 +09:00
system_modules.go Export system module library list to Make 2018-01-25 14:51:50 -08:00