Update repo to use google test
This commit is contained in:
parent
d00cab0f8c
commit
1327e6f470
24
WORKSPACE
24
WORKSPACE
@ -1,15 +1,15 @@
|
|||||||
new_http_archive(
|
new_git_repository(
|
||||||
name = "gmock_archive",
|
name = "googletest",
|
||||||
url = "https://googlemock.googlecode.com/files/gmock-1.7.0.zip",
|
|
||||||
sha256 = "26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b",
|
|
||||||
build_file = "gmock.BUILD",
|
build_file = "gmock.BUILD",
|
||||||
|
remote = "https://github.com/google/googletest",
|
||||||
|
tag = "release-1.8.0",
|
||||||
)
|
)
|
||||||
|
|
||||||
new_http_archive(
|
new_http_archive(
|
||||||
name = "six_archive",
|
name = "six_archive",
|
||||||
url = "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55",
|
|
||||||
sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
|
|
||||||
build_file = "six.BUILD",
|
build_file = "six.BUILD",
|
||||||
|
sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
|
||||||
|
url = "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55",
|
||||||
)
|
)
|
||||||
|
|
||||||
bind(
|
bind(
|
||||||
@ -19,12 +19,12 @@ bind(
|
|||||||
|
|
||||||
bind(
|
bind(
|
||||||
name = "gtest",
|
name = "gtest",
|
||||||
actual = "@gmock_archive//:gtest",
|
actual = "@googletest//:gtest",
|
||||||
)
|
)
|
||||||
|
|
||||||
bind(
|
bind(
|
||||||
name = "gtest_main",
|
name = "gtest_main",
|
||||||
actual = "@gmock_archive//:gtest_main",
|
actual = "@googletest//:gtest_main",
|
||||||
)
|
)
|
||||||
|
|
||||||
bind(
|
bind(
|
||||||
@ -33,8 +33,8 @@ bind(
|
|||||||
)
|
)
|
||||||
|
|
||||||
maven_jar(
|
maven_jar(
|
||||||
name = "guava_maven",
|
name = "guava_maven",
|
||||||
artifact = "com.google.guava:guava:18.0",
|
artifact = "com.google.guava:guava:18.0",
|
||||||
)
|
)
|
||||||
|
|
||||||
bind(
|
bind(
|
||||||
@ -43,8 +43,8 @@ bind(
|
|||||||
)
|
)
|
||||||
|
|
||||||
maven_jar(
|
maven_jar(
|
||||||
name = "gson_maven",
|
name = "gson_maven",
|
||||||
artifact = "com.google.code.gson:gson:2.3",
|
artifact = "com.google.code.gson:gson:2.3",
|
||||||
)
|
)
|
||||||
|
|
||||||
bind(
|
bind(
|
||||||
|
20
gmock.BUILD
20
gmock.BUILD
@ -1,19 +1,19 @@
|
|||||||
cc_library(
|
cc_library(
|
||||||
name = "gtest",
|
name = "gtest",
|
||||||
srcs = [
|
srcs = [
|
||||||
"gmock-1.7.0/gtest/src/gtest-all.cc",
|
"googletest/src/gtest-all.cc",
|
||||||
"gmock-1.7.0/src/gmock-all.cc",
|
"googlemock/src/gmock-all.cc",
|
||||||
],
|
],
|
||||||
hdrs = glob([
|
hdrs = glob([
|
||||||
"gmock-1.7.0/**/*.h",
|
"**/*.h",
|
||||||
"gmock-1.7.0/gtest/src/*.cc",
|
"googletest/src/*.cc",
|
||||||
"gmock-1.7.0/src/*.cc",
|
"googlemock/src/*.cc",
|
||||||
]),
|
]),
|
||||||
includes = [
|
includes = [
|
||||||
"gmock-1.7.0",
|
"googlemock",
|
||||||
"gmock-1.7.0/gtest",
|
"googletest",
|
||||||
"gmock-1.7.0/gtest/include",
|
"googletest/include",
|
||||||
"gmock-1.7.0/include",
|
"googlemock/include",
|
||||||
],
|
],
|
||||||
linkopts = ["-pthread"],
|
linkopts = ["-pthread"],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
@ -21,7 +21,7 @@ cc_library(
|
|||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "gtest_main",
|
name = "gtest_main",
|
||||||
srcs = ["gmock-1.7.0/src/gmock_main.cc"],
|
srcs = ["googlemock/src/gmock_main.cc"],
|
||||||
linkopts = ["-pthread"],
|
linkopts = ["-pthread"],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [":gtest"],
|
deps = [":gtest"],
|
||||||
|
Loading…
Reference in New Issue
Block a user