-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
42 lines (38 loc) · 1.23 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
""
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
cc_library(
name = "LittleECS",
srcs = glob([ "src/**/*.h" ]),
hdrs = glob([ "src/**/*.h" ]),
includes = [ "src/" ],
copts = select({
"@rules_cc//cc/compiler:msvc-cl": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
}),
strip_include_prefix = "src",
include_prefix = "LittleECS",
linkstatic = True,
visibility = ["//visibility:public"],
)
cc_test(
name = "LittleECSTests",
srcs = glob([ "Tests/**/*.h", "Tests/**/*.cpp" ], exclude=["Tests/Perf/**"]),
includes = [ "src/" ],
copts = select({
"@rules_cc//cc/compiler:msvc-cl": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
}),
deps = [ "@streamformat//:StreamFormat", ":LittleECS" ],
visibility = ["//visibility:public"],
)
cc_test(
name = "LittleECSTestsPerf",
srcs = glob([ "Tests/**/*.h", "Tests/**/*.cpp" ]),
includes = [ "src/" ],
copts = select({
"@rules_cc//cc/compiler:msvc-cl": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
}),
deps = [ "@streamformat//:StreamFormat", ":LittleECS" ],
visibility = ["//visibility:public"],
)