Merge changes from github.
Change: 123427036
This commit is contained in:
parent
3ae0153778
commit
22c111c34c
@ -20,7 +20,7 @@ tf_workspace()
|
|||||||
|
|
||||||
# Specify the minimum required bazel version.
|
# Specify the minimum required bazel version.
|
||||||
load("//tensorflow:tensorflow.bzl", "check_version")
|
load("//tensorflow:tensorflow.bzl", "check_version")
|
||||||
check_version("0.1.4")
|
check_version("0.2.0")
|
||||||
|
|
||||||
# TENSORBOARD_BOWER_AUTOGENERATED_BELOW_THIS_LINE_DO_NOT_EDIT
|
# TENSORBOARD_BOWER_AUTOGENERATED_BELOW_THIS_LINE_DO_NOT_EDIT
|
||||||
|
|
||||||
|
11
configure
vendored
11
configure
vendored
@ -2,17 +2,6 @@
|
|||||||
|
|
||||||
DO_NOT_SUBMIT_WARNING="Unofficial setting. DO NOT SUBMIT!!!"
|
DO_NOT_SUBMIT_WARNING="Unofficial setting. DO NOT SUBMIT!!!"
|
||||||
|
|
||||||
## Verify that the submodule google/protobuf is available
|
|
||||||
# TODO(cais): Remove this check once protobuf is no longer depended upon
|
|
||||||
if [[ ! -f "google/protobuf/protobuf.bzl" ]]; then
|
|
||||||
echo "ERROR: It appears that the required submodule google/protobuf is not "\
|
|
||||||
"available in this TensorFlow git clone."
|
|
||||||
echo "Please be sure to use the --recurse-submodules flag when performing "\
|
|
||||||
"git clone of TensorFlow."
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
## Set up python-related environment settings
|
## Set up python-related environment settings
|
||||||
while true; do
|
while true; do
|
||||||
fromuser=""
|
fromuser=""
|
||||||
|
28
gmock.BUILD
Normal file
28
gmock.BUILD
Normal file
@ -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"],
|
||||||
|
)
|
@ -16,7 +16,7 @@ cc_library(
|
|||||||
"//tensorflow/contrib/ffmpeg:ffmpeg_lib.h",
|
"//tensorflow/contrib/ffmpeg:ffmpeg_lib.h",
|
||||||
],
|
],
|
||||||
deps = [
|
deps = [
|
||||||
"//google/protobuf",
|
"@protobuf//:protobuf",
|
||||||
"//tensorflow/core:framework_headers_lib",
|
"//tensorflow/core:framework_headers_lib",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@ -11,7 +11,7 @@ cc_library(
|
|||||||
name = "bucketization_kernel",
|
name = "bucketization_kernel",
|
||||||
srcs = ["bucketization_kernel.cc"],
|
srcs = ["bucketization_kernel.cc"],
|
||||||
deps = [
|
deps = [
|
||||||
"//google/protobuf",
|
"@protobuf//:protobuf",
|
||||||
"//tensorflow/core:framework_headers_lib",
|
"//tensorflow/core:framework_headers_lib",
|
||||||
"//third_party/eigen3",
|
"//third_party/eigen3",
|
||||||
],
|
],
|
||||||
@ -22,7 +22,7 @@ cc_library(
|
|||||||
name = "sparse_feature_cross_kernel",
|
name = "sparse_feature_cross_kernel",
|
||||||
srcs = ["sparse_feature_cross_kernel.cc"],
|
srcs = ["sparse_feature_cross_kernel.cc"],
|
||||||
deps = [
|
deps = [
|
||||||
"//google/protobuf",
|
"@protobuf//:protobuf",
|
||||||
"//tensorflow/core:framework_headers_lib",
|
"//tensorflow/core:framework_headers_lib",
|
||||||
"//third_party/eigen3",
|
"//third_party/eigen3",
|
||||||
],
|
],
|
||||||
|
@ -21,7 +21,7 @@ cc_library(
|
|||||||
"squared-loss.h",
|
"squared-loss.h",
|
||||||
],
|
],
|
||||||
deps = [
|
deps = [
|
||||||
"//google/protobuf",
|
"@protobuf//:protobuf",
|
||||||
"//tensorflow/core:framework_headers_lib",
|
"//tensorflow/core:framework_headers_lib",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@ -43,7 +43,7 @@ cc_library(
|
|||||||
srcs = ["resources.cc"],
|
srcs = ["resources.cc"],
|
||||||
hdrs = ["resources.h"],
|
hdrs = ["resources.h"],
|
||||||
deps = [
|
deps = [
|
||||||
"//google/protobuf",
|
"@protobuf//:protobuf",
|
||||||
"//tensorflow/core:framework_headers_lib",
|
"//tensorflow/core:framework_headers_lib",
|
||||||
"//third_party/eigen3",
|
"//third_party/eigen3",
|
||||||
],
|
],
|
||||||
@ -66,9 +66,9 @@ cc_library(
|
|||||||
name = "sdca_ops",
|
name = "sdca_ops",
|
||||||
srcs = ["sdca_ops.cc"],
|
srcs = ["sdca_ops.cc"],
|
||||||
deps = [
|
deps = [
|
||||||
|
"@protobuf//:protobuf",
|
||||||
":loss_updaters",
|
":loss_updaters",
|
||||||
":resources",
|
":resources",
|
||||||
"//google/protobuf",
|
|
||||||
"//tensorflow/core:framework_headers_lib",
|
"//tensorflow/core:framework_headers_lib",
|
||||||
"//tensorflow/core/kernels:bounds_check_lib",
|
"//tensorflow/core/kernels:bounds_check_lib",
|
||||||
"//third_party/eigen3",
|
"//third_party/eigen3",
|
||||||
|
@ -11,7 +11,7 @@ cc_library(
|
|||||||
name = "set_kernels",
|
name = "set_kernels",
|
||||||
srcs = ["set_kernels.cc"],
|
srcs = ["set_kernels.cc"],
|
||||||
deps = [
|
deps = [
|
||||||
"//google/protobuf",
|
"@protobuf//:protobuf",
|
||||||
"//tensorflow/core:framework_headers_lib",
|
"//tensorflow/core:framework_headers_lib",
|
||||||
"//third_party/eigen3",
|
"//third_party/eigen3",
|
||||||
],
|
],
|
||||||
|
@ -25,7 +25,7 @@ cc_library(
|
|||||||
"core/ops/tree_utils.h",
|
"core/ops/tree_utils.h",
|
||||||
],
|
],
|
||||||
deps = [
|
deps = [
|
||||||
"//google/protobuf",
|
"@protobuf//:protobuf",
|
||||||
"//tensorflow/core:framework_headers_lib",
|
"//tensorflow/core:framework_headers_lib",
|
||||||
"//third_party/eigen3",
|
"//third_party/eigen3",
|
||||||
],
|
],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Platform-specific build configurations.
|
# Platform-specific build configurations.
|
||||||
|
|
||||||
load("//google/protobuf:protobuf.bzl", "cc_proto_library")
|
load("@protobuf//:protobuf.bzl", "cc_proto_library")
|
||||||
load("//google/protobuf:protobuf.bzl", "py_proto_library")
|
load("@protobuf//:protobuf.bzl", "py_proto_library")
|
||||||
|
|
||||||
# configure may change the following line to True
|
# configure may change the following line to True
|
||||||
WITH_GCP_SUPPORT = False
|
WITH_GCP_SUPPORT = False
|
||||||
@ -31,29 +31,39 @@ def tf_proto_library_cc(name, srcs = [], has_services = None,
|
|||||||
cc_api_version = 2, go_api_version = 2,
|
cc_api_version = 2, go_api_version = 2,
|
||||||
java_api_version = 2,
|
java_api_version = 2,
|
||||||
py_api_version = 2):
|
py_api_version = 2):
|
||||||
native.filegroup(name=name + "_proto_srcs",
|
native.filegroup(
|
||||||
|
name = name + "_proto_srcs",
|
||||||
srcs = srcs + tf_deps(deps, "_proto_srcs"),
|
srcs = srcs + tf_deps(deps, "_proto_srcs"),
|
||||||
testonly=testonly,)
|
testonly = testonly,
|
||||||
|
)
|
||||||
|
|
||||||
use_grpc_plugin = None
|
use_grpc_plugin = None
|
||||||
if cc_grpc_version:
|
if cc_grpc_version:
|
||||||
use_grpc_plugin = True
|
use_grpc_plugin = True
|
||||||
cc_proto_library(name=name + "_cc",
|
cc_proto_library(
|
||||||
|
name = name + "_cc",
|
||||||
srcs = srcs + tf_deps(deps, "_proto_srcs"),
|
srcs = srcs + tf_deps(deps, "_proto_srcs"),
|
||||||
deps=deps + ["//google/protobuf:cc_wkt_protos"],
|
deps = deps + ["@protobuf//:cc_wkt_protos"],
|
||||||
cc_libs = cc_libs + ["//google/protobuf:protobuf"],
|
cc_libs = cc_libs + ["@protobuf//:protobuf"],
|
||||||
|
protoc = "@protobuf//:protoc",
|
||||||
|
default_runtime = "@protobuf//:protobuf",
|
||||||
use_grpc_plugin = use_grpc_plugin,
|
use_grpc_plugin = use_grpc_plugin,
|
||||||
testonly = testonly,
|
testonly = testonly,
|
||||||
visibility=visibility,)
|
visibility = visibility,
|
||||||
|
)
|
||||||
|
|
||||||
def tf_proto_library_py(name, srcs=[], deps=[], visibility=[], testonly=0,
|
def tf_proto_library_py(name, srcs=[], deps=[], visibility=[], testonly=0,
|
||||||
srcs_version="PY2AND3"):
|
srcs_version="PY2AND3"):
|
||||||
py_proto_library(name = name + "_py",
|
py_proto_library(
|
||||||
|
name = name + "_py",
|
||||||
srcs = srcs,
|
srcs = srcs,
|
||||||
srcs_version = srcs_version,
|
srcs_version = srcs_version,
|
||||||
deps = deps,
|
deps = deps,
|
||||||
|
protoc = "@protobuf//:protoc",
|
||||||
|
default_runtime = "@protobuf//:protobuf_python",
|
||||||
visibility = visibility,
|
visibility = visibility,
|
||||||
testonly = testonly)
|
testonly = testonly,
|
||||||
|
)
|
||||||
|
|
||||||
def tf_proto_library(name, srcs = [], has_services = None,
|
def tf_proto_library(name, srcs = [], has_services = None,
|
||||||
deps = [], visibility = [], testonly = 0,
|
deps = [], visibility = [], testonly = 0,
|
||||||
@ -61,19 +71,23 @@ def tf_proto_library(name, srcs = [], has_services = None,
|
|||||||
cc_api_version = 2, go_api_version = 2,
|
cc_api_version = 2, go_api_version = 2,
|
||||||
java_api_version = 2,
|
java_api_version = 2,
|
||||||
py_api_version = 2):
|
py_api_version = 2):
|
||||||
tf_proto_library_cc(name=name,
|
tf_proto_library_cc(
|
||||||
|
name = name,
|
||||||
srcs = srcs + tf_deps(deps, "_proto_srcs"),
|
srcs = srcs + tf_deps(deps, "_proto_srcs"),
|
||||||
deps = deps,
|
deps = deps,
|
||||||
cc_libs = cc_libs,
|
cc_libs = cc_libs,
|
||||||
testonly = testonly,
|
testonly = testonly,
|
||||||
visibility=visibility,)
|
visibility = visibility,
|
||||||
|
)
|
||||||
|
|
||||||
tf_proto_library_py(name=name,
|
tf_proto_library_py(
|
||||||
|
name = name,
|
||||||
srcs = srcs + tf_deps(deps, "_proto_srcs"),
|
srcs = srcs + tf_deps(deps, "_proto_srcs"),
|
||||||
srcs_version = "PY2AND3",
|
srcs_version = "PY2AND3",
|
||||||
deps=deps + ["//google/protobuf:protobuf_python"],
|
deps = deps + ["@protobuf//:protobuf_python"],
|
||||||
testonly = testonly,
|
testonly = testonly,
|
||||||
visibility=visibility,)
|
visibility = visibility,
|
||||||
|
)
|
||||||
|
|
||||||
def tf_additional_lib_srcs():
|
def tf_additional_lib_srcs():
|
||||||
return [
|
return [
|
||||||
|
@ -60,7 +60,7 @@ tf.zeros_like(tensor) ==> [[0, 0, 0], [0, 0, 0]]
|
|||||||
|
|
||||||
* <b>`tensor`</b>: A `Tensor`.
|
* <b>`tensor`</b>: A `Tensor`.
|
||||||
* <b>`dtype`</b>: A type for the returned `Tensor`. Must be `float32`, `float64`,
|
* <b>`dtype`</b>: A type for the returned `Tensor`. Must be `float32`, `float64`,
|
||||||
`int8`, `int16`, `int32`, `int64`, `uint8`, or `complex64`.
|
`int8`, `int16`, `int32`, `int64`, `uint8`, `complex64`, or `complex128`.
|
||||||
|
|
||||||
* <b>`name`</b>: A name for the operation (optional).
|
* <b>`name`</b>: A name for the operation (optional).
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ tf.ones_like(tensor) ==> [[1, 1, 1], [1, 1, 1]]
|
|||||||
|
|
||||||
* <b>`tensor`</b>: A `Tensor`.
|
* <b>`tensor`</b>: A `Tensor`.
|
||||||
* <b>`dtype`</b>: A type for the returned `Tensor`. Must be `float32`, `float64`,
|
* <b>`dtype`</b>: A type for the returned `Tensor`. Must be `float32`, `float64`,
|
||||||
`int8`, `int16`, `int32`, `int64`, `uint8`, or `complex64`.
|
`int8`, `int16`, `int32`, `int64`, `uint8`, `complex64` or `complex128`.
|
||||||
|
|
||||||
* <b>`name`</b>: A name for the operation (optional).
|
* <b>`name`</b>: A name for the operation (optional).
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ case where both types are quantized.
|
|||||||
|
|
||||||
|
|
||||||
* <b>`value`</b>: A `Tensor` with type `float`, `double`, `int64`, `int32`, `uint8`,
|
* <b>`value`</b>: A `Tensor` with type `float`, `double`, `int64`, `int32`, `uint8`,
|
||||||
`int16`, `int8`, or `complex64`.
|
`int16`, `int8`, `complex64` or `complex128`.
|
||||||
* <b>`bias`</b>: A 1-D `Tensor` with size matching the last dimension of `value`.
|
* <b>`bias`</b>: A 1-D `Tensor` with size matching the last dimension of `value`.
|
||||||
Must be the same type as `value` unless `value` is a quantized type,
|
Must be the same type as `value` unless `value` is a quantized type,
|
||||||
in which case a different quantized type may be used.
|
in which case a different quantized type may be used.
|
||||||
@ -186,7 +186,7 @@ Specifically, `y = 1 / (1 + exp(-x))`.
|
|||||||
##### Args:
|
##### Args:
|
||||||
|
|
||||||
|
|
||||||
* <b>`x`</b>: A Tensor with type `float`, `double`, `int32`, `complex64`, `int64`,
|
* <b>`x`</b>: A Tensor with type `float`, `double`, `int32`, `complex64`, `complex128`, `int64`,
|
||||||
or `qint32`.
|
or `qint32`.
|
||||||
* <b>`name`</b>: A name for the operation (optional).
|
* <b>`name`</b>: A name for the operation (optional).
|
||||||
|
|
||||||
@ -205,7 +205,7 @@ Computes hyperbolic tangent of `x` element-wise.
|
|||||||
##### Args:
|
##### Args:
|
||||||
|
|
||||||
|
|
||||||
* <b>`x`</b>: A Tensor with type `float`, `double`, `int32`, `complex64`, `int64`,
|
* <b>`x`</b>: A Tensor with type `float`, `double`, `int32`, `complex64`, `complex128`, `int64`,
|
||||||
or `qint32`.
|
or `qint32`.
|
||||||
* <b>`name`</b>: A name for the operation (optional).
|
* <b>`name`</b>: A name for the operation (optional).
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ cc_binary(
|
|||||||
}),
|
}),
|
||||||
linkshared = 1,
|
linkshared = 1,
|
||||||
deps = [
|
deps = [
|
||||||
"//google/protobuf",
|
"@protobuf//:protobuf",
|
||||||
"//tensorflow/core:framework_headers_lib",
|
"//tensorflow/core:framework_headers_lib",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@ -885,7 +885,7 @@ py_library(
|
|||||||
name = "util",
|
name = "util",
|
||||||
srcs = glob(["util/**/*.py"]),
|
srcs = glob(["util/**/*.py"]),
|
||||||
srcs_version = "PY2AND3",
|
srcs_version = "PY2AND3",
|
||||||
deps = ["//google/protobuf:protobuf_python"],
|
deps = ["@protobuf//:protobuf_python"],
|
||||||
)
|
)
|
||||||
|
|
||||||
tf_proto_library(
|
tf_proto_library(
|
||||||
|
@ -539,7 +539,7 @@ def cc_header_only_library(name, deps=[], **kwargs):
|
|||||||
|
|
||||||
def tf_custom_op_library_additional_deps():
|
def tf_custom_op_library_additional_deps():
|
||||||
return [
|
return [
|
||||||
"//google/protobuf",
|
"@protobuf//:protobuf",
|
||||||
"//third_party/eigen3",
|
"//third_party/eigen3",
|
||||||
"//tensorflow/core:framework_headers_lib",
|
"//tensorflow/core:framework_headers_lib",
|
||||||
]
|
]
|
||||||
|
@ -61,7 +61,7 @@ tf_cc_test(
|
|||||||
# --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
|
# --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
|
||||||
#
|
#
|
||||||
# NOTE: currently '-pthread' must be removed from the LINK_OPTS variable
|
# NOTE: currently '-pthread' must be removed from the LINK_OPTS variable
|
||||||
# in google/protobuf/BUILD to sucessfully build for Android. This is temporary
|
# in @protobuf//:BUILD to sucessfully build for Android. This is temporary
|
||||||
# pending an update of the version of the protobuf library that Tensorflow
|
# pending an update of the version of the protobuf library that Tensorflow
|
||||||
# uses.
|
# uses.
|
||||||
cc_binary(
|
cc_binary(
|
||||||
|
@ -27,10 +27,10 @@ sh_binary(
|
|||||||
"MANIFEST.in",
|
"MANIFEST.in",
|
||||||
"README",
|
"README",
|
||||||
"setup.py",
|
"setup.py",
|
||||||
"//tensorflow/core:framework_headers",
|
|
||||||
":other_headers",
|
":other_headers",
|
||||||
":simple_console",
|
":simple_console",
|
||||||
"//tensorflow:tensorflow_py",
|
"//tensorflow:tensorflow_py",
|
||||||
|
"//tensorflow/core:framework_headers",
|
||||||
"//tensorflow/examples/tutorials/mnist:package",
|
"//tensorflow/examples/tutorials/mnist:package",
|
||||||
"//tensorflow/models/embedding:package",
|
"//tensorflow/models/embedding:package",
|
||||||
"//tensorflow/models/image/alexnet:all_files",
|
"//tensorflow/models/image/alexnet:all_files",
|
||||||
|
@ -61,8 +61,9 @@ function main() {
|
|||||||
|
|
||||||
# protobuf pip package doesn't ship with header files. Copy the headers
|
# protobuf pip package doesn't ship with header files. Copy the headers
|
||||||
# over so user defined ops can be compiled.
|
# over so user defined ops can be compiled.
|
||||||
|
mkdir -p ${TMPDIR}/google
|
||||||
rsync --include "*/" --include "*.h" --exclude "*" --prune-empty-dirs -a \
|
rsync --include "*/" --include "*.h" --exclude "*" --prune-empty-dirs -a \
|
||||||
$RUNFILES/google ${TMPDIR}
|
$RUNFILES/external/protobuf ${TMPDIR}/google
|
||||||
rsync -a $RUNFILES/third_party/eigen3 ${TMPDIR}/third_party
|
rsync -a $RUNFILES/third_party/eigen3 ${TMPDIR}/third_party
|
||||||
|
|
||||||
cp tensorflow/tools/pip_package/MANIFEST.in ${TMPDIR}
|
cp tensorflow/tools/pip_package/MANIFEST.in ${TMPDIR}
|
||||||
|
@ -4,13 +4,6 @@
|
|||||||
# within the workspace (e.g. "tensorflow/"), and tf_repo_name is the name of the
|
# within the workspace (e.g. "tensorflow/"), and tf_repo_name is the name of the
|
||||||
# local_repository rule (e.g. "@tf").
|
# local_repository rule (e.g. "@tf").
|
||||||
def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||||
native.new_http_archive(
|
|
||||||
name = "gmock_archive",
|
|
||||||
url = "https://archive.openswitch.net/gmock-1.7.0.zip",
|
|
||||||
sha256 = "26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b",
|
|
||||||
build_file = path_prefix + "google/protobuf/gmock.BUILD",
|
|
||||||
)
|
|
||||||
|
|
||||||
native.new_http_archive(
|
native.new_http_archive(
|
||||||
name = "eigen_archive",
|
name = "eigen_archive",
|
||||||
url = "https://bitbucket.org/eigen/eigen/get/f3a13643ac1f.tar.gz",
|
url = "https://bitbucket.org/eigen/eigen/get/f3a13643ac1f.tar.gz",
|
||||||
@ -18,16 +11,6 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
|||||||
build_file = path_prefix + "eigen.BUILD",
|
build_file = path_prefix + "eigen.BUILD",
|
||||||
)
|
)
|
||||||
|
|
||||||
native.bind(
|
|
||||||
name = "gtest",
|
|
||||||
actual = "@gmock_archive//:gtest",
|
|
||||||
)
|
|
||||||
|
|
||||||
native.bind(
|
|
||||||
name = "gtest_main",
|
|
||||||
actual = "@gmock_archive//:gtest_main",
|
|
||||||
)
|
|
||||||
|
|
||||||
native.git_repository(
|
native.git_repository(
|
||||||
name = "re2",
|
name = "re2",
|
||||||
remote = "https://github.com/google/re2.git",
|
remote = "https://github.com/google/re2.git",
|
||||||
@ -85,16 +68,44 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
|||||||
actual = "@six_archive//:six",
|
actual = "@six_archive//:six",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
native.git_repository(
|
||||||
|
name = "protobuf",
|
||||||
|
remote = "https://github.com/google/protobuf",
|
||||||
|
commit = "ed87c1fe2c6e1633cadb62cf54b2723b2b25c280",
|
||||||
|
)
|
||||||
|
|
||||||
|
native.new_http_archive(
|
||||||
|
name = "gmock_archive",
|
||||||
|
url = "https://archive.openswitch.net/gmock-1.7.0.zip",
|
||||||
|
sha256 = "26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b",
|
||||||
|
build_file = path_prefix + "gmock.BUILD",
|
||||||
|
)
|
||||||
|
|
||||||
|
native.bind(
|
||||||
|
name = "gtest",
|
||||||
|
actual = "@gmock_archive//:gtest",
|
||||||
|
)
|
||||||
|
|
||||||
|
native.bind(
|
||||||
|
name = "gtest_main",
|
||||||
|
actual = "@gmock_archive//:gtest_main",
|
||||||
|
)
|
||||||
|
|
||||||
|
native.bind(
|
||||||
|
name = "python_headers",
|
||||||
|
actual = tf_repo_name + "//util/python:python_headers",
|
||||||
|
)
|
||||||
|
|
||||||
# grpc expects //external:protobuf_clib and //external:protobuf_compiler
|
# grpc expects //external:protobuf_clib and //external:protobuf_compiler
|
||||||
# to point to the protobuf's compiler library.
|
# to point to the protobuf's compiler library.
|
||||||
native.bind(
|
native.bind(
|
||||||
name = "protobuf_clib",
|
name = "protobuf_clib",
|
||||||
actual = tf_repo_name + "//google/protobuf:protoc_lib",
|
actual = "@protobuf//:protoc_lib",
|
||||||
)
|
)
|
||||||
|
|
||||||
native.bind(
|
native.bind(
|
||||||
name = "protobuf_compiler",
|
name = "protobuf_compiler",
|
||||||
actual = tf_repo_name + "//google/protobuf:protoc_lib",
|
actual = "@protobuf//:protoc_lib",
|
||||||
)
|
)
|
||||||
|
|
||||||
native.git_repository(
|
native.git_repository(
|
||||||
|
@ -9,3 +9,7 @@ build --define=allow_oversize_protos=true
|
|||||||
build --spawn_strategy=standalone
|
build --spawn_strategy=standalone
|
||||||
test --spawn_strategy=standalone
|
test --spawn_strategy=standalone
|
||||||
run --spawn_strategy=standalone
|
run --spawn_strategy=standalone
|
||||||
|
|
||||||
|
build --genrule_strategy=standalone
|
||||||
|
test --genrule_strategy=standalone
|
||||||
|
run --genrule_strategy=standalone
|
||||||
|
Loading…
Reference in New Issue
Block a user