mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 13:02:19 +00:00
inject no long for FBS generation to remove logs in flattests (#7926)
* inject no long for FBS generation to remove logs in flattests * updated blaze rules
This commit is contained in:
@@ -5,20 +5,38 @@ package(
|
||||
default_visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "code_generators",
|
||||
srcs = ["code_generators.cpp"],
|
||||
hdrs = [
|
||||
"//:public_headers",
|
||||
],
|
||||
strip_include_prefix = "/include",
|
||||
visibility = ["//:__subpackages__"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "generate_fbs",
|
||||
srcs = ["idl_gen_fbs.cpp"],
|
||||
hdrs = ["idl_gen_fbs.h"],
|
||||
strip_include_prefix = "/src",
|
||||
visibility = ["//:__subpackages__"],
|
||||
deps = [":code_generators"],
|
||||
)
|
||||
|
||||
# Public flatc library to compile flatbuffer files at runtime.
|
||||
cc_library(
|
||||
name = "flatbuffers",
|
||||
srcs = [
|
||||
"code_generators.cpp",
|
||||
"idl_gen_fbs.cpp",
|
||||
"idl_gen_fbs.h",
|
||||
"idl_gen_text.cpp",
|
||||
"idl_gen_text.h",
|
||||
"idl_parser.cpp",
|
||||
"reflection.cpp",
|
||||
"util.cpp",
|
||||
],
|
||||
hdrs = ["//:public_headers"],
|
||||
hdrs = [
|
||||
"//:public_headers",
|
||||
],
|
||||
linkopts = select({
|
||||
# TODO: Bazel uses `clang` instead of `clang++` to link
|
||||
# C++ code on BSD. Temporarily adding these linker flags while
|
||||
@@ -29,7 +47,11 @@ cc_library(
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
strip_include_prefix = "/include",
|
||||
visibility = ["//:__pkg__"],
|
||||
visibility = ["//:__subpackages__"],
|
||||
deps = [
|
||||
":code_generators",
|
||||
":generate_fbs",
|
||||
],
|
||||
)
|
||||
|
||||
# Public flatc compiler library.
|
||||
|
||||
Reference in New Issue
Block a user