Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
66a03695
Commit
66a03695
authored
Aug 09, 2017
by
misterg
Browse files
WIP
parent
5a5e3c17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
10 deletions
+32
-10
BUILD.bazel
BUILD.bazel
+7
-10
googlemock/test/BUILD.bazel
googlemock/test/BUILD.bazel
+25
-0
No files found.
BUILD.bazel
View file @
66a03695
...
@@ -8,19 +8,12 @@ package(default_visibility = ["//visibility:public"])
...
@@ -8,19 +8,12 @@ package(default_visibility = ["//visibility:public"])
licenses
([
"notice"
])
licenses
([
"notice"
])
# gtest public API.
GTEST_HDRS
=
\
glob
([
"googletest/include/gtest/*.h"
,
"googlemock/include/gmock/*.h"
,
])
config_setting
(
config_setting
(
name
=
"win"
,
name
=
"win"
,
values
=
{
"cpu"
:
"x64_windows_msvc"
},
values
=
{
"cpu"
:
"x64_windows_msvc"
},
)
)
# Google Test
# Google Test
including Google Mock
cc_library
(
cc_library
(
name
=
"gtest"
,
name
=
"gtest"
,
srcs
=
glob
(
srcs
=
glob
(
...
@@ -35,9 +28,13 @@ cc_library(
...
@@ -35,9 +28,13 @@ cc_library(
"googletest/src/gtest-all.cc"
,
"googletest/src/gtest-all.cc"
,
"googletest/src/gtest_main.cc"
,
"googletest/src/gtest_main.cc"
,
"googlemock/src/gmock-all.cc"
,
"googlemock/src/gmock-all.cc"
,
"googlemock/src/gmock_main.cc"
,
],
],
),
),
hdrs
=
GTEST_HDRS
,
hdrs
=
glob
([
"googletest/include/gtest/*.h"
,
"googlemock/include/gmock/*.h"
,
]),
copts
=
select
(
copts
=
select
(
{
{
":win"
:
[],
":win"
:
[],
...
@@ -123,4 +120,4 @@ cc_test(
...
@@ -123,4 +120,4 @@ cc_test(
deps
=
[
deps
=
[
":gtest"
,
":gtest"
,
],
],
)
)
\ No newline at end of file
googlemock/test/BUILD.bazel
0 → 100644
View file @
66a03695
# Copyright 2017 Google Inc. All Rights Reserved.
# Author: misterg@google.com (Gennadiy Civil)
#
# Description:
# Bazel BUILD file for googletest-googlemock/test, initial revision
#
""" gmock own tests """
cc_test
(
name
=
"gmock_all_test"
,
size
=
"small"
,
srcs
=
glob
(
include
=
[
"gmock-*.cc"
,
],
),
linkopts
=
select
({
"//:win"
:
[],
"//conditions:default"
:
[
"-pthread"
,
],
}),
deps
=
[
"//:gtest"
],
)
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