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