diff options
author | Michael Case <mikecase@google.com> | 2018-06-05 17:47:19 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-06-05 17:50:28 -0700 |
commit | 5105350be955422169de1f22bb99f928c1f4c2ae (patch) | |
tree | 1b1d48dda99f14a5bc6a02355d8b479cced761c2 /third_party/android/android.bzl.tpl | |
parent | 8a141854d81a9135a3658255c5813c5277364d01 (diff) |
Moves generated android_sdk() and android_ndk() repo rules out of WORKSPACE.
These rules currently get written by configure.py script to WORKSPACE
file which is not ideal since (1) WORKSPACE file is tracked by git and
(2) we require users to manually delete the rules in order to
update/regenerate them.
Moving these rules into an external repo that is generated based on
several ENV variables set by the configure.py script. Modifying any
of these ENV variables will cause the rules to be updated.
PiperOrigin-RevId: 199388460
Diffstat (limited to 'third_party/android/android.bzl.tpl')
-rw-r--r-- | third_party/android/android.bzl.tpl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/android/android.bzl.tpl b/third_party/android/android.bzl.tpl new file mode 100644 index 0000000000..e6ed4994f3 --- /dev/null +++ b/third_party/android/android.bzl.tpl @@ -0,0 +1,9 @@ +"""Set up configurable Android SDK and NDK dependencies.""" + +def android_workspace(): + # String for replacement in Bazel template. + # These will either be replaced by android_sdk_repository if various ENV + # variables are set when `local_config_android` repo_rule is run, or they + # will be replaced by noops otherwise. + MAYBE_ANDROID_SDK_REPOSITORY + MAYBE_ANDROID_NDK_REPOSITORY |