platform_build_soong/java
Paul Duffin b645ec8e34 Add model to represent generated snapshot .bp file
Having each module type generate the contents of the snapshot's .bp
file results in lots of duplicated code. This adds an intermediate
model for use by the module types and then generates the .bp file
contents from that.

This not only removes the duplicated formatting code but it also
allows consistent handling of shared properties such as name further
reducing duplication. It also makes it possible to duplicate the
versioned and unversioned prebuilt modules from the same model.

Extracts generatedContents from generatedFile to allow the contents
to be populated without creating an output file, for testing.

Cleans up unused code.

Bug: 143678475
Test: m nothing
Change-Id: If21b84db0ef3fdfb5dc11ea0973ce6cb73603ea3
2019-12-02 12:59:38 +00:00
..
config Remove the EXPERIMENTAL_USE_OPENJDK11_TOOLCHAIN option. 2019-11-11 11:03:58 +00:00
aapt2.go Move sharding functions for reuse 2019-09-29 23:26:37 -07:00
aar.go Add exported_plugins to java.Library. 2019-11-26 19:05:26 +00:00
android_manifest.go Touch up manifest if there's no source code. 2019-06-03 10:51:42 -07:00
android_resources.go Separate device and product overlays 2019-03-21 11:25:46 +00:00
androidmk.go Reland: JNI lib is always embedded for APKs in APEX 2019-11-14 00:39:47 +09:00
androidmk_test.go Migrate java/androidmk.go to new system #1 2019-09-10 07:38:31 -07:00
app.go Fix incorrect install path for priv-app prebuilt 2019-11-22 13:36:21 +09:00
app_builder.go Use prebuilts for more tools in unbundled builds 2019-08-08 12:56:34 -07:00
app_test.go Fix test app and helper installation dirs. 2019-11-21 10:41:00 -08:00
builder.go Fix turbine classpath arguments 2019-11-07 02:05:06 +00:00
device_host_converter.go Add exported_plugins to java.Library. 2019-11-26 19:05:26 +00:00
device_host_converter_test.go Add method to determine variations from a Target 2019-10-16 14:52:30 -07:00
dex.go Fix turbine classpath arguments 2019-11-07 02:05:06 +00:00
dexpreopt.go Remove support for stripping dex. 2019-10-18 14:52:16 +01:00
dexpreopt_bootjars.go Revert^4 "Package dexpreopt artifacts for libcore jars in the ART apex." 2019-11-08 12:48:53 +00:00
dexpreopt_bootjars_test.go Make TestContext.RegisterModuleType take an android.ModuleFactory 2019-11-25 10:59:44 -08:00
dexpreopt_config.go Revert^2 "Do not dexpreopt system server jars from updatable modules." 2019-11-27 12:29:50 +00:00
dexpreopt_test.go Add a rule about platform_apis 2019-07-29 20:48:30 +09:00
droiddoc.go Add model to represent generated snapshot .bp file 2019-12-02 12:59:38 +00:00
gen.go Shard aidl compiles into srcjars 2019-10-04 14:00:36 -07:00
genrule.go Add module type docs to the java package 2019-02-13 18:39:40 +00:00
hiddenapi.go Improve hiddenapi processing so it does not require white list 2019-02-28 16:13:20 +00:00
hiddenapi_singleton.go Pass hiddenapi-greylist-max-q.txt to greylist generator. 2019-11-20 10:46:16 +00:00
jacoco.go Tune JVM, print full diagnostics on crash. 2019-06-11 13:30:13 -07:00
jacoco_test.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
java.go Add model to represent generated snapshot .bp file 2019-12-02 12:59:38 +00:00
java_resources.go Track sources for srcjars across modules 2019-05-06 14:22:26 -07:00
java_test.go Add exported_plugins to java.Library. 2019-11-26 19:05:26 +00:00
jdeps.go AIDEGen: Collect the srcjar into out/soong/module_bp_java_deps.json 2019-05-27 11:34:10 +00:00
jdeps_test.go jarjar_rules: accept file-group 2019-01-23 18:05:18 +00:00
kotlin.go Fix turbine classpath arguments 2019-11-07 02:05:06 +00:00
kotlin_test.go Java test code clean-up 2019-07-17 11:15:09 -07:00
OWNERS Add ART folks to owner of dexpreopt related file. 2019-04-30 15:33:49 +01:00
platform_compat_config.go Replace RelPathString() with ToMakePath() 2019-10-03 10:07:53 -07:00
plugin.go Replace annotation_processors with plugins 2019-01-23 20:17:51 +00:00
plugin_test.go Java test code clean-up 2019-07-17 11:15:09 -07:00
prebuilt_apis.go Make CreateModule take an android.ModuleFactory 2019-09-26 17:19:26 +00:00
proto.go Default to compiling lite protos 2019-10-26 20:35:13 +00:00
robolectric.go Move sharding functions for reuse 2019-09-29 23:26:37 -07:00
sdk.go Use java language 1.9 for sdk_version: "current" 2019-10-29 13:35:39 -07:00
sdk_library.go Remove api_srcs property from java_sdk_library 2019-10-31 20:38:14 +09:00
sdk_test.go Use java language 1.9 for sdk_version: "current" 2019-10-29 13:35:39 -07:00
support_libraries.go Allow other module types in androidx 2019-07-22 13:18:48 -07:00
system_modules.go Add experimental option to use OpenJDK 11 toolchain. 2019-10-09 18:38:14 +01:00
testing.go Remove unused core-system-modules 2019-09-27 10:38:06 +01:00
tradefed.go Add tradefed_java_library_host 2019-10-18 15:14:15 -07:00