diff --git a/android/variable.go b/android/variable.go index 03c797f73..e692fafb2 100644 --- a/android/variable.go +++ b/android/variable.go @@ -81,6 +81,10 @@ type variableProperties struct { Cflags []string Cppflags []string } + + Pdk struct { + Enabled *bool + } } `android:"arch_variant"` } diff --git a/androidmk/cmd/androidmk/android.go b/androidmk/cmd/androidmk/android.go index 82c5dac4f..3c3e2a1b2 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 {