aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/java/apkbuilder/BUILD
blob: 3274a121506d78f14fc20d1e64162e8fa993a60d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
licenses(["notice"])  # Apache 2.0

filegroup(
    name = "embedded_tools",
    srcs = [
        "BUILD.tools",
        "apkbuilder_deploy.jar",
    ],
    visibility = ["//src:__pkg__"],
)

# This filegroup is necessary so that Bazel finds an apkbuilder during the
# bootstrap process when this file is used as
# @bazel_tools//third_party/java/apkbuilder/BUILD. Otherwise, the bootstrap
# would fail if an Android SDK was declared in the WORKSPACE file of Bazel.
filegroup(name = "embedded_apkbuilder")

java_binary(
    name = "apkbuilder",
    srcs = glob(["java/**/*.java"]),
    main_class = "com.android.sdklib.build.ApkBuilderMain",
    deps = [
        "//src/java_tools/singlejar:libSingleJar",
        "//third_party:guava",
    ],
)

filegroup(
    name = "srcs",
    srcs = glob(["**"]),
    visibility = ["//third_party:__pkg__"],
)