summaryrefslogtreecommitdiff
path: root/test-mock/Android.bp
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2018-03-23 17:29:05 +0900
committerJiyong Park <jiyong@google.com>2018-03-30 14:57:23 +0900
commit8f2df8a94ffe21cd7b73f3178ef778f10c67b6c1 (patch)
tree3c03a4a3a2500740bd7b172049bc18b6309d73a7 /test-mock/Android.bp
parent6964add112adadfac4c59dddce1b21beeb570cfe (diff)
Don't build android.test.mock.stubs for unbundled builds
Unbundled builds use the prebuilt libs in /prebuilts/sdk/current and system_current. Bug: 73829976 Test: m -j ANDROID_BUILDSPEC=vendor/google/build/app_build_spec.mk Merged-In: I61fe0d671778595f49be82d7c11caffc411f58a3 Change-Id: I61fe0d671778595f49be82d7c11caffc411f58a3 (cherry picked from commit ea93a9ebc22d2685ecc94b0a51175ec7c6eb7d05)
Diffstat (limited to 'test-mock/Android.bp')
-rw-r--r--test-mock/Android.bp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test-mock/Android.bp b/test-mock/Android.bp
index 9b709705f00a..51fa86bacc75 100644
--- a/test-mock/Android.bp
+++ b/test-mock/Android.bp
@@ -84,10 +84,24 @@ java_library_static {
name: "android.test.mock.stubs",
srcs: [":android.test.mock.docs"],
sdk_version: "current",
+ product_variables: {
+ unbundled_build: {
+ // Unbundled apps will use the prebuilt one
+ // prebuilts/sdk/current
+ enabled: false,
+ },
+ },
}
java_library_static {
name: "android.test.mock.stubs-system",
srcs: [":android.test.mock.docs-system"],
sdk_version: "system_current",
+ product_variables: {
+ unbundled_build: {
+ // Unbundled apps will use the prebuilt one
+ // prebuilts/sdk/system_current
+ enabled: false,
+ },
+ },
}