1# Bazel (https://bazel.io/) BUILD file for apksig library and apksigner tool. 2 3licenses(["notice"]) # Apache License 2.0 4 5# Public API of the apksig library 6java_library( 7 name = "apksig", 8 srcs = glob( 9 ["src/main/java/**/*.java"], 10 exclude = ["src/main/java/com/android/apksig/internal/**/*.java"], 11 ), 12 visibility = ["//visibility:public"], 13 deps = [":apksig-all"], 14) 15 16# All of apksig library, including private API which clients must not directly depend on. Private 17# API may change without regard to its clients outside of the apksig project. 18java_library( 19 name = "apksig-all", 20 srcs = glob(["src/main/java/**/*.java"]), 21 visibility = ["//visibility:private"], 22) 23 24java_binary( 25 name = "apksigner", 26 srcs = glob([ 27 "src/apksigner/java/**/*.java", 28 ]), 29 main_class = "com.android.apksigner.ApkSignerTool", 30 resources = glob([ 31 "src/apksigner/java/**/*.txt", 32 ]), 33 visibility = ["//visibility:public"], 34 deps = [":apksig"], 35) 36 37java_test( 38 name = "all", 39 srcs = glob([ 40 "src/test/java/com/android/apksig/**/*.java", 41 ]), 42 resources = glob([ 43 "src/test/resources/**/*", 44 ]), 45 size = "small", 46 test_class = "com.android.apksig.AllTests", 47 deps = [":apksig-all"], 48) 49