diff --git a/WORKSPACE b/WORKSPACE index 556d90d1..ec8d5e64 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,6 +1,7 @@ -new_git_repository( +load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") + +git_repository( name = "googletest", - build_file = "gmock.BUILD", remote = "https://github.com/google/googletest", - tag = "release-1.8.0", -) \ No newline at end of file + tag = "release-1.8.1", +) diff --git a/gmock.BUILD b/gmock.BUILD deleted file mode 100644 index 77e6eab4..00000000 --- a/gmock.BUILD +++ /dev/null @@ -1,28 +0,0 @@ -cc_library( - name = "gtest", - srcs = [ - "googletest/src/gtest-all.cc", - "googlemock/src/gmock-all.cc", - ], - hdrs = glob([ - "**/*.h", - "googletest/src/*.cc", - "googlemock/src/*.cc", - ]), - includes = [ - "googlemock", - "googletest", - "googletest/include", - "googlemock/include", - ], - linkopts = ["-pthread"], - visibility = ["//visibility:public"], -) - -cc_library( - name = "gtest_main", - srcs = ["googlemock/src/gmock_main.cc"], - linkopts = ["-pthread"], - visibility = ["//visibility:public"], - deps = [":gtest"], -) \ No newline at end of file diff --git a/tests/BUILD b/tests/BUILD index 15fc11a4..1ddfa8f0 100644 --- a/tests/BUILD +++ b/tests/BUILD @@ -5,4 +5,4 @@ cc_test( "//src/lib:GreetingLib", "@googletest//:gtest_main", ], -) \ No newline at end of file +)