mirror of
https://github.com/google/brotli.git
synced 2024-11-09 21:50:07 +00:00
1045ab52df
PiperOrigin-RevId: 595656443
57 lines
1.9 KiB
Plaintext
57 lines
1.9 KiB
Plaintext
workspace(name = "org_brotli_java")
|
|
|
|
local_repository(
|
|
name = "org_brotli",
|
|
path = "..",
|
|
)
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
|
|
|
|
RULES_JVM_EXTERNAL_TAG = "4.0"
|
|
RULES_JVM_EXTERNAL_SHA = "31701ad93dbfe544d597dbe62c9a1fdd76d81d8a9150c2bf1ecf928ecdf97169"
|
|
|
|
http_archive(
|
|
name = "rules_jvm_external",
|
|
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
|
|
sha256 = RULES_JVM_EXTERNAL_SHA,
|
|
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
|
|
)
|
|
|
|
load("@rules_jvm_external//:defs.bzl", "maven_install")
|
|
|
|
maven_install(
|
|
artifacts = ["junit:junit:4.12"],
|
|
repositories = [
|
|
"https://maven.google.com",
|
|
"https://repo1.maven.org/maven2",
|
|
],
|
|
)
|
|
|
|
http_file(
|
|
name = "openjdk_jni_h",
|
|
downloaded_file_path = "jni.h",
|
|
urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/share/javavm/export/jni.h"],
|
|
sha256 = "ed99792df48670072b78028faf704a8dcb6868fe140ccc7eced9b01dfa62fef4",
|
|
)
|
|
|
|
http_file(
|
|
name = "openjdk_solaris_jni_md_h",
|
|
downloaded_file_path = "jni_md.h",
|
|
urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/solaris/javavm/export/jni_md.h"],
|
|
sha256 = "b6cf7b06e5bba38d2daa2ff0789f99d396b3cb3bcc37d0367c8360fdccdef294",
|
|
)
|
|
|
|
http_file(
|
|
name = "openjdk_macosx_jni_md_h",
|
|
downloaded_file_path = "jni_md.h",
|
|
urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/macosx/javavm/export/jni_md.h"],
|
|
sha256 = "8f718071022e7e7f2fc9a229984b7e83582db91ed83861b49ce1461436fe8dc4",
|
|
)
|
|
|
|
http_file(
|
|
name = "openjdk_windows_jni_md_h",
|
|
downloaded_file_path = "jni_md.h",
|
|
urls = ["https://raw.githubusercontent.com/openjdk/jdk/jdk8-b120/jdk/src/windows/javavm/export/jni_md.h"],
|
|
sha256 = "5479fb385ea1e11619f5c0cdfd9ccb3ea3a3fea0f5bc6176fb3ce62be29d759b",
|
|
)
|