aboutsummaryrefslogtreecommitdiffhomepage
path: root/WORKSPACE
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-05 18:37:12 +0000
committerGravatar David Chen <dzc@google.com>2016-02-05 20:54:04 +0000
commit0c1a8cfb0a928066602c09cccbf7fc995eecfbf6 (patch)
treec997c61785d34f02ec1750c979a10c47e05579cd /WORKSPACE
parent8378cd840122509fb88efdc49eb5663cad9c7fc4 (diff)
Fix ./compile.sh when no android support is present
Tested by merging and ./compile.sh with and without the ANDROID_* environment variables. Fixes #851. -- MOS_MIGRATED_REVID=113962923
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE11
1 files changed, 11 insertions, 0 deletions
diff --git a/WORKSPACE b/WORKSPACE
index 76cbc6fcbd..609093fce4 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -12,6 +12,17 @@ jsonnet_repositories()
rust_repositories()
sass_repositories()
+# Bind to dummy targets if no android SDK/NDK is present.
+bind(
+ name = "android_sdk_for_testing",
+ actual = "//:dummy",
+)
+
+bind(
+ name = "android_ndk_for_testing",
+ actual = "//:dummy",
+)
+
# In order to run the Android integration tests, run
# scripts/workspace_user.sh and uncomment the next two lines.
# load("/WORKSPACE.user", "android_repositories")