Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 1 | package( |
| 2 | default_visibility = ["//visibility:private"], |
| 3 | ) |
| 4 | |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 5 | # Public flatc library to compile flatbuffer files at runtime. |
| 6 | cc_library( |
| 7 | name = "flatbuffers", |
| 8 | srcs = [ |
| 9 | "code_generators.cpp", |
| 10 | "idl_gen_fbs.cpp", |
| 11 | "idl_gen_text.cpp", |
| 12 | "idl_parser.cpp", |
| 13 | "reflection.cpp", |
| 14 | "util.cpp", |
| 15 | ], |
| 16 | hdrs = ["//:public_headers"], |
| 17 | strip_include_prefix = "/include", |
| 18 | visibility = ["//:__pkg__"], |
| 19 | ) |
| 20 | |
| 21 | # Public flatc compiler library. |
| 22 | cc_library( |
| 23 | name = "flatc_library", |
| 24 | srcs = [ |
| 25 | "flatc.cpp", |
| 26 | ], |
| 27 | hdrs = [ |
| 28 | "//:flatc_headers", |
| 29 | ], |
| 30 | strip_include_prefix = "/include", |
| 31 | visibility = ["//:__pkg__"], |
| 32 | deps = [ |
| 33 | ":flatbuffers", |
| 34 | ], |
| 35 | ) |
| 36 | |
| 37 | # Public flatc compiler. |
| 38 | cc_library( |
| 39 | name = "flatc", |
| 40 | srcs = [ |
| 41 | "flatc_main.cpp", |
| 42 | "idl_gen_cpp.cpp", |
| 43 | "idl_gen_csharp.cpp", |
| 44 | "idl_gen_dart.cpp", |
| 45 | "idl_gen_go.cpp", |
| 46 | "idl_gen_grpc.cpp", |
| 47 | "idl_gen_java.cpp", |
| 48 | "idl_gen_js_ts.cpp", |
| 49 | "idl_gen_json_schema.cpp", |
| 50 | "idl_gen_kotlin.cpp", |
| 51 | "idl_gen_lobster.cpp", |
| 52 | "idl_gen_lua.cpp", |
| 53 | "idl_gen_php.cpp", |
| 54 | "idl_gen_python.cpp", |
| 55 | "idl_gen_rust.cpp", |
| 56 | "idl_gen_swift.cpp", |
| 57 | "idl_gen_text.cpp", |
| 58 | "util.cpp", |
| 59 | ], |
| 60 | hdrs = [ |
| 61 | "//:flatc_headers", |
| 62 | ], |
| 63 | strip_include_prefix = "/include", |
| 64 | visibility = ["//:__pkg__"], |
| 65 | deps = [ |
| 66 | ":flatc_library", |
| 67 | "//grpc/src/compiler:cpp_generator", |
| 68 | "//grpc/src/compiler:go_generator", |
| 69 | "//grpc/src/compiler:java_generator", |
| 70 | "//grpc/src/compiler:python_generator", |
| 71 | "//grpc/src/compiler:swift_generator", |
| 72 | "//grpc/src/compiler:ts_generator", |
| 73 | ], |
| 74 | ) |