blob: 50feeb0c2e3809625ab097219a555bf526cefba0 [file] [log] [blame]
package(default_visibility = ["//visibility:public"])
filegroup(
name = "jni_header",
srcs = ["//external:jni_header"],
)
filegroup(
name = "jni_md_header-darwin",
srcs = ["//external:jni_md_header-darwin"],
)
filegroup(
name = "jni_md_header-linux",
srcs = ["//external:jni_md_header-linux"],
)
filegroup(
name = "jni_md_header-freebsd",
srcs = ["//external:jni_md_header-freebsd"],
)
filegroup(
name = "java",
srcs = ["//external:java"],
)
filegroup(
name = "jar",
srcs = ["//external:jar"],
)
filegroup(
name = "javac",
srcs = ["//external:javac"],
)
# On Windows, executables end in ".exe", but the label we reach it through
# must be platform-independent. Thus, we create a little filegroup that
# contains the appropriate platform-dependent file.
filegroup(
name = "ijar",
srcs = glob(["ijar/*"]),
)
BOOTCLASS_JARS = [
"rt.jar",
"resources.jar",
"jsse.jar",
"jce.jar",
"charsets.jar",
]
filegroup(
name = "bootclasspath",
srcs = ["//external:bootclasspath"],
)
filegroup(
name = "extdir",
srcs = ["//external:extdir"],
)
filegroup(
name = "langtools",
srcs = ["//third_party/java/jdk/langtools:javac_jar"],
)
java_import(
name = "langtools-neverlink",
jars = [":langtools"],
neverlink = 1,
)
# This one is just needed because of how filegroup redirection works.
filegroup(name = "jre-null")
filegroup(
name = "jre",
srcs = [
":jre-null",
"//external:jre-default",
],
)
# This one is just needed because of how filegroup redirection works.
filegroup(name = "jdk-null")
filegroup(
name = "jdk",
srcs = [
":jdk-null",
"//external:jdk-default",
],
)
java_toolchain(
name = "toolchain",
encoding = "UTF-8",
jvm_opts = ["-client"],
source_version = "8",
target_version = "8",
)
filegroup(
name = "srcs",
srcs = [
"BUILD", # Tools are build from the workspace for tests.
"proguard_whitelister.py",
"proguard_whitelister_test.py",
"proguard_whitelister_test_input.cfg",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
)
py_binary(
name = "proguard_whitelister",
srcs = [
"proguard_whitelister.py",
],
deps = [
"//third_party/py/gflags",
],
)
py_test(
name = "proguard_whitelister_test",
srcs = ["proguard_whitelister_test.py"],
data = ["proguard_whitelister_test_input.cfg"],
deps = [
":proguard_whitelister",
],
)