platform_build_soong/java
Martin Stjernholm 335d596384 Get the dex2oat host tool path from module dependency on the binary
module.

This uses the Once cache for GlobalSoongConfig to propagate the dex2oat
path from a module dependency to the singletons (both the one that
writes out dexpreopt_soong.config and the one that creates the
dexpreopted boot images). Unless dexpreopting is disabled altogether
through DisablePreopt in dexpreopt.config, that means:

- We must ensure at least one module registers a dex2oat tool
  dependency and resolves a GlobalSoongConfig using it, or else the
  singletons fail. That means we litter dex2oat dependencies in java
  modules even when they won't get dexpreopted and hence don't really
  need them.

- We still assume there's at least one java_library or android_app in
  the build.

Bug: 145934348
Test: m
  (check that out/soong/dexpreopt_soong.config points to dex2oatd64)
Test: env USE_DEX2OAT_DEBUG=false m
  (check that out/soong/dexpreopt_soong.config points to dex2oat)
Test: env OUT_DIR=out-tools prebuilts/build-tools/build-prebuilts.sh
  on the aosp-build-tools branch
Change-Id: I38317f2d5e5cf6822f87daae25745767c8a3656c
2020-01-24 22:18:42 +00:00
..
config Add framework-sdkextensions to jars to instrument 2020-01-17 09:57:52 +00:00
aapt2.go Move sharding functions for reuse 2019-09-29 23:26:37 -07:00
aar.go Add runtime_resource_overlay. 2020-01-23 14:24:41 -08:00
android_manifest.go Revert "Allow codename.fingerprint format for minSdkVersion" 2020-01-21 13:44:50 +00:00
android_resources.go Separate device and product overlays 2019-03-21 11:25:46 +00:00
androidmk.go Add runtime_resource_overlay. 2020-01-23 14:24:41 -08:00
androidmk_test.go AndroidMk for the hostdex library has separate AndroidMkEntries 2019-12-11 17:27:07 +09:00
app.go Get the dex2oat host tool path from module dependency on the binary 2020-01-24 22:18:42 +00:00
app_builder.go Reland "Also package recursive jni_libs deps of android_apps as well as direct deps." with bug fix. 2019-12-17 16:55:20 -08:00
app_test.go Do not remove RRO resources 2020-01-24 10:35:52 -08:00
builder.go Save compilation units in protobuf format. 2020-01-15 12:40:03 -08:00
device_host_converter.go jacoco correctly gathers info from APK-in-APEX 2020-01-08 14:49:31 +09:00
device_host_converter_test.go Add method to determine variations from a Target 2019-10-16 14:52:30 -07:00
dex.go Remove passing -forceprocessing flag to R8 2019-11-27 12:40:07 +01:00
dexpreopt.go Move the Once cache for dexpreopt.GlobalConfig into the dexpreopt 2020-01-24 22:18:42 +00:00
dexpreopt_bootjars.go Move the Once cache for dexpreopt.GlobalConfig into the dexpreopt 2020-01-24 22:18:42 +00:00
dexpreopt_bootjars_test.go Move the Once cache for dexpreopt.GlobalConfig into the dexpreopt 2020-01-24 22:18:42 +00:00
dexpreopt_config.go Move the Once cache for dexpreopt.GlobalConfig into the dexpreopt 2020-01-24 22:18:42 +00:00
dexpreopt_test.go Add a rule about platform_apis 2019-07-29 20:48:30 +09:00
droiddoc.go Restrict SdkMemberTypes that can be used with sdk/sdk_snapshot 2019-12-31 15:08:59 +00:00
gen.go Shard aidl compiles into srcjars 2019-10-04 14:00:36 -07:00
genrule.go Dedup java genrule module type registration 2019-12-19 19:19:40 +00:00
hiddenapi.go
hiddenapi_singleton.go Revert submission 1194828-revert-1191937-art_apex_available-DWXQGTKMAR 2019-12-19 02:11:10 +00:00
jacoco.go Tune JVM, print full diagnostics on crash. 2019-06-11 13:30:13 -07:00
jacoco_test.go
java.go Get the dex2oat host tool path from module dependency on the binary 2020-01-24 22:18:42 +00:00
java_resources.go Track sources for srcjars across modules 2019-05-06 14:22:26 -07:00
java_test.go Get the dex2oat host tool path from module dependency on the binary 2020-01-24 22:18:42 +00:00
jdeps.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
jdeps_test.go
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 Define a make variable for merged compat config. 2020-01-08 11:24:58 +00:00
plugin.go
plugin_test.go Java test code clean-up 2019-07-17 11:15:09 -07:00
prebuilt_apis.go Dedup prebuilt apis module type/mutator registration 2019-12-19 19:19:40 +00:00
proto.go Default to compiling lite protos 2019-10-26 20:35:13 +00:00
robolectric.go AndroidMkEntries() returns multiple AndroidMkEntries structs 2019-12-11 17:25:27 +09:00
sdk.go Add runtime_resource_overlay. 2020-01-23 14:24:41 -08:00
sdk_library.go Remove unused java_sdk_library_import properties 2020-01-21 18:37:58 +00:00
sdk_test.go Move filesystem into Config 2019-12-18 08:19:10 -08:00
support_libraries.go Allow other module types in androidx 2019-07-22 13:18:48 -07:00
sysprop.go Create public stub for platform's sysprop_library 2019-12-19 09:35:23 +09:00
system_modules.go Added java_system_modules_import 2020-01-15 11:17:57 +00:00
testing.go Remove unused system_modules 2020-01-03 14:16:22 +09:00
tradefed.go Add tradefed_java_library_host 2019-10-18 15:14:15 -07:00