This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
WORKSPACE
95 lines (72 loc) · 3.23 KB
/
WORKSPACE
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
workspace(name = "caffeine")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@caffeine//third_party/llvm:setup.bzl", "setup_llvm")
load("@caffeine//third_party/capnp:setup.bzl", "setup_capnproto")
load("@caffeine//third_party/boost:setup.bzl", "setup_boost")
load("@caffeine//third_party/musl:setup.bzl", "setup_musl")
load("@caffeine//third_party/libcxx:setup.bzl", "setup_libcxx")
load("@caffeine//third_party/afl:setup.bzl", "setup_afl")
load("@caffeine//third_party/lmdb:setup.bzl", "setup_lmdb")
SKYLIB_VERSION = "1.1.1"
http_archive(
name = "bazel_skylib",
sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = SKYLIB_VERSION),
"https://github.com/bazelbuild/bazel-skylib/releases/download/{version}/bazel-skylib-{version}.tar.gz".format(version = SKYLIB_VERSION),
],
)
http_archive(
name = "rules_cc",
sha256 = "4dccbfd22c0def164c8f47458bd50e0c7148f3d92002cdb459c2a96a68498241",
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.1/rules_cc-0.0.1.tar.gz"],
)
# We use the latest head for rules_pkg since v0.5.1 doesn't have the macros
# we would like to use.
RULES_PKG_COMMIT = "5a976bc14fb28fca13abf23d488a88501221c55e"
http_archive(
name = "rules_pkg",
patches = ["//third_party:rules_pkg.diff"],
sha256 = "da090edc17c54befb67c5630e1d1781a1319800df3d8c620e78c78742bfea0c9",
strip_prefix = "rules_pkg-{}".format(RULES_PKG_COMMIT),
url = "https://github.com/bazelbuild/rules_pkg/archive/{}.zip".format(RULES_PKG_COMMIT),
)
setup_capnproto(name = "capnproto")
setup_llvm(name = "llvm-raw")
setup_boost(name = "com_github_nelhage_rules_boost")
setup_musl(name = "musl")
setup_libcxx(name = "libcxx")
setup_afl(name = "afl")
setup_lmdb(name = "lmdb")
# Some dependencies require multiple setup stages. These are added here.
local_repository(
name = "caffeine_toolchain",
path = "bazel/toolchain",
)
load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
load("@llvm-bazel//:configure.bzl", "llvm_configure", "llvm_disable_optional_support_deps")
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
boost_deps()
rules_pkg_dependencies()
llvm_configure(
name = "llvm",
src_path = ".",
src_workspace = "@llvm-raw//:WORKSPACE",
targets = [
"X86",
],
)
# Disables optional dependencies for Support like zlib and terminfo. You may
# instead want to configure them using the macros in the corresponding bzl
# files.
llvm_disable_optional_support_deps()
# Hedron's Compile Commands Extractor for Bazel
# https://github.com/hedronvision/bazel-compile-commands-extractor
http_archive(
name = "hedron_compile_commands",
sha256 = "39e7607efcaca5abb34314744491492d82d30fcb6f6592d88ae15772da588b42",
strip_prefix = "bazel-compile-commands-extractor-084957eaa1bf6e2bd031f50b1f5d04c89273103a",
url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/084957eaa1bf6e2bd031f50b1f5d04c89273103a.tar.gz",
)
load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup")
hedron_compile_commands_setup()