Skip to content

Commit 48c9ade

Browse files
cccclaifacebook-github-bot
authored andcommitted
Rename targets.bzl to TARGETS.oss
Summary: Per comment https://www.internalfb.com/diff/D47521022?dst_version_fbid=1131599264464159&transaction_fbid=814064360463191 This diff adds a TARGETS.oss and D47531342 maps it to TARGETS in open source Reviewed By: dbort Differential Revision: D47536188 fbshipit-source-id: 2a62dd3c655e0000eea7cc3aa4bc1b42b590ce2b
1 parent e9cb030 commit 48c9ade

File tree

2 files changed

+94
-95
lines changed

2 files changed

+94
-95
lines changed

third-party/TARGETS

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
load("@fbsource//xplat/executorch/build/runtime_wrapper.bzl", "runtime")
2+
3+
runtime.cxx_library(
4+
name = "flatbuffers-api",
5+
public_include_directories = ["flatbuffers/include"],
6+
raw_headers = [
7+
"flatbuffers/include/flatbuffers/base.h",
8+
"flatbuffers/include/flatbuffers/flatbuffers.h",
9+
"flatbuffers/include/flatbuffers/stl_emulation.h",
10+
],
11+
link_style = "static",
12+
visibility = ["PUBLIC"],
13+
)
14+
15+
runtime.cxx_library(
16+
name = "flatc_library",
17+
srcs = [
18+
"flatbuffers/src/code_generators.cpp",
19+
"flatbuffers/src/flatc.cpp",
20+
"flatbuffers/src/idl_gen_fbs.cpp",
21+
"flatbuffers/src/idl_gen_text.cpp",
22+
"flatbuffers/src/idl_parser.cpp",
23+
"flatbuffers/src/reflection.cpp",
24+
"flatbuffers/src/util.cpp",
25+
],
26+
public_include_directories = [
27+
"flatbuffers/grpc",
28+
"flatbuffers/include",
29+
],
30+
raw_headers = [
31+
"flatbuffers/include/flatbuffers/flatc.h",
32+
"flatbuffers/include/flatbuffers/base.h",
33+
"flatbuffers/include/flatbuffers/flatbuffers.h",
34+
"flatbuffers/include/flatbuffers/stl_emulation.h",
35+
"flatbuffers/include/flatbuffers/code_generators.h",
36+
"flatbuffers/include/flatbuffers/flexbuffers.h",
37+
"flatbuffers/include/flatbuffers/hash.h",
38+
"flatbuffers/include/flatbuffers/idl.h",
39+
"flatbuffers/include/flatbuffers/minireflect.h",
40+
"flatbuffers/include/flatbuffers/reflection.h",
41+
"flatbuffers/include/flatbuffers/reflection_generated.h",
42+
"flatbuffers/include/flatbuffers/util.h",
43+
],
44+
link_style = "static",
45+
visibility = ["PUBLIC"],
46+
)
47+
48+
runtime.cxx_binary(
49+
name = "flatc",
50+
srcs = [
51+
"flatbuffers/grpc/src/compiler/cpp_generator.cc",
52+
"flatbuffers/grpc/src/compiler/go_generator.cc",
53+
"flatbuffers/grpc/src/compiler/java_generator.cc",
54+
"flatbuffers/grpc/src/compiler/python_generator.cc",
55+
"flatbuffers/grpc/src/compiler/swift_generator.cc",
56+
"flatbuffers/grpc/src/compiler/ts_generator.cc",
57+
"flatbuffers/src/flatc_main.cpp",
58+
"flatbuffers/src/idl_gen_cpp.cpp",
59+
"flatbuffers/src/idl_gen_csharp.cpp",
60+
"flatbuffers/src/idl_gen_dart.cpp",
61+
"flatbuffers/src/idl_gen_go.cpp",
62+
"flatbuffers/src/idl_gen_grpc.cpp",
63+
"flatbuffers/src/idl_gen_java.cpp",
64+
"flatbuffers/src/idl_gen_js_ts.cpp",
65+
"flatbuffers/src/idl_gen_json_schema.cpp",
66+
"flatbuffers/src/idl_gen_kotlin.cpp",
67+
"flatbuffers/src/idl_gen_lobster.cpp",
68+
"flatbuffers/src/idl_gen_lua.cpp",
69+
"flatbuffers/src/idl_gen_php.cpp",
70+
"flatbuffers/src/idl_gen_python.cpp",
71+
"flatbuffers/src/idl_gen_rust.cpp",
72+
"flatbuffers/src/idl_gen_swift.cpp",
73+
"flatbuffers/src/idl_gen_text.cpp",
74+
"flatbuffers/src/util.cpp",
75+
],
76+
include_directories = [
77+
"flatbuffers/grpc",
78+
"flatbuffers/include",
79+
],
80+
raw_headers = [
81+
"flatbuffers/grpc/src/compiler/config.h",
82+
"flatbuffers/grpc/src/compiler/cpp_generator.h",
83+
"flatbuffers/grpc/src/compiler/go_generator.h",
84+
"flatbuffers/grpc/src/compiler/java_generator.h",
85+
"flatbuffers/grpc/src/compiler/python_generator.h",
86+
"flatbuffers/grpc/src/compiler/python_private_generator.h",
87+
"flatbuffers/grpc/src/compiler/schema_interface.h",
88+
"flatbuffers/grpc/src/compiler/swift_generator.h",
89+
"flatbuffers/grpc/src/compiler/ts_generator.h",
90+
],
91+
visibility = ["PUBLIC"],
92+
deps = [":flatc_library"],
93+
link_style = "static",
94+
)

third-party/targets.bzl

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)