1 # Bazel (https://bazel.io/) BUILD file for apksig library and apksigner tool. 2 3 licenses(["notice"]) # Apache License 2.0 4 5 java_library( 6 name = "apksig", 7 srcs = glob([ 8 "src/main/java/**/*.java", 9 ]), 10 visibility = ["//visibility:public"], 11 ) 12 13 java_binary( 14 name = "apksigner", 15 srcs = glob([ 16 "src/apksigner/java/**/*.java", 17 ]), 18 main_class = "com.android.apksigner.ApkSignerTool", 19 resources = glob([ 20 "src/apksigner/java/**/*.txt", 21 ]), 22 visibility = ["//visibility:public"], 23 deps = [":apksig"], 24 ) 25 26 java_test( 27 name = "all", 28 srcs = glob([ 29 "src/test/java/com/android/apksig/**/*.java", 30 ]), 31 resources = glob([ 32 "src/test/resources/**/*", 33 ]), 34 test_class = "com.android.apksig.AllTests", 35 deps = [":apksig"], 36 ) 37