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
5f97ce4c
Commit
5f97ce4c
authored
Jun 30, 2021
by
Andy Soffer
Browse files
Merge pull request #3465 from mbinna:bazel_qnx
PiperOrigin-RevId: 382189077
parents
b89480e0
4281d214
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
BUILD.bazel
BUILD.bazel
+7
-0
googlemock/test/BUILD.bazel
googlemock/test/BUILD.bazel
+1
-0
googletest/test/BUILD.bazel
googletest/test/BUILD.bazel
+1
-0
No files found.
BUILD.bazel
View file @
5f97ce4c
...
@@ -38,6 +38,11 @@ licenses(["notice"])
...
@@ -38,6 +38,11 @@ licenses(["notice"])
exports_files
([
"LICENSE"
])
exports_files
([
"LICENSE"
])
config_setting
(
name
=
"qnx"
,
constraint_values
=
[
"@platforms//os:qnx"
],
)
config_setting
(
config_setting
(
name
=
"windows"
,
name
=
"windows"
,
constraint_values
=
[
"@platforms//os:windows"
],
constraint_values
=
[
"@platforms//os:windows"
],
...
@@ -86,6 +91,7 @@ cc_library(
...
@@ -86,6 +91,7 @@ cc_library(
"googlemock/include/gmock/*.h"
,
"googlemock/include/gmock/*.h"
,
]),
]),
copts
=
select
({
copts
=
select
({
":qnx"
:
[],
":windows"
:
[],
":windows"
:
[],
"//conditions:default"
:
[
"-pthread"
],
"//conditions:default"
:
[
"-pthread"
],
}),
}),
...
@@ -104,6 +110,7 @@ cc_library(
...
@@ -104,6 +110,7 @@ cc_library(
"googletest/include"
,
"googletest/include"
,
],
],
linkopts
=
select
({
linkopts
=
select
({
":qnx"
:
[],
":windows"
:
[],
":windows"
:
[],
"//conditions:default"
:
[
"-pthread"
],
"//conditions:default"
:
[
"-pthread"
],
}),
}),
...
...
googlemock/test/BUILD.bazel
View file @
5f97ce4c
...
@@ -41,6 +41,7 @@ cc_test(
...
@@ -41,6 +41,7 @@ cc_test(
size
=
"small"
,
size
=
"small"
,
srcs
=
glob
(
include
=
[
"gmock-*.cc"
]),
srcs
=
glob
(
include
=
[
"gmock-*.cc"
]),
linkopts
=
select
({
linkopts
=
select
({
"//:qnx"
:
[],
"//:windows"
:
[],
"//:windows"
:
[],
"//conditions:default"
:
[
"-pthread"
],
"//conditions:default"
:
[
"-pthread"
],
}),
}),
...
...
googletest/test/BUILD.bazel
View file @
5f97ce4c
...
@@ -95,6 +95,7 @@ cc_test(
...
@@ -95,6 +95,7 @@ cc_test(
"googletest/test"
,
"googletest/test"
,
],
],
linkopts
=
select
({
linkopts
=
select
({
"//:qnx"
:
[],
"//:windows"
:
[],
"//:windows"
:
[],
"//conditions:default"
:
[
"-pthread"
],
"//conditions:default"
:
[
"-pthread"
],
}),
}),
...
...
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