blob: 0999f32e004b39e0838d7e79a569e7b976e1d357 [file] [log] [blame]
iirinaa8353612019-08-06 14:06:09 +02001load("@rules_java//java:defs.bzl", "java_binary")
2
Damien Martin-Guillerezf1ce35f2016-12-21 18:29:04 +01003licenses(["notice"]) # Apache 2.0
4
5filegroup(
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.
18filegroup(name = "embedded_apkbuilder")
19
20java_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
30filegroup(
31 name = "srcs",
32 srcs = glob(["**"]),
33 visibility = ["//third_party:__pkg__"],
34)