-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
74 lines (65 loc) · 1.24 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
load("@rules_cc//cc:defs.bzl", "cc_test")
cc_library(
name = "common",
hdrs = ["common.h"],
)
cc_library(
name = "mp11",
hdrs = glob(["mp11/include/**/*.hpp"]),
includes = ["mp11/include/"],
)
cc_library(
name = "meta24_mp11_lib",
hdrs = ["meta24_mp11.h"],
deps = [
":common",
"//:mp11",
],
)
cc_test(
name = "meta24_test",
size = "small",
srcs = ["meta24_test.cc"],
defines = ["MP11"],
deps = [
":meta24_mp11_lib",
"@googletest//:gtest_main",
],
)
cc_binary(
name = "meta24",
srcs = ["meta24.cc"],
defines = ["MP11"],
deps = [":meta24_mp11_lib"],
)
cc_library(
name = "metal_lib",
hdrs = glob(["metal/include/**/*.hpp"]),
includes = ["metal/include/"],
)
cc_library(
name = "meta24_metal_lib",
hdrs = ["meta24_metal.h"],
deps = [
"common",
":metal_lib",
],
)
cc_test(
name = "meta24_metal_test",
size = "small",
srcs = ["meta24_test.cc"],
defines = ["METAL"],
deps = [
":meta24_metal_lib",
"@googletest//:gtest_main",
],
)
cc_binary(
name = "meta24_metal",
srcs = ["meta24.cc"],
defines = ["METAL"],
deps = [
":meta24_metal_lib",
],
)