github.com/johnnyeven/libtools@v0.0.0-20191126065708-61829c1adf46/third_party/flatbuffers/BUILD.system (about) 1 licenses(["notice"]) # Apache 2.0 2 3 filegroup( 4 name = "LICENSE.txt", 5 visibility = ["//visibility:public"], 6 ) 7 8 # Public flatc library to compile flatbuffer files at runtime. 9 cc_library( 10 name = "flatbuffers", 11 linkopts = ["-lflatbuffers"], 12 visibility = ["//visibility:public"], 13 ) 14 15 # Public flatc compiler library. 16 cc_library( 17 name = "flatc_library", 18 linkopts = ["-lflatbuffers"], 19 visibility = ["//visibility:public"], 20 ) 21 22 genrule( 23 name = "lnflatc", 24 outs = ["flatc.bin"], 25 cmd = "ln -s $$(which flatc) $@", 26 ) 27 28 # Public flatc compiler. 29 sh_binary( 30 name = "flatc", 31 srcs = ["flatc.bin"], 32 visibility = ["//visibility:public"], 33 ) 34 35 cc_library( 36 name = "runtime_cc", 37 visibility = ["//visibility:public"], 38 )