diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2017-09-01 23:53:34 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2017-09-01 23:53:34 +0200 |
commit | fc49d6edabf6d85af514d94ab71e443a05ce6c41 (patch) | |
tree | 5262fdf4adc644f0286b675eaef9bb20fe3f3154 /third_party/gtest.BUILD | |
parent | f5600e99be0fdcada4b3039c0f656a305264884a (diff) |
Splitting gmock out of gtest.
Diffstat (limited to 'third_party/gtest.BUILD')
-rw-r--r-- | third_party/gtest.BUILD | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/third_party/gtest.BUILD b/third_party/gtest.BUILD index b70f2c51bc..f38bfd8d45 100644 --- a/third_party/gtest.BUILD +++ b/third_party/gtest.BUILD @@ -2,14 +2,38 @@ cc_library( name = "gtest", srcs = [ "googletest/src/gtest-all.cc", - "googlemock/src/gmock-all.cc" ], - hdrs = glob(["googletest/include/**/*.h", "googletest/src/*.cc", "googletest/src/*.h", "googlemock/include/**/*.h", "googlemock/src/*.cc", "googlemock/src/*.h"]), + hdrs = glob([ + "googletest/include/**/*.h", + "googletest/src/*.cc", + "googletest/src/*.h", + ]), includes = [ "googletest", "googletest/include", - "googlemock", - "googlemock/include", + ], + linkstatic = 1, + visibility = [ + "//visibility:public", + ], +) + +cc_library( + name = "gmock", + srcs = [ + "googlemock/src/gmock-all.cc" + ], + hdrs = glob([ + "googlemock/include/**/*.h", + "googlemock/src/*.cc", + "googlemock/src/*.h" + ]), + includes = [ + "googlemock", + "googlemock/include", + ], + deps = [ + ":gtest", ], linkstatic = 1, visibility = [ |