blob: 7e39c8ed39b217035935e4372bca3c69b0dd4caa [file] [log] [blame]
# Bazel (https://bazel.io/) BUILD file for apksig library and apksigner tool.
licenses(["notice"]) # Apache License 2.0
# Public API of the apksig library
java_library(
name = "apksig",
srcs = glob(
["src/main/java/**/*.java"],
exclude = ["src/main/java/com/android/apksig/internal/**/*.java"],
),
visibility = ["//visibility:public"],
deps = [":apksig-all"],
)
# All of apksig library, including private API which clients must not directly depend on. Private
# API may change without regard to its clients outside of the apksig project.
java_library(
name = "apksig-all",
srcs = glob(["src/main/java/**/*.java"]),
visibility = ["//visibility:private"],
)
java_binary(
name = "apksigner",
srcs = glob([
"src/apksigner/java/**/*.java",
]),
main_class = "com.android.apksigner.ApkSignerTool",
resources = glob([
"src/apksigner/java/**/*.txt",
]),
visibility = ["//visibility:public"],
deps = [":apksig"],
)
java_test(
name = "all",
srcs = glob([
"src/test/java/com/android/apksig/**/*.java",
]),
resources = glob([
"src/test/resources/**/*",
]),
size = "small",
test_class = "com.android.apksig.AllTests",
deps = [":apksig-all"],
)