Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
97a84988
Commit
97a84988
authored
Aug 10, 2017
by
misterg
Browse files
Addressing Comments
parent
c3f65335
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
46 deletions
+22
-46
googletest/test/BUILD.bazel
googletest/test/BUILD.bazel
+22
-46
No files found.
googletest/test/BUILD.bazel
View file @
97a84988
...
...
@@ -37,8 +37,9 @@ licenses(["notice"])
""" gtest own tests """
#on windows exclude gtest-tuple.h and gtest-tuple_test.cc
filegroup
(
name
=
"win_only_test_files"
,
cc_test
(
name
=
"gtest_all_test"
,
size
=
"small"
,
srcs
=
glob
(
include
=
[
"gtest-*.cc"
,
...
...
@@ -46,8 +47,7 @@ filegroup(
"googletest/include/gtest/**/*.h"
,
],
exclude
=
[
"googletest/src/gtest-unittest-api_test.cc"
,
"googletest/include/gtest/internal/gtest-tuple.h"
,
"gtest-unittest-api_test.cc"
,
"gtest-tuple_test.cc"
,
"googletest/src/gtest-all.cc"
,
"gtest_all_test.cc"
,
...
...
@@ -56,35 +56,11 @@ filegroup(
"gtest-unittest-api_test.cc"
,
"gtest-param-test_test.cc"
,
],
),
)
filegroup
(
name
=
"default_test_files"
,
srcs
=
glob
(
include
=
[
"gtest-*.cc"
,
"*.h"
,
"googletest/include/gtest/**/*.h"
,
],
exclude
=
[
"googletest/src/gtest-unittest-api_test.cc"
,
"googletest/src/gtest-all.cc"
,
"gtest_all_test.cc"
,
"gtest-death-test_ex_test.cc"
,
"gtest-listener_test.cc"
,
"gtest-unittest-api_test.cc"
,
"gtest-param-test_test.cc"
,
)
+
select
({
"//:win"
:
[],
"//conditions:default"
:
[
"gtest-tuple_test.cc"
,
],
),
)
cc_test
(
name
=
"gtest_all_test"
,
size
=
"small"
,
srcs
=
select
({
"//:win"
:
[
":win_only_test_files"
],
"//conditions:default"
:
[
":default_test_files"
],
}),
copts
=
select
({
"//:win"
:
[
"-DGTEST_USE_OWN_TR1_TUPLE=0"
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment