summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-12-01 16:13:25 -0800
committerColin Cross <ccross@android.com>2015-12-01 16:32:21 -0800
commit47a9376d513493a5196a5a83bf136924d65e30f1 (patch)
tree8e3c716f9950938ed8ec24c2d14a442fdfdea230
parent286a75e86e5613538252eb5a29609c294036b47c (diff)
downloadlibcxx-47a9376d513493a5196a5a83bf136924d65e30f1.tar.gz
Disable host libcxx.so for apps builds
Change-Id: Ib176923464f1f8c5f414cc5b869c60c3561484a1
-rw-r--r--Android.bp12
1 files changed, 9 insertions, 3 deletions
diff --git a/Android.bp b/Android.bp
index 7d0199335..1364e4636 100644
--- a/Android.bp
+++ b/Android.bp
@@ -80,6 +80,12 @@ cc_library_shared {
},
host: {
ldflags: ["-nodefaultlibs"],
+ // Don't build for unbundled branches
+ product_variables: {
+ unbundled_build: {
+ enabled: false,
+ },
+ },
},
darwin: {
ldflags: [
@@ -100,10 +106,10 @@ cc_library_shared {
}
-// Don't build for unbundled branches
// ANDROIDMK TRANSLATION ERROR: unsupported conditional
-// ifeq (,$(TARGET_BUILD_APPS))
-// host dynamic lib
+// ifdef LIBCXX_TESTING
+// ANDROIDMK TRANSLATION ERROR: unsupported include
+// include $(LOCAL_PATH)/buildcmds/Android.mk
// ANDROIDMK TRANSLATION ERROR: endif from unsupported contitional
// endif