iirina | a835361 | 2019-08-06 14:06:09 +0200 | [diff] [blame^] | 1 | load("@rules_java//java:defs.bzl", "java_binary") |
| 2 | |
Damien Martin-Guillerez | f1ce35f | 2016-12-21 18:29:04 +0100 | [diff] [blame] | 3 | licenses(["notice"]) # Apache 2.0 |
| 4 | |
| 5 | filegroup( |
| 6 | name = "embedded_tools", |
| 7 | srcs = [ |
| 8 | "BUILD.tools", |
| 9 | "apkbuilder_deploy.jar", |
| 10 | ], |
| 11 | visibility = ["//src:__pkg__"], |
| 12 | ) |
| 13 | |
| 14 | # This filegroup is necessary so that Bazel finds an apkbuilder during the |
| 15 | # bootstrap process when this file is used as |
| 16 | # @bazel_tools//third_party/java/apkbuilder/BUILD. Otherwise, the bootstrap |
| 17 | # would fail if an Android SDK was declared in the WORKSPACE file of Bazel. |
| 18 | filegroup(name = "embedded_apkbuilder") |
| 19 | |
| 20 | java_binary( |
| 21 | name = "apkbuilder", |
| 22 | srcs = glob(["java/**/*.java"]), |
| 23 | main_class = "com.android.sdklib.build.ApkBuilderMain", |
| 24 | deps = [ |
| 25 | "//src/java_tools/singlejar:libSingleJar", |
| 26 | "//third_party:guava", |
| 27 | ], |
| 28 | ) |
| 29 | |
| 30 | filegroup( |
| 31 | name = "srcs", |
| 32 | srcs = glob(["**"]), |
| 33 | visibility = ["//third_party:__pkg__"], |
| 34 | ) |