mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-03 16:14:11 +00:00
[CMake] Renames BUILD files (#6457)
* Renamed build to build.bazel to stop xcode from complaining about it * Renamed all build to build.bazel * Fixes small ci issue
This commit is contained in:
77
src/BUILD.bazel
Normal file
77
src/BUILD.bazel
Normal file
@@ -0,0 +1,77 @@
|
||||
# @unused
|
||||
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
|
||||
|
||||
package(
|
||||
default_visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
# Public flatc library to compile flatbuffer files at runtime.
|
||||
cc_library(
|
||||
name = "flatbuffers",
|
||||
srcs = [
|
||||
"code_generators.cpp",
|
||||
"idl_gen_fbs.cpp",
|
||||
"idl_gen_text.cpp",
|
||||
"idl_parser.cpp",
|
||||
"reflection.cpp",
|
||||
"util.cpp",
|
||||
],
|
||||
hdrs = ["//:public_headers"],
|
||||
strip_include_prefix = "/include",
|
||||
visibility = ["//:__pkg__"],
|
||||
)
|
||||
|
||||
# Public flatc compiler library.
|
||||
cc_library(
|
||||
name = "flatc_library",
|
||||
srcs = [
|
||||
"flatc.cpp",
|
||||
],
|
||||
hdrs = [
|
||||
"//:flatc_headers",
|
||||
],
|
||||
strip_include_prefix = "/include",
|
||||
visibility = ["//:__pkg__"],
|
||||
deps = [
|
||||
":flatbuffers",
|
||||
],
|
||||
)
|
||||
|
||||
# Public flatc compiler.
|
||||
cc_library(
|
||||
name = "flatc",
|
||||
srcs = [
|
||||
"flatc_main.cpp",
|
||||
"idl_gen_cpp.cpp",
|
||||
"idl_gen_csharp.cpp",
|
||||
"idl_gen_dart.cpp",
|
||||
"idl_gen_go.cpp",
|
||||
"idl_gen_grpc.cpp",
|
||||
"idl_gen_java.cpp",
|
||||
"idl_gen_ts.cpp",
|
||||
"idl_gen_json_schema.cpp",
|
||||
"idl_gen_kotlin.cpp",
|
||||
"idl_gen_lobster.cpp",
|
||||
"idl_gen_lua.cpp",
|
||||
"idl_gen_php.cpp",
|
||||
"idl_gen_python.cpp",
|
||||
"idl_gen_rust.cpp",
|
||||
"idl_gen_swift.cpp",
|
||||
"idl_gen_text.cpp",
|
||||
"util.cpp",
|
||||
],
|
||||
hdrs = [
|
||||
"//:flatc_headers",
|
||||
],
|
||||
strip_include_prefix = "/include",
|
||||
visibility = ["//:__pkg__"],
|
||||
deps = [
|
||||
":flatc_library",
|
||||
"//grpc/src/compiler:cpp_generator",
|
||||
"//grpc/src/compiler:go_generator",
|
||||
"//grpc/src/compiler:java_generator",
|
||||
"//grpc/src/compiler:python_generator",
|
||||
"//grpc/src/compiler:swift_generator",
|
||||
"//grpc/src/compiler:ts_generator",
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user