From b2123aa1df97dca26c73ef1f467ee043dc8c08c3 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 5 May 2017 13:37:11 -0700 Subject: 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 --- androidmk/cmd/androidmk/android.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'androidmk') 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 { -- cgit v1.2.3