forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREPOSITORIES.bzl
36 lines (32 loc) · 1.36 KB
/
REPOSITORIES.bzl
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
# c-deps repository definitions.
# Define the repositories for each of our c-dependencies. BUILD_ALL_CONTENT is
# a shorthand to glob over all checked-in files.
BUILD_ALL_CONTENT = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
# Each of these c-dependencies map to one or more library definitions in the
# top-level BUILD.bazel. Library definitions will list the following
# definitions as sources.
# This is essentially the same above, we elide a generated file to avoid
# permission issues when building jemalloc within the bazel sandbox.
BUILD_JEMALLOC_CONTENT = """filegroup(name = "all", srcs = glob(["**"], exclude=["configure"]), visibility = ["//visibility:public"])"""
# We do need to add native as new_local_repository is defined in Bazel core.
def c_deps():
native.new_local_repository(
name = "geos",
path = "c-deps/geos",
build_file_content = BUILD_ALL_CONTENT,
)
native.new_local_repository(
name = "jemalloc",
path = "c-deps/jemalloc",
build_file_content = BUILD_JEMALLOC_CONTENT,
)
native.new_local_repository(
name = "krb5",
path = "c-deps/krb5",
build_file_content = BUILD_ALL_CONTENT,
)
native.new_local_repository(
name = "proj",
path = "c-deps/proj",
build_file_content = BUILD_ALL_CONTENT,
)