-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD
92 lines (81 loc) · 1.42 KB
/
BUILD
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
package(default_visibility = ["//visibility:public"])
load("//bazel/config:copt.bzl", "WAMON_COPTS")
cc_library(
name = "wamon",
hdrs = glob(["include/**/*.h"]),
srcs = glob(["src/*.cc"]),
includes = ["include"],
copts = WAMON_COPTS,
deps = [
"@fmt//:fmt",
"@nlohmann_json//:json",
]
)
cc_test(
name = "wamon_test",
srcs = glob(["test/*.cc"]),
copts = WAMON_COPTS,
deps = [
":wamon",
"@googletest//:gtest",
"@googletest//:gtest_main",
"@nlohmann_json//:json",
],
)
cc_binary(
name = "catch2_test",
srcs = glob(["catch2_test/*.cc"]),
copts = WAMON_COPTS,
deps = [
"@catch2//:catch2_main",
":wamon",
],
)
cc_binary(
name = "hello_world",
srcs = ["example/hello_world.cc"],
copts = WAMON_COPTS,
deps = [
":wamon"
],
)
cc_binary(
name = "register_cpp_func",
srcs = ["example/register_cpp_function.cc"],
copts = WAMON_COPTS,
deps = [
":wamon"
],
)
cc_binary(
name = "interpreter_api",
srcs = ["example/interpreter_api.cc"],
copts = WAMON_COPTS,
deps = [
":wamon"
],
)
cc_binary(
name = "lambda",
srcs = ["example/lambda.cc"],
copts = WAMON_COPTS,
deps = [
":wamon"
],
)
cc_binary(
name = "struct_trait",
srcs = ["example/struct_trait.cc"],
copts = WAMON_COPTS,
deps = [
":wamon"
],
)
cc_binary(
name = "merge_sort",
srcs = ["example/merge_sort.cc"],
copts = WAMON_COPTS,
deps = [
":wamon"
],
)