From 6af2e4980faddca3fe95b3384b0910fb07bea2fa Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 22 May 2018 11:12:33 -0700 Subject: [PATCH] Support platform_apis property Add a platform_apis property. The logic to verify it isn't hooked up yet, but this will allow translating modules to Soong without losing the annotation. Test: m checkbuild Change-Id: I75ff2d7b94247873f5bb1547a9b347a8e73c3191 --- androidmk/cmd/androidmk/android.go | 2 ++ java/java.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/androidmk/cmd/androidmk/android.go b/androidmk/cmd/androidmk/android.go index ed6a356bd..ded9efa47 100644 --- a/androidmk/cmd/androidmk/android.go +++ b/androidmk/cmd/androidmk/android.go @@ -179,6 +179,8 @@ func init() { "LOCAL_DEX_PREOPT": "dex_preopt.enabled", "LOCAL_DEX_PREOPT_APP_IMAGE": "dex_preopt.app_image", "LOCAL_DEX_PREOPT_GENERATE_PROFILE": "dex_preopt.profile_guided", + + "LOCAL_PRIVATE_PLATFORM_APIS": "platform_apis", }) } diff --git a/java/java.go b/java/java.go index 8c2312476..a4cb65b51 100644 --- a/java/java.go +++ b/java/java.go @@ -171,6 +171,9 @@ type CompilerDeviceProperties struct { // if not blank, set to the version of the sdk to compile against Sdk_version *string + // if true, compile against the platform APIs instead of an SDK. + Platform_apis *bool + Aidl struct { // Top level directories to pass to aidl tool Include_dirs []string