aboutsummaryrefslogtreecommitdiffstats
path: root/androidmk
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-05-05 13:37:11 -0700
committerColin Cross <ccross@android.com>2017-05-05 18:22:30 -0700
commitb2123aa1df97dca26c73ef1f467ee043dc8c08c3 (patch)
tree07b9d7de59efe42d27a6ef7db62db40d9e8917ef /androidmk
parentc602b7d8817fdc0b7fbf1942b87c0f6eecf32aa2 (diff)
downloadbuild_soong-b2123aa1df97dca26c73ef1f467ee043dc8c08c3.tar.gz
build_soong-b2123aa1df97dca26c73ef1f467ee043dc8c08c3.tar.bz2
build_soong-b2123aa1df97dca26c73ef1f467ee043dc8c08c3.zip
Add a variable to disable modules in the PDK
Not plumbed through yet, but will at least prevent us from losing track of which modules will not build in the PDK. Test: builds Change-Id: I4c1a0e39104b104dc1ff23c4391d5e83b3002d3a
Diffstat (limited to 'androidmk')
-rw-r--r--androidmk/cmd/androidmk/android.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/androidmk/cmd/androidmk/android.go b/androidmk/cmd/androidmk/android.go
index 82c5dac4..3c3e2a1b 100644
--- a/androidmk/cmd/androidmk/android.go
+++ b/androidmk/cmd/androidmk/android.go
@@ -637,8 +637,11 @@ var conditionalTranslations = map[string]map[bool]string{
true: "target.linux",
false: "target.not_linux"},
"(,$(TARGET_BUILD_APPS))": {
- false: "product_variables.unbundled_build",
- },
+ false: "product_variables.unbundled_build"},
+ "($(TARGET_BUILD_PDK),true)": {
+ true: "product_variables.pdk"},
+ "($(TARGET_BUILD_PDK), true)": {
+ true: "product_variables.pdk"},
}
func mydir(args []string) string {