blob: bd9739b64e54116c8bc031bdaaecfa2c7e7a8d3c [file] [log] [blame]
# Copyright 2021 Code Intelligence GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Contains the external dependencies required to build Jazzer (but not the examples)."""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_jar")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
def jazzer_dependencies():
maybe(
http_archive,
name = "platforms",
sha256 = "379113459b0feaf6bfbb584a91874c065078aa673222846ac765f86661c27407",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz",
"https://github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz",
],
)
maybe(
http_archive,
name = "bazel_skylib",
sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d",
urls = [
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
],
)
maybe(
http_archive,
name = "io_bazel_rules_kotlin",
sha256 = "12d22a3d9cbcf00f2e2d8f0683ba87d3823cb8c7f6837568dd7e48846e023307",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.5.0/rules_kotlin_release.tgz",
)
maybe(
http_archive,
name = "com_google_glog",
repo_mapping = {"@com_github_gflags_gflags": "@jazzer_com_github_gflags_gflags"},
sha256 = "eede71f28371bf39aa69b45de23b329d37214016e2055269b3b5e7cfd40b59f5",
strip_prefix = "glog-0.5.0",
url = "https://github.com/google/glog/archive/refs/tags/v0.5.0.tar.gz",
)
maybe(
http_archive,
name = "com_google_absl",
sha256 = "dcf71b9cba8dc0ca9940c4b316a0c796be8fab42b070bb6b7cab62b48f0e66c4",
strip_prefix = "abseil-cpp-20211102.0",
url = "https://github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.tar.gz",
)
maybe(
http_archive,
name = "com_github_johnynek_bazel_jar_jar",
sha256 = "138a33a5c6ed9355e4411caa22f2fe45460b7e1e4468cbc29f7955367d7a001a",
strip_prefix = "bazel_jar_jar-commit-d97cfd22d47cba9a20708fa092f20348b72fb5ed",
url = "https://github.com/CodeIntelligenceTesting/bazel_jar_jar/archive/refs/tags/commit-d97cfd22d47cba9a20708fa092f20348b72fb5ed.tar.gz",
)
maybe(
http_archive,
name = "com_github_jhalterman_typetools",
build_file = Label("//third_party:typetools.BUILD"),
sha256 = "4e11a613aebb3c35deef58d5d942e44802da1a6c6ef7f127419261f00a0a082c",
strip_prefix = "typetools-commit-887153d2a9adf032fac9f145594d0a0248618d48",
url = "https://github.com/CodeIntelligenceTesting/typetools/archive/refs/tags/commit-887153d2a9adf032fac9f145594d0a0248618d48.tar.gz",
)
maybe(
http_archive,
build_file = Label("//third_party:classgraph.BUILD"),
name = "com_github_classgraph_classgraph",
sha256 = "535159d80c163d5b4d025c402b4562c92ed2d6d963db8c6c5255c0eb2c4e9f39",
strip_prefix = "classgraph-classgraph-4.8.128",
url = "https://github.com/classgraph/classgraph/archive/refs/tags/classgraph-4.8.128.tar.gz",
)
maybe(
http_archive,
name = "fmeum_rules_jni",
sha256 = "45acc80812e0ecafc3f1b2f17efa6141d014aa2cf49c94a83252f570124d161a",
strip_prefix = "rules_jni-0.5.1",
url = "https://github.com/fmeum/rules_jni/archive/refs/tags/v0.5.1.tar.gz",
)
maybe(
http_jar,
name = "org_ow2_asm_asm",
sha256 = "b9d4fe4d71938df38839f0eca42aaaa64cf8b313d678da036f0cb3ca199b47f5",
url = "https://repo1.maven.org/maven2/org/ow2/asm/asm/9.2/asm-9.2.jar",
)
maybe(
http_jar,
name = "org_ow2_asm_asm_commons",
sha256 = "be4ce53138a238bb522cd781cf91f3ba5ce2f6ca93ec62d46a162a127225e0a6",
url = "https://repo1.maven.org/maven2/org/ow2/asm/asm-commons/9.2/asm-commons-9.2.jar",
)
maybe(
http_jar,
name = "org_ow2_asm_asm_tree",
sha256 = "aabf9bd23091a4ebfc109c1f3ee7cf3e4b89f6ba2d3f51c5243f16b3cffae011",
url = "https://repo1.maven.org/maven2/org/ow2/asm/asm-tree/9.2/asm-tree-9.2.jar",
)
maybe(
http_archive,
name = "jazzer_com_github_gflags_gflags",
patches = [
Label("//third_party:gflags-use-double-dash-args.patch"),
],
sha256 = "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf",
strip_prefix = "gflags-2.2.2",
url = "https://github.com/gflags/gflags/archive/refs/tags/v2.2.2.tar.gz",
)
maybe(
http_archive,
name = "jazzer_jacoco",
build_file = Label("//third_party:jacoco_internal.BUILD"),
patches = [
Label("//third_party:jacoco-make-probe-adapter-subclassable.patch"),
Label("//third_party:jacoco-make-probe-inserter-subclassable.patch"),
],
sha256 = "c603cfcc5f3d95ecda46fb369dc54c82a453bb6b640a605c3970607d10896725",
strip_prefix = "jacoco-0.8.8",
url = "https://github.com/jacoco/jacoco/archive/refs/tags/v0.8.8.tar.gz",
)
maybe(
http_archive,
name = "jazzer_libfuzzer",
build_file = Label("//third_party:libFuzzer.BUILD"),
sha256 = "630202d393114f828f350da57d42a6d4fa12ed614a578021d87ba8056dbec4c4",
url = "https://github.com/CodeIntelligenceTesting/llvm-project-jazzer/releases/download/2022-02-26/jazzer-libfuzzer-2022-02-26.tar.gz",
)