diff options
author | Austin Anderson <angerson@google.com> | 2018-08-20 10:36:54 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-20 10:40:38 -0700 |
commit | 833e8803da346413676fff088ac97c4c26481a85 (patch) | |
tree | b2dc8b20d90592c206e8b79399d88b99c6023c97 /third_party/systemlibs | |
parent | 468288f3b6bfdc20d2197ecefdb63aed7f338366 (diff) |
Automated rollback of commit f35866577cb8d27a51b31f49f472e926c4359e1f
PiperOrigin-RevId: 209443205
Diffstat (limited to 'third_party/systemlibs')
-rw-r--r-- | third_party/systemlibs/flatbuffers.BUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/third_party/systemlibs/flatbuffers.BUILD b/third_party/systemlibs/flatbuffers.BUILD new file mode 100644 index 0000000000..14fceada82 --- /dev/null +++ b/third_party/systemlibs/flatbuffers.BUILD @@ -0,0 +1,38 @@ +licenses(["notice"]) # Apache 2.0 + +filegroup( + name = "LICENSE.txt", + visibility = ["//visibility:public"], +) + +# Public flatc library to compile flatbuffer files at runtime. +cc_library( + name = "flatbuffers", + linkopts = ["-lflatbuffers"], + visibility = ["//visibility:public"], +) + +# Public flatc compiler library. +cc_library( + name = "flatc_library", + linkopts = ["-lflatbuffers"], + visibility = ["//visibility:public"], +) + +genrule( + name = "lnflatc", + outs = ["flatc.bin"], + cmd = "ln -s $$(which flatc) $@", +) + +# Public flatc compiler. +sh_binary( + name = "flatc", + srcs = ["flatc.bin"], + visibility = ["//visibility:public"], +) + +cc_library( + name = "runtime_cc", + visibility = ["//visibility:public"], +) |