Yun Peng | 89ea68b | 2021-11-23 11:24:51 -0800 | [diff] [blame] | 1 | # This file will replace the content of the WORKSPACE file when Bzlmod is enabled |
| 2 | # No WORKSPACE prefix or suffix are added. |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 3 | |
| 4 | bind( |
| 5 | name = "android/sdk", |
| 6 | actual = "@bazel_tools//tools/android:poison_pill_android_sdk", |
| 7 | ) |
| 8 | |
| 9 | bind( |
| 10 | name = "android/dx_jar_import", |
| 11 | actual = "@bazel_tools//tools/android:no_android_sdk_repository_error", |
| 12 | ) |
| 13 | |
| 14 | bind( |
| 15 | name = "android/d8_jar_import", |
| 16 | actual = "@bazel_tools//tools/android:no_android_sdk_repository_error", |
| 17 | ) |
| 18 | |
| 19 | bind( |
| 20 | name = "android/crosstool", |
| 21 | actual = "@bazel_tools//tools/cpp:toolchain", |
| 22 | ) |
| 23 | |
| 24 | bind( |
| 25 | name = "android_sdk_for_testing", |
| 26 | actual = "@bazel_tools//tools/android:empty", |
| 27 | ) |
| 28 | |
| 29 | bind( |
| 30 | name = "android_ndk_for_testing", |
| 31 | actual = "@bazel_tools//tools/android:empty", |
| 32 | ) |
| 33 | |
| 34 | bind( |
| 35 | name = "databinding_annotation_processor", |
| 36 | actual = "@bazel_tools//tools/android:empty", |
| 37 | ) |
| 38 | |
| 39 | # This value is overridden by android_sdk_repository function to allow targets |
| 40 | # to select on whether or not android_sdk_repository has run. |
| 41 | bind( |
| 42 | name = "has_androidsdk", |
| 43 | actual = "@bazel_tools//tools/android:always_false", |
| 44 | ) |
| 45 | |
| 46 | # To run the Android integration tests in //src/test/shell/bazel/android:all or |
| 47 | # build the Android sample app in //examples/android/java/bazel:hello_world |
| 48 | # |
| 49 | # 1. Install an Android SDK and NDK from https://developer.android.com |
| 50 | # 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables |
| 51 | # 3. Uncomment the two lines below |
| 52 | # |
| 53 | # android_sdk_repository(name = "androidsdk") |
| 54 | # android_ndk_repository(name = "androidndk") |