-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
75 lines (66 loc) · 1.77 KB
/
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
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
# TODO: replace with ob1 bazel base framework utilities
cc_library(
name = "ob1-util",
visibility = ["//visibility:public"],
srcs = glob(["src/ob1-util/**/*.c*", "src/ob1-util/**/*.h*"]),
hdrs = glob(["include/ob1-util/**/*.h*"]),
includes = ["include/ob1-util"],
strip_include_prefix = "include",
copts = select({
"@bazel_tools//src/conditions:windows": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
}),
deps = [
"@spdlog//:headers",
"@yaml-cpp",
],
)
cc_library(
name = "syndicate",
visibility = ["//visibility:public"],
srcs = glob(["src/syndicate/**/*.c*", "src/syndicate/**/*.h*"]),
hdrs = glob(["include/syndicate/**/*.h*"]),
includes = ["include/syndicate"],
strip_include_prefix = "include",
copts = select({
"@bazel_tools//src/conditions:windows": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
}),
deps = [
":ob1-util",
#"@flecs",
],
)
cc_library(
name = "lisp",
visibility = ["//visibility:public"],
srcs = glob(["src/lisp/**/*.c*", "src/lisp/**/*.h*"]),
hdrs = glob(["include/lisp/**/*.h*"]),
includes = ["include/lisp"],
strip_include_prefix = "include",
copts = select({
"@bazel_tools//src/conditions:windows": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
}),
deps = [
":ob1-util",
":syndicate",
"@pegtl",
],
)
cc_binary(
name = "cult",
srcs = glob([
"src/cult/*.c*",
"src/cult/*.h*",
]),
copts = select({
"@bazel_tools//src/conditions:windows": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
}),
deps = [
":ob1-util",
":syndicate",
":lisp",
],
)