-
Notifications
You must be signed in to change notification settings - Fork 0
/
bx.BUILD
50 lines (46 loc) · 1.23 KB
/
bx.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
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@//:configuration.bzl", "COPT_CXX")
package(default_visibility = ["//visibility:public"])
bx_srcs = [
"src/allocator.cpp",
"src/bx.cpp",
"src/commandline.cpp",
"src/crtnone.cpp",
"src/debug.cpp",
"src/dtoa.cpp",
"src/easing.cpp",
"src/file.cpp",
"src/filepath.cpp",
"src/hash.cpp",
"src/math.cpp",
"src/mutex.cpp",
"src/os.cpp",
"src/process.cpp",
"src/semaphore.cpp",
"src/settings.cpp",
"src/sort.cpp",
"src/string.cpp",
"src/thread.cpp",
"src/timer.cpp",
"src/url.cpp",
]
cc_library(
name = "bx",
srcs = bx_srcs,
hdrs = glob([
"**",
]),
includes = [
"3rdparty",
"include",
] + select({
"@bazel_tools//src/conditions:darwin": ["include/compat/osx"],
"@bazel_tools//src/conditions:windows": ["include/compat/msvc"],
"@bazel_tools//src/conditions:linux": ["include/compat/linux"],
"@bazel_tools//src/conditions:freebsd": ["include/compat/freebsd"],
"//conditions:default": [],
}),
defines = ["BX_CONFIG_DEBUG", "__STDC_FORMAT_MACROS"],
deps = [],
copts = COPT_CXX,
)