-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgtest.BUILD
44 lines (44 loc) · 1.09 KB
/
gtest.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
cc_library(
visibility=["//visibility:public"],
name="gtest",
srcs=glob(
include=[
"googletest/src/*.cc",
"googletest/src/*.h",
"googletest/include/gtest/**/*.h",
"googlemock/src/*.cc",
"googlemock/include/gmock/**/*.h",
],
exclude=[
"googletest/src/gtest-all.cc",
"googletest/src/gtest_main.cc",
"googlemock/src/gmock-all.cc",
"googlemock/src/gmock_main.cc",
],
),
hdrs=glob([
"googletest/include/gtest/*.h",
"googlemock/include/gmock/*.h",
]),
copts=select({
"//conditions:default": ["-pthread -DGTEST_HAS_TYPED_TEST_P"],
}),
defines=select({
"//conditions:default": [],
}),
includes=[
"googlemock",
"googlemock/include",
"googletest",
"googletest/include",
],
linkopts=select({
"//conditions:default": ["-pthread"],
}),
deps=select({
"//conditions:default": [],
}),
features=select({
"//conditions:default": [],
})
)