forked from electronicarts/EASTL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
105 lines (99 loc) · 2.28 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
licenses(["notice"])
exports_files(["LICENSE"])
load(
"//config:copts.bzl",
"EASTL_DEFAULT_COPTS",
"EASTL_TEST_COPTS",
"EASTL_EXCEPTIONS_FLAG",
"EASTL_EXCEPTIONS_FLAG_LINKOPTS",
)
cc_library(
name = "eastl",
srcs = glob([
"source/**/*.cpp",
]),
hdrs = glob([
"include/EASTL/**/*.h",
]),
copts = EASTL_DEFAULT_COPTS + [
"-D_CHAR16T",
"-D_CRT_SECURE_NO_WARNINGS",
"-D_SCL_SECURE_NO_WARNINGS",
"-DEASTL_OPENSOURCE=1",
],
linkopts = EASTL_EXCEPTIONS_FLAG_LINKOPTS,
strip_include_prefix = "include",
visibility = [
"//visibility:public",
],
deps = [
"//test/packages/EABase:eabase",
],
)
cc_library(
name = "test",
srcs = glob(
[
"test/source/**/*.cpp",
"test/source/**/*.h",
],
exclude = [
"test/source/main.cpp",
],
),
hdrs = glob(
[
"test/source/**/*.h",
],
),
copts = EASTL_TEST_COPTS + [
"-DEASTL_OPENSOURCE=1",
"-DEASTL_THREAD_SUPPORT_AVAILABLE=0",
],
linkopts = EASTL_EXCEPTIONS_FLAG_LINKOPTS,
strip_include_prefix = "test/source",
textual_hdrs = glob([
"test/source/**/*.inl",
]),
deps = [
"//:eastl",
"//test/packages/EAAssert:eaassert",
"//test/packages/EABase:eabase",
"//test/packages/EAMain:eamain",
"//test/packages/EAStdC:eastdc",
"//test/packages/EATest:eatest",
"//test/packages/EAThread:eathread",
],
)
cc_binary(
name = "test-runner",
srcs = glob([
"test/source/main.cpp",
]),
copts = EASTL_DEFAULT_COPTS + [
"-DEASTL_OPENSOURCE=1",
"-DEASTL_THREAD_SUPPORT_AVAILABLE=0",
],
linkopts = EASTL_EXCEPTIONS_FLAG_LINKOPTS,
deps = [
"//:test",
],
)
cc_binary(
name = "benchmark",
srcs = glob([
"benchmark/source/**/*.cpp",
"benchmark/source/**/*.h",
]),
copts = EASTL_DEFAULT_COPTS + [
"-DEASTL_OPENSOURCE=1",
"-DEASTL_THREAD_SUPPORT_AVAILABLE=0",
],
linkopts = EASTL_EXCEPTIONS_FLAG_LINKOPTS,
deps = [
"//:eastl",
"//:test",
"//test/packages/EAStdC:eastdc",
"//test/packages/EATest:eatest",
],
)