| # This package contains an external repository that the Android rules |
| # depend on at runtime. This is an interim solution to extract dependencies |
| # out from the Bazel binary to minimize its size. The final goal is to |
| # extract all Android rules and tools out of Bazel and into rules_android |
| load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") |
| "WORKSPACE.android_tools", |
| "upload_android_tools.sh", |
| "//tools/android:__pkg__", |
| # :android_tools creates a tarball containing the outputs of this genrule. |
| name = "strip_android_tools_suffix", |
| "WORKSPACE.android_tools", |
| cp $(location BUILD.android_tools) $(location BUILD) && \ |
| cp $(location WORKSPACE.android_tools) $(location WORKSPACE) |
| "//src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps:ImportDepsChecker_deploy.jar", |
| "//src/tools/android/java/com/google/devtools/build/android:all_android_tools_deploy.jar", |
| name = "upload_android_tools", |
| srcs = ["upload_android_tools.sh"], |
| data = ["android_tools.tar.gz"], |