aboutsummaryrefslogtreecommitdiff
path: root/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'BUILD.bazel')
-rw-r--r--BUILD.bazel20
1 files changed, 10 insertions, 10 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index 9b48aee5..8d2f6bdb 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -28,10 +28,10 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
+# Author: misterg@google.com (Gennadiy Civil)
+#
# Bazel Build for Google C++ Testing Framework(Google Test)
-load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
-
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
@@ -83,10 +83,6 @@ cc_library(
":has_absl": ["GTEST_HAS_ABSL=1"],
"//conditions:default": [],
}),
- features = select({
- ":windows": ["windows_export_all_symbols"],
- "//conditions:default": [],
- }),
includes = [
"googlemock",
"googlemock/include",
@@ -108,16 +104,20 @@ cc_library(
],
"//conditions:default": [],
}),
+ features = select({
+ ":windows": ["windows_export_all_symbols"],
+ "//conditions:default": [],
+ })
)
cc_library(
name = "gtest_main",
srcs = ["googlemock/src/gmock_main.cc"],
+ deps = [":gtest"],
features = select({
":windows": ["windows_export_all_symbols"],
"//conditions:default": [],
- }),
- deps = [":gtest"],
+ })
)
# The following rules build samples of how to use gTest.
@@ -138,7 +138,7 @@ cc_library(
features = select({
":windows": ["windows_export_all_symbols"],
"//conditions:default": [],
- }),
+ })
)
cc_test(
@@ -157,11 +157,11 @@ cc_test(
"googletest/samples/sample7_unittest.cc",
"googletest/samples/sample8_unittest.cc",
],
- linkstatic = 0,
deps = [
"gtest_sample_lib",
":gtest_main",
],
+ linkstatic = 0,
)
cc_test(