aboutsummaryrefslogtreecommitdiffstats
path: root/androidmk
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-12-05 15:31:19 -0800
committerColin Cross <ccross@android.com>2017-12-06 13:27:56 -0800
commit1bd8780881ffdeb4b16bfedc4410f54fc6e2fabb (patch)
tree9f8604346d429f6183a5e411bf806302a774c55b /androidmk
parent7a6fcbe302dd581deeda341b76d853af3f6ec12c (diff)
downloadbuild_soong-1bd8780881ffdeb4b16bfedc4410f54fc6e2fabb.tar.gz
build_soong-1bd8780881ffdeb4b16bfedc4410f54fc6e2fabb.tar.bz2
build_soong-1bd8780881ffdeb4b16bfedc4410f54fc6e2fabb.zip
Add more dex_preopt properties
Move dex_preopt to dex_preopt.enabled, and add dex_preopt.app_image, dex_preopt.profile_guided, and dex_preopt.profile. These values will be passed back to Make if provided to control dex preopting. Test: m checkbuild Change-Id: I54a4b1de697a08be20ab65d2a5dc43ce0046692d
Diffstat (limited to 'androidmk')
-rw-r--r--androidmk/cmd/androidmk/android.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/androidmk/cmd/androidmk/android.go b/androidmk/cmd/androidmk/android.go
index 18756a9f..bb9d140f 100644
--- a/androidmk/cmd/androidmk/android.go
+++ b/androidmk/cmd/androidmk/android.go
@@ -94,6 +94,8 @@ func init() {
"LOCAL_NOTICE_FILE": "notice",
"LOCAL_JAVA_LANGUAGE_VERSION": "java_version",
"LOCAL_INSTRUMENTATION_FOR": "instrumentation_for",
+
+ "LOCAL_DEX_PREOPT_PROFILE_CLASS_LISTING": "dex_preopt.profile",
})
addStandardProperties(bpparser.ListType,
map[string]string{
@@ -151,7 +153,10 @@ func init() {
"LOCAL_PROPRIETARY_MODULE": "proprietary",
"LOCAL_VENDOR_MODULE": "vendor",
"LOCAL_EXPORT_PACKAGE_RESOURCES": "export_package_resources",
- "LOCAL_DEX_PREOPT": "dex_preopt",
+
+ "LOCAL_DEX_PREOPT": "dex_preopt.enabled",
+ "LOCAL_DEX_PREOPT_APP_IMAGE": "dex_preopt.app_image",
+ "LOCAL_DEX_PREOPT_GENERATE_PROFILE": "dex_preopt.profile_guided",
})
}