diff options
author | reshilkin <reshilkin@yandex-team.com> | 2023-08-02 13:42:42 +0300 |
---|---|---|
committer | reshilkin <reshilkin@yandex-team.com> | 2023-08-02 13:42:42 +0300 |
commit | 9355caf367a5fa8b2658dc09120a181e17e88646 (patch) | |
tree | edb8bd5125d918304808f1161f8f9a58acd623e8 /contrib/libs/flatbuffers/flatc | |
parent | 65d926376d67e796c234da615753ab7c16021560 (diff) | |
download | ydb-9355caf367a5fa8b2658dc09120a181e17e88646.tar.gz |
Auto code-generation for .fbs.h in arrow
Diffstat (limited to 'contrib/libs/flatbuffers/flatc')
6 files changed, 283 insertions, 0 deletions
diff --git a/contrib/libs/flatbuffers/flatc/CMakeLists.darwin-x86_64.txt b/contrib/libs/flatbuffers/flatc/CMakeLists.darwin-x86_64.txt new file mode 100644 index 0000000000..ee54cbf098 --- /dev/null +++ b/contrib/libs/flatbuffers/flatc/CMakeLists.darwin-x86_64.txt @@ -0,0 +1,52 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-flatbuffers-flatc) +target_compile_options(libs-flatbuffers-flatc PRIVATE + -DFLATBUFFERS_LOCALE_INDEPENDENT=1 + $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything> +) +target_include_directories(libs-flatbuffers-flatc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/include +) +target_link_libraries(libs-flatbuffers-flatc PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-flatbuffers-flatc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/cpp_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/go_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/java_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/python_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/swift_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/ts_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/code_generators.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/flatc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_cpp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_cpp_yandex_maps_iter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_csharp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_dart.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_fbs.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_go.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_grpc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_java.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_json_schema.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_kotlin.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_lobster.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_lua.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_php.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_python.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_rust.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_swift.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_text.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_ts.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_parser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/reflection.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/util.cpp +) diff --git a/contrib/libs/flatbuffers/flatc/CMakeLists.linux-aarch64.txt b/contrib/libs/flatbuffers/flatc/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..cae0280fd9 --- /dev/null +++ b/contrib/libs/flatbuffers/flatc/CMakeLists.linux-aarch64.txt @@ -0,0 +1,53 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-flatbuffers-flatc) +target_compile_options(libs-flatbuffers-flatc PRIVATE + -DFLATBUFFERS_LOCALE_INDEPENDENT=1 + $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything> +) +target_include_directories(libs-flatbuffers-flatc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/include +) +target_link_libraries(libs-flatbuffers-flatc PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp +) +target_sources(libs-flatbuffers-flatc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/cpp_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/go_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/java_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/python_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/swift_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/ts_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/code_generators.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/flatc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_cpp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_cpp_yandex_maps_iter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_csharp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_dart.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_fbs.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_go.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_grpc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_java.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_json_schema.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_kotlin.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_lobster.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_lua.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_php.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_python.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_rust.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_swift.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_text.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_ts.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_parser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/reflection.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/util.cpp +) diff --git a/contrib/libs/flatbuffers/flatc/CMakeLists.linux-x86_64.txt b/contrib/libs/flatbuffers/flatc/CMakeLists.linux-x86_64.txt new file mode 100644 index 0000000000..cae0280fd9 --- /dev/null +++ b/contrib/libs/flatbuffers/flatc/CMakeLists.linux-x86_64.txt @@ -0,0 +1,53 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-flatbuffers-flatc) +target_compile_options(libs-flatbuffers-flatc PRIVATE + -DFLATBUFFERS_LOCALE_INDEPENDENT=1 + $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything> +) +target_include_directories(libs-flatbuffers-flatc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/include +) +target_link_libraries(libs-flatbuffers-flatc PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp +) +target_sources(libs-flatbuffers-flatc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/cpp_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/go_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/java_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/python_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/swift_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/ts_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/code_generators.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/flatc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_cpp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_cpp_yandex_maps_iter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_csharp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_dart.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_fbs.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_go.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_grpc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_java.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_json_schema.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_kotlin.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_lobster.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_lua.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_php.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_python.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_rust.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_swift.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_text.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_ts.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_parser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/reflection.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/util.cpp +) diff --git a/contrib/libs/flatbuffers/flatc/CMakeLists.txt b/contrib/libs/flatbuffers/flatc/CMakeLists.txt new file mode 100644 index 0000000000..f8b31df0c1 --- /dev/null +++ b/contrib/libs/flatbuffers/flatc/CMakeLists.txt @@ -0,0 +1,17 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND NOT HAVE_CUDA) + include(CMakeLists.linux-aarch64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") + include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) + include(CMakeLists.linux-x86_64.txt) +endif() diff --git a/contrib/libs/flatbuffers/flatc/CMakeLists.windows-x86_64.txt b/contrib/libs/flatbuffers/flatc/CMakeLists.windows-x86_64.txt new file mode 100644 index 0000000000..ee54cbf098 --- /dev/null +++ b/contrib/libs/flatbuffers/flatc/CMakeLists.windows-x86_64.txt @@ -0,0 +1,52 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(libs-flatbuffers-flatc) +target_compile_options(libs-flatbuffers-flatc PRIVATE + -DFLATBUFFERS_LOCALE_INDEPENDENT=1 + $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything> +) +target_include_directories(libs-flatbuffers-flatc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/include +) +target_link_libraries(libs-flatbuffers-flatc PUBLIC + contrib-libs-cxxsupp +) +target_sources(libs-flatbuffers-flatc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/cpp_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/go_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/java_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/python_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/swift_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/grpc/src/compiler/ts_generator.cc + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/code_generators.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/flatc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_cpp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_cpp_yandex_maps_iter.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_csharp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_dart.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_fbs.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_go.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_grpc.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_java.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_json_schema.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_kotlin.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_lobster.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_lua.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_php.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_python.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_rust.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_swift.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_text.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_gen_ts.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/idl_parser.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/reflection.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/util.cpp +) diff --git a/contrib/libs/flatbuffers/flatc/ya.make b/contrib/libs/flatbuffers/flatc/ya.make new file mode 100644 index 0000000000..7186851a35 --- /dev/null +++ b/contrib/libs/flatbuffers/flatc/ya.make @@ -0,0 +1,56 @@ +# Generated by devtools/yamaker. + +LIBRARY() + +WITHOUT_LICENSE_TEXTS() + +LICENSE(Apache-2.0) + +ADDINCL( + contrib/libs/flatbuffers/grpc + contrib/libs/flatbuffers/include +) + +NO_COMPILER_WARNINGS() + +NO_UTIL() + +CFLAGS( + -DFLATBUFFERS_LOCALE_INDEPENDENT=1 +) + +SRCDIR(contrib/libs/flatbuffers) + +SRCS( + grpc/src/compiler/cpp_generator.cc + grpc/src/compiler/go_generator.cc + grpc/src/compiler/java_generator.cc + grpc/src/compiler/python_generator.cc + grpc/src/compiler/swift_generator.cc + grpc/src/compiler/ts_generator.cc + src/code_generators.cpp + src/flatc.cpp + src/idl_gen_cpp.cpp + src/idl_gen_cpp_yandex_maps_iter.cpp + src/idl_gen_csharp.cpp + src/idl_gen_dart.cpp + src/idl_gen_fbs.cpp + src/idl_gen_go.cpp + src/idl_gen_grpc.cpp + src/idl_gen_java.cpp + src/idl_gen_json_schema.cpp + src/idl_gen_kotlin.cpp + src/idl_gen_lobster.cpp + src/idl_gen_lua.cpp + src/idl_gen_php.cpp + src/idl_gen_python.cpp + src/idl_gen_rust.cpp + src/idl_gen_swift.cpp + src/idl_gen_text.cpp + src/idl_gen_ts.cpp + src/idl_parser.cpp + src/reflection.cpp + src/util.cpp +) + +END() |