aboutsummaryrefslogtreecommitdiff
path: root/WORKSPACE.bazel
blob: d54cdba4d43592493b0fe0842ac4106aa6e382d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# bazelbuild/platforms
platforms_version = "0.0.2"

platforms_sha = "48a2d8d343863989c232843e01afc8a986eb8738766bfd8611420a7db8f6f0c3"

http_archive(
    name = "platforms",
    sha256 = platforms_sha,
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/%s/platforms-%s.tar.gz" % (platforms_version, platforms_version),
        "https://github.com/bazelbuild/platforms/releases/download/%s/platforms-%s.tar.gz" % (platforms_version, platforms_version),
    ],
)

# bazelbuild/rules_python
http_archive(
    name = "rules_python",
    sha256 = "b6d46438523a3ec0f3cead544190ee13223a52f6a6765a29eae7b7cc24cc83a0",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.1.0/rules_python-0.1.0.tar.gz",
)

# bazelbuild/bazel-skylib
http_archive(
    name = "bazel_skylib",
    sha256 = "ebdf850bfef28d923a2cc67ddca86355a449b5e4f38b0a70e584dc24e5984aa6",
    strip_prefix = "bazel-skylib-f80bc733d4b9f83d427ce3442be2e07427b2cc8d",
    urls = [
        "https://github.com/bazelbuild/bazel-skylib/archive/f80bc733d4b9f83d427ce3442be2e07427b2cc8d.tar.gz",
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/f80bc733d4b9f83d427ce3442be2e07427b2cc8d.tar.gz",
    ],
)

load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()

# bazelbuild/rules_jvm_external
RULES_JVM_EXTERNAL_COMMIT = "367eb9ae5be8acd5a069b84c4672a2ed1d0bda82"

RULES_JVM_EXTERNAL_SHA = "f2b36a098736f8b742f22cb25dfcab5481ef5e3d8cfeb4f52b71f5537fbb8266"

http_archive(
    name = "rules_jvm_external",
    sha256 = RULES_JVM_EXTERNAL_SHA,
    strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_COMMIT,
    url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_COMMIT,
)

load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")

rules_jvm_external_deps()

load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")

rules_jvm_external_setup()

load("@rules_jvm_external//:defs.bzl", "maven_install")
load("//:maven.bzl", "MAVEN_ARTIFACTS")

maven_install(
    artifacts = MAVEN_ARTIFACTS,
    fail_if_repin_required = True,
    maven_install_json = "//:maven_install.json",
    repositories = [
        "https://repo1.maven.org/maven2",
    ],
    strict_visibility = True,
)

load("@maven//:defs.bzl", "pinned_maven_install")

pinned_maven_install()

# bazelbuild/rules_kotlin
rules_kotlin_version = "v1.5.0-alpha-3"

rules_kotlin_sha = "eeae65f973b70896e474c57aa7681e444d7a5446d9ec0a59bb88c59fc263ff62"

http_archive(
    name = "io_bazel_rules_kotlin",
    sha256 = rules_kotlin_sha,
    urls = ["https://github.com/bazelbuild/rules_kotlin/releases/download/%s/rules_kotlin_release.tgz" % rules_kotlin_version],
)

load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories")

kotlin_repositories()

register_toolchains("@//:kotlin_toolchain")

# google/bazel_common
bazel_common_commit = "11b744fb848a5c73b7173e8b771bf857b8558c89"

http_archive(
    name = "bazel_common",
    sha256 = "cf607d9004a518d8a9bc959b558ffca730ab26e31ee1a7a36248fb054ca84cb7",
    strip_prefix = "bazel-common-%s" % bazel_common_commit,
    urls = ["https://github.com/google/bazel-common/archive/%s.zip" % bazel_common_commit],
)

# google/gflags
com_github_gflags_gflags_version = "2.2.2"

http_archive(
    name = "com_github_gflags_gflags",
    patches = [
        "//third_party:gflags-use-double-dash-args.patch",
    ],
    sha256 = "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf",
    strip_prefix = "gflags-%s" % com_github_gflags_gflags_version,
    url = "https://github.com/gflags/gflags/archive/v%s.tar.gz" % com_github_gflags_gflags_version,
)

# google/googletest
googletest_version = "1.10.0"

http_archive(
    name = "googletest",
    sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
    strip_prefix = "googletest-release-%s" % googletest_version,
    url = "https://github.com/google/googletest/archive/release-%s.tar.gz" % googletest_version,
)

# google/glog
com_google_glog_version = "0.4.0"

http_archive(
    name = "com_google_glog",
    sha256 = "f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c",
    strip_prefix = "glog-%s" % com_google_glog_version,
    url = "https://github.com/google/glog/archive/v%s.tar.gz" % com_google_glog_version,
)

# abseil/abseil-cpp
com_google_absl_commit = "3a2d6572d06709da32a17f053ca1e3c8e2af90df"

http_archive(
    name = "com_google_absl",
    sha256 = "6ead5ca816dee2052e80ef746ab88e319f7cf40392e9dcc67d56d2d1e0043660",
    strip_prefix = "abseil-cpp-%s" % com_google_absl_commit,
    urls = ["https://github.com/abseil/abseil-cpp/archive/%s.zip" % com_google_absl_commit],
)

# bazelbuild/rules_pkg

rules_pkg_version = "0.3.0"

rules_pkg_sha = "6b5969a7acd7b60c02f816773b06fcf32fbe8ba0c7919ccdc2df4f8fb923804a"

http_archive(
    name = "rules_pkg",
    sha256 = rules_pkg_sha,
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/%s/rules_pkg-%s.tar.gz" % (rules_pkg_version, rules_pkg_version),
        "https://github.com/bazelbuild/rules_pkg/releases/download/%s/rules_pkg-%s.tar.gz" % (rules_pkg_version, rules_pkg_version),
    ],
)

load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")

rules_pkg_dependencies()

# bazelbuild/rules_foreign_cc
rules_foreign_cc_commit = "da99da47a0befc3dfbf65739190cd374f836f21d"

http_archive(
    name = "rules_foreign_cc",
    sha256 = "e0ddde89680738dcbba37809261c6904ea1a63e01068f5544e46f6122132cf55",
    strip_prefix = "rules_foreign_cc-%s" % rules_foreign_cc_commit,
    url = "https://github.com/bazelbuild/rules_foreign_cc/archive/%s.zip" % rules_foreign_cc_commit,
)

load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")

rules_foreign_cc_dependencies()

# libjpeg_turbo
http_archive(
    name = "libjpeg_turbo",
    build_file = "//third_party:libjpeg_turbo.BUILD",
    sha256 = "6a965adb02ad898b2ae48214244618fe342baea79db97157fdc70d8844ac6f09",
    strip_prefix = "libjpeg-turbo-2.0.90",
    url = "https://github.com/libjpeg-turbo/libjpeg-turbo/archive/2.0.90.tar.gz",
)

# JaCoCo
jacoco_commit = "178d49870056b8a1f8ea6915e804d28b0dda5609"

jacoco_sha = "da48fb5ae4ec3ffc659d4de18232aedea99476935f4ce4b0605f2d6aa1dc2553"

http_archive(
    name = "jacoco_internal",
    build_file = "//third_party:jacoco_internal.BUILD",
    patches = [
        "//third_party:jacoco-make-probe-inserter-subclassable.patch",
    ],
    sha256 = jacoco_sha,
    strip_prefix = "jacoco-%s" % jacoco_commit,
    url = "https://github.com/jacoco/jacoco/archive/178d49870056b8a1f8ea6915e804d28b0dda5609.tar.gz",
)

# libFuzzer
http_archive(
    name = "libFuzzer",
    build_file = "//third_party:libFuzzer.BUILD",
    patches = [
        "//third_party:libFuzzer-make-interceptors-configurable.patch",
        "//third_party:libFuzzer-pass-death-callback-to-jazzer.patch",
    ],
    sha256 = "a78949f86fc9852f51b11ceb3e6c2c61bb6e4ebb073198cebddc82451f708adf",
    strip_prefix = "llvm-project-llvmorg-12.0.0-rc3",
    url = "https://github.com/llvm/llvm-project/archive/llvmorg-12.0.0-rc3.tar.gz",
)