-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
65 lines (42 loc) · 2.12 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
workspace(name = "kong")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_skylib",
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
],
)
load("//build:kong_bindings.bzl", "load_bindings")
load_bindings(name = "kong_bindings")
http_archive(
name = "rules_foreign_cc",
sha256 = "2a4d07cd64b0719b39a7c12218a3e507672b82a97b98c6a89d38565894cf7c51",
strip_prefix = "rules_foreign_cc-0.9.0",
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/refs/tags/0.9.0.tar.gz",
)
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
# This sets up some common toolchains for building targets. For more details, please see
# https://bazelbuild.github.io/rules_foreign_cc/0.9.0/flatten.html#rules_foreign_cc_dependencies
rules_foreign_cc_dependencies(
register_built_tools = False, # don't build toolchains like make
register_default_tools = True, # register cmake and ninja that are managed by bazel
register_preinstalled_tools = True, # use preinstalled toolchains like make
)
load("//build/openresty:repositories.bzl", "openresty_repositories")
openresty_repositories()
load("//build/nfpm:repositories.bzl", "nfpm_repositories")
nfpm_repositories()
load("@atc_router//build:repos.bzl", "atc_router_repositories")
atc_router_repositories()
load("@atc_router//build:deps.bzl", "atc_router_dependencies")
atc_router_dependencies(cargo_home_isolated = False) # TODO: set cargo_home_isolated=True for release
load("@atc_router//build:crates.bzl", "atc_router_crates")
atc_router_crates()
load("//build:repositories.bzl", "build_repositories")
build_repositories()
load("//build/toolchain:repositories.bzl", "toolchain_repositories")
toolchain_repositories()
load("//build/toolchain:managed_toolchain.bzl", "register_all_toolchains")
register_all_toolchains()