diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-08-15 20:49:02 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-15 20:52:18 -0700 |
commit | f7023480452e4b4781d343acf76ae720540b1423 (patch) | |
tree | 73f9ddec764556c40d54fab981875d6852fd9dc2 /tensorflow/tools/proto_text | |
parent | f9663ec81e968cc42aec36a190c56da3143f7d4f (diff) |
Separated protobuf_compiler into a separate BUILD rule.
This prevents most of TensorFlow from needing to depend
on libprotoc.
PiperOrigin-RevId: 208929776
Diffstat (limited to 'tensorflow/tools/proto_text')
-rw-r--r-- | tensorflow/tools/proto_text/BUILD | 1 | ||||
-rw-r--r-- | tensorflow/tools/proto_text/gen_proto_text_functions.cc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/tools/proto_text/BUILD b/tensorflow/tools/proto_text/BUILD index fc2c041b6c..b4b70e0a78 100644 --- a/tensorflow/tools/proto_text/BUILD +++ b/tensorflow/tools/proto_text/BUILD @@ -39,6 +39,7 @@ cc_binary( ":gen_proto_text_functions_lib", "@protobuf_archive//:protobuf", "//tensorflow/core:lib_proto_parsing", + "//tensorflow/core:lib_proto_compiler", ] + if_ios(["//tensorflow/core/platform/default/build_config:logging"]), ) diff --git a/tensorflow/tools/proto_text/gen_proto_text_functions.cc b/tensorflow/tools/proto_text/gen_proto_text_functions.cc index 234afe879b..159976f1b0 100644 --- a/tensorflow/tools/proto_text/gen_proto_text_functions.cc +++ b/tensorflow/tools/proto_text/gen_proto_text_functions.cc @@ -18,6 +18,7 @@ limitations under the License. #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/protobuf.h" +#include "tensorflow/core/platform/protobuf_compiler.h" #include "tensorflow/core/platform/types.h" #include "tensorflow/tools/proto_text/gen_proto_text_functions_lib.h" |