aboutsummaryrefslogtreecommitdiff
path: root/WORKSPACE
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-09-11 03:21:35 +0000
committerTao Bao <tbao@google.com>2018-09-10 20:25:06 -0700
commitc4af2b09ada22257ff12967537264627a3936822 (patch)
treebbbd0739556711089201e0448c444e8cf8bc547f /WORKSPACE
parent885730d69b5f844f1c59f6de809495726290ae22 (diff)
downloadbrotli-c4af2b09ada22257ff12967537264627a3936822.tar.gz
Revert "Merge tag 'v1.0.5' into HEAD"
This reverts commit 885730d69b5f844f1c59f6de809495726290ae22. Reason for revert: b/114832768 (32-bit recovery_component_test.UpdaterTest#brotli_new_data on marlin is broken). Bug: 114832768 Test: The above test passes w/ the revert. Change-Id: I9d6ad3ce44069a94bc78020ed28c5aa1a6d10ce8
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE63
1 files changed, 51 insertions, 12 deletions
diff --git a/WORKSPACE b/WORKSPACE
index 75f3768..6b8cba4 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1,21 +1,60 @@
+# Description:
+# Bazel workspace file for Brotli.
+
workspace(name = "org_brotli")
-local_repository(
- name = "ignore_org_brotli_go",
- path = "go",
+maven_jar(
+ name = "junit_junit",
+ artifact = "junit:junit:4.12",
+)
+
+git_repository(
+ name = "io_bazel_rules_go",
+ remote = "https://github.com/bazelbuild/rules_go.git",
+ tag = "0.4.4",
)
-local_repository(
- name = "ignore_org_brotli_java",
- path = "java",
+http_archive(
+ name = "io_bazel_rules_closure",
+ strip_prefix = "rules_closure-0.4.1",
+ sha256 = "ba5e2e10cdc4027702f96e9bdc536c6595decafa94847d08ae28c6cb48225124",
+ url = "http://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.4.1.tar.gz",
)
-local_repository(
- name = "ignore_org_brotli_js",
- path = "js",
+new_http_archive(
+ name = "openjdk_linux",
+ url = "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.20.0.5-jdk8.0.121/zulu8.20.0.5-jdk8.0.121-linux_x64.tar.gz",
+ sha256 = "7fdfb17d890406470b2303d749d3138e7f353749e67a0a22f542e1ab3e482745",
+ build_file_content = """
+package(
+ default_visibility = ["//visibility:public"],
+)
+filegroup(
+ name = "jni_h",
+ srcs = ["zulu8.20.0.5-jdk8.0.121-linux_x64/include/jni.h"],
+)
+filegroup(
+ name = "jni_md_h",
+ srcs = ["zulu8.20.0.5-jdk8.0.121-linux_x64/include/linux/jni_md.h"],
+)""",
)
-local_repository(
- name = "ignore_org_brotli_research",
- path = "research",
+new_http_archive(
+ name = "openjdk_macos",
+ url = "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.20.0.5-jdk8.0.121/zulu8.20.0.5-jdk8.0.121-macosx_x64.zip",
+ sha256 = "2a58bd1d9b0cbf0b3d8d1bcdd117c407e3d5a0ec01e2f53565c9bec5cf9ea78b",
+ build_file_content = """
+package(
+ default_visibility = ["//visibility:public"],
+)
+filegroup(
+ name = "jni_md_h",
+ srcs = ["zulu8.20.0.5-jdk8.0.121-macosx_x64/include/darwin/jni_md.h"],
+)""",
)
+
+load("@io_bazel_rules_go//go:def.bzl", "go_repositories")
+go_repositories()
+
+load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
+closure_repositories()