Merge pull request #3465 from mbinna:bazel_qnx
PiperOrigin-RevId: 382189077
This commit is contained in:
commit
5f97ce4c70
@ -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(
|
|||||||
"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(
|
|||||||
"googletest/include",
|
"googletest/include",
|
||||||
],
|
],
|
||||||
linkopts = select({
|
linkopts = select({
|
||||||
|
":qnx": [],
|
||||||
":windows": [],
|
":windows": [],
|
||||||
"//conditions:default": ["-pthread"],
|
"//conditions:default": ["-pthread"],
|
||||||
}),
|
}),
|
||||||
|
@ -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"],
|
||||||
}),
|
}),
|
||||||
|
@ -95,6 +95,7 @@ cc_test(
|
|||||||
"googletest/test",
|
"googletest/test",
|
||||||
],
|
],
|
||||||
linkopts = select({
|
linkopts = select({
|
||||||
|
"//:qnx": [],
|
||||||
"//:windows": [],
|
"//:windows": [],
|
||||||
"//conditions:default": ["-pthread"],
|
"//conditions:default": ["-pthread"],
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user