forked from urbit/vere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
42 lines (39 loc) · 909 Bytes
/
BUILD.bazel
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
#
# LIBRARIES
#
load("//bazel:common_settings.bzl", "vere_library")
vere_library(
name = "c3",
srcs = glob(
[
"*.h",
"*.c",
],
exclude = [
"c3.h",
"*_tests.c",
],
),
hdrs = ["c3.h"],
# We define platform-specific macros here to avoid the need for a
# configuration header file.
defines = [
# We don't build on any big endian CPUs.
"U3_OS_ENDIAN_little=1",
"U3_OS_PROF=1",
] + select({
"@platforms//cpu:aarch64": ["U3_CPU_aarch64=1"],
"//conditions:default": [],
}) + select({
"@platforms//os:linux": ["U3_OS_linux=1"],
"@platforms//os:macos": ["U3_OS_osx=1"],
"//conditions:default": [],
}),
include_prefix = "c3",
includes = ["."],
linkstatic = True,
visibility = ["//pkg:__subpackages__"],
)
#
# TESTS
#