Add closure_js_proto_library build for tf.example protos.
authorJames Wexler <jwexler@google.com>
Thu, 12 Apr 2018 02:58:07 +0000 (19:58 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 12 Apr 2018 03:00:38 +0000 (20:00 -0700)
PiperOrigin-RevId: 192549109

tensorflow/core/BUILD

index c5ca421..55b0040 100644 (file)
@@ -71,6 +71,10 @@ package(default_visibility = [
 licenses(["notice"])  # Apache 2.0
 
 load(
+    "@io_bazel_rules_closure//closure:defs.bzl",
+    "closure_js_proto_library",
+)
+load(
     "//tensorflow:tensorflow.bzl",
     "full_path",
     "if_android",
@@ -244,6 +248,14 @@ tf_nano_proto_library(
     deps = [":protos_all_cc"],
 )
 
+closure_js_proto_library(
+    name = "example_js_protos",
+    srcs = [
+        "example/example.proto",
+        "example/feature.proto",
+    ],
+)
+
 exports_files([
     "framework/types.proto",
 ])