aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-12-18 21:38:34 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-12-18 21:38:34 +0000
commit9cffd81dd9df243cce02c811c67a0bb341bb35ba (patch)
tree67b5eb1016925ec04c0514801ddd323f05ce60b0
parent7d31ed492a2b79e5cfc92f0179364de8b0d3b7dd (diff)
parent0931ed239bd1bd38d79fcd85e176e27af8537cc8 (diff)
downloadgtest-9cffd81dd9df243cce02c811c67a0bb341bb35ba.tar.gz
Merge "Fix gtest soong unbundled builds"
am: 0931ed239b * commit '0931ed239bd1bd38d79fcd85e176e27af8537cc8': Fix gtest soong unbundled builds
-rw-r--r--Android.bp26
1 files changed, 18 insertions, 8 deletions
diff --git a/Android.bp b/Android.bp
index 804b16c..c456b40 100644
--- a/Android.bp
+++ b/Android.bp
@@ -36,6 +36,16 @@ cc_defaults {
],
cflags: ["-Wno-missing-field-initializers"],
cppflags: ["-std=gnu++98"],
+ target: {
+ android: {
+ product_variables: {
+ unbundled_build: {
+ // Don't build for unbundled branches
+ enabled: false,
+ },
+ },
+ },
+ },
}
cc_defaults {
@@ -45,14 +55,6 @@ cc_defaults {
windows: {
enabled: true,
},
- host: {
- product_variables: {
- unbundled_build: {
- // Don't build for unbundled branches
- enabled: false,
- },
- },
- },
},
}
@@ -147,6 +149,14 @@ cc_test {
cflags: ["-O0"],
ldflags: ["-lpthread"],
},
+ android: {
+ product_variables: {
+ unbundled_build: {
+ // Don't build for unbundled branches
+ enabled: false,
+ },
+ },
+ },
},
test_per_src: true,
srcs: [