-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathgtest.BUILD
38 lines (37 loc) · 899 Bytes
/
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
# -*- python -*-
cc_library(
name = "main",
srcs = glob(
[
"googlemock/src/*.cc",
"googletest/src/*.cc",
"googletest/src/*.h",
],
exclude = [
"googlemock/src/gmock-all.cc",
"googletest/src/gtest-all.cc",
],
),
hdrs = glob([
"googlemock/include/**/*.h",
"googletest/include/**/*.h",
]),
copts = ["-Wno-unused-const-variable"],
defines = [
"GTEST_DONT_DEFINE_FAIL=1",
"GTEST_DONT_DEFINE_SUCCEED=1",
"GTEST_DONT_DEFINE_TEST=1",
],
includes = [
"googlemock",
"googlemock/include",
"googletest",
"googletest/include",
],
linkopts = select({
"@drake//tools:linux": ["-pthread"],
"@//conditions:default": [],
}),
linkstatic = 1,
visibility = ["//visibility:public"],
)