aboutsummaryrefslogtreecommitdiffhomepage
path: root/gmock.BUILD
diff options
context:
space:
mode:
authorGravatar David Z. Chen <davidzchen@users.noreply.github.com>2016-05-26 15:20:44 -0700
committerGravatar Vijay Vasudevan <vrv@google.com>2016-05-26 15:20:44 -0700
commit14ac2235699509f512b44b71160239c153ab413d (patch)
tree6c25a3b1993c4b35b39bd523ec0937403f34f9bf /gmock.BUILD
parent15e51e6113310e2ff9648812b66ad18af79219fe (diff)
Use external repository for protobuf dependency. (#1289)
Currently, TensorFlow uses a Git submodule for its dependency on protobuf. This was due to the hack used in protobuf for building Python support with Bazel, which was required since Bazel's Python rules did not support adding directories to `PYTHONPATH`. Now that the new `imports` attribute has been added to the Python rules in Bazel 0.2 and the hack for Python support in protobuf has been removed, this change removes the `google/protobuf` Git submodule and adds an external repository for including protobuf. This patch also adds gmock.BUILD to the tensorflow repo. Fixes #1069 Fixes #2021
Diffstat (limited to 'gmock.BUILD')
-rw-r--r--gmock.BUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/gmock.BUILD b/gmock.BUILD
new file mode 100644
index 0000000000..82abf27540
--- /dev/null
+++ b/gmock.BUILD
@@ -0,0 +1,28 @@
+cc_library(
+ name = "gtest",
+ srcs = [
+ "gmock-1.7.0/gtest/src/gtest-all.cc",
+ "gmock-1.7.0/src/gmock-all.cc",
+ ],
+ hdrs = glob([
+ "gmock-1.7.0/**/*.h",
+ "gmock-1.7.0/gtest/src/*.cc",
+ "gmock-1.7.0/src/*.cc",
+ ]),
+ includes = [
+ "gmock-1.7.0",
+ "gmock-1.7.0/gtest",
+ "gmock-1.7.0/gtest/include",
+ "gmock-1.7.0/include",
+ ],
+ linkopts = ["-pthread"],
+ visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "gtest_main",
+ srcs = ["gmock-1.7.0/src/gmock_main.cc"],
+ linkopts = ["-pthread"],
+ visibility = ["//visibility:public"],
+ deps = [":gtest"],
+)