aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/lib_package
diff options
context:
space:
mode:
authorGravatar Asim Shankar <ashankar@google.com>2017-04-17 10:05:29 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-04-17 11:28:09 -0700
commit1ae60b652a787692d18d4b1e6db399db3e171461 (patch)
tree06a9a0bac98ce06d9215444f68e0b29c1e2ecf0f /tensorflow/tools/lib_package
parentfd32dc59f0eb27119f3f7c62d35b67fca57fc417 (diff)
Release: Package public API protocol buffer files into an archive
Change: 153363147
Diffstat (limited to 'tensorflow/tools/lib_package')
-rw-r--r--tensorflow/tools/lib_package/BUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/tensorflow/tools/lib_package/BUILD b/tensorflow/tools/lib_package/BUILD
index a8e6ecdbf0..1e36af93ea 100644
--- a/tensorflow/tools/lib_package/BUILD
+++ b/tensorflow/tools/lib_package/BUILD
@@ -1,12 +1,17 @@
-# Packaging the TensorFlow C API and Java libraries into standalone archives
-# for use with language bindings and installations without Python.
-#
-# TODO(ashankar): Something similar for the C++ API (caveat: ABI compatibility)
+# Packaging for TensorFlow artifacts other than the Python API (pip whl).
+# This includes the C API, Java API, and protocol buffer files.
package(default_visibility = ["//visibility:private"])
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
+genrule(
+ name = "libtensorflow_proto",
+ srcs = ["//tensorflow/core:protos_all_proto_srcs"],
+ outs = ["libtensorflow_proto.zip"],
+ cmd = "zip $@ $(SRCS)",
+)
+
pkg_tar(
name = "libtensorflow",
extension = "tar.gz",