Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ set(FlatBuffers_Compiler_SRCS
src/idl_gen_grpc.cpp
src/idl_gen_json_schema.cpp
src/idl_gen_swift.cpp
src/idl_gen_ue.cpp
src/file_name_saving_file_manager.cpp
src/file_binary_writer.cpp
src/file_writer.cpp
Expand Down
1 change: 1 addition & 0 deletions include/flatbuffers/idl.h
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ struct IDLOptions {
kNim = 1 << 17,
kProto = 1 << 18,
kKotlinKmp = 1 << 19,
kUe = 1 << 20,
kMAX
};

Expand Down
2 changes: 2 additions & 0 deletions src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ cc_library(
"idl_gen_text.h",
"idl_gen_ts.cpp",
"idl_gen_ts.h",
"idl_gen_ue.cpp",
"idl_gen_ue.h",
"idl_namer.h",
"namer.h",
"util.cpp",
Expand Down
6 changes: 6 additions & 0 deletions src/flatc_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "idl_gen_swift.h"
#include "idl_gen_text.h"
#include "idl_gen_ts.h"
#include "idl_gen_ue.h"

static const char *g_program_name = nullptr;

Expand Down Expand Up @@ -175,6 +176,11 @@ int main(int argc, const char *argv[]) {
"Generate TypeScript code for tables/structs" },
flatbuffers::NewTsCodeGenerator());

flatc.RegisterCodeGenerator(
flatbuffers::FlatCOption{ "ue", "ue", "",
"Generate ue headers for tables/structs" },
flatbuffers::NewUeCodeGenerator());

// Create the FlatC options by parsing the command line arguments.
const flatbuffers::FlatCOptions &options =
flatc.ParseFromCommandLineArguments(argc, argv);
Expand Down
Loading