This change does the following: - Always use {,new_}http_archive rather than git_repository - Make liberal use of strip_prefix - Clarify licenses() in BUILD files - On POSIX include headers like a normal C/C++ program This change accomplishes the following: - Reduce download size >100MB: The biggest culprit is grpc which has tens of thousands of commits in its GitHub repository. - Reduce disk size >200MB: On disk, grpc takes up 250MB when cloned even though the tarball of the git repo is 3.2MB. By never using git externals, we save on network. - Consume less cpu: Cloning git repositories is much slower than downloading and extracting a tarball. Change: 133895791
35 lines
686 B
Plaintext
35 lines
686 B
Plaintext
# Description:
|
|
# Google C++ Mocking Framework, a library for creating and using C++
|
|
# mock classes.
|
|
|
|
licenses(["notice"]) # 3-clause BSD
|
|
|
|
cc_library(
|
|
name = "gtest",
|
|
srcs = [
|
|
"gtest/src/gtest-all.cc",
|
|
"src/gmock-all.cc",
|
|
],
|
|
hdrs = glob([
|
|
"**/*.h",
|
|
"gtest/src/*.cc",
|
|
"src/*.cc",
|
|
]),
|
|
includes = [
|
|
".",
|
|
"gtest",
|
|
"gtest/include",
|
|
"include",
|
|
],
|
|
linkopts = ["-pthread"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "gtest_main",
|
|
srcs = ["src/gmock_main.cc"],
|
|
linkopts = ["-pthread"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [":gtest"],
|
|
)
|