aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools
diff options
context:
space:
mode:
authorreshilkin <reshilkin@yandex-team.com>2023-08-02 13:42:42 +0300
committerreshilkin <reshilkin@yandex-team.com>2023-08-02 13:42:42 +0300
commit9355caf367a5fa8b2658dc09120a181e17e88646 (patch)
treeedb8bd5125d918304808f1161f8f9a58acd623e8 /contrib/tools
parent65d926376d67e796c234da615753ab7c16021560 (diff)
downloadydb-9355caf367a5fa8b2658dc09120a181e17e88646.tar.gz
Auto code-generation for .fbs.h in arrow
Diffstat (limited to 'contrib/tools')
-rw-r--r--contrib/tools/CMakeLists.txt1
-rw-r--r--contrib/tools/flatc/CMakeLists.txt9
-rw-r--r--contrib/tools/flatc/bin/CMakeLists.darwin-x86_64.txt29
-rw-r--r--contrib/tools/flatc/bin/CMakeLists.linux-aarch64.txt33
-rw-r--r--contrib/tools/flatc/bin/CMakeLists.linux-x86_64.txt34
-rw-r--r--contrib/tools/flatc/bin/CMakeLists.txt17
-rw-r--r--contrib/tools/flatc/bin/CMakeLists.windows-x86_64.txt24
-rw-r--r--contrib/tools/flatc/bin/ya.make23
-rw-r--r--contrib/tools/flatc/ya.make11
9 files changed, 181 insertions, 0 deletions
diff --git a/contrib/tools/CMakeLists.txt b/contrib/tools/CMakeLists.txt
index 38b046d368..c9f6133228 100644
--- a/contrib/tools/CMakeLists.txt
+++ b/contrib/tools/CMakeLists.txt
@@ -6,4 +6,5 @@
# original buildsystem will not be accepted.
+add_subdirectory(flatc)
add_subdirectory(protoc)
diff --git a/contrib/tools/flatc/CMakeLists.txt b/contrib/tools/flatc/CMakeLists.txt
new file mode 100644
index 0000000000..94c55d2b57
--- /dev/null
+++ b/contrib/tools/flatc/CMakeLists.txt
@@ -0,0 +1,9 @@
+
+# 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_subdirectory(bin)
diff --git a/contrib/tools/flatc/bin/CMakeLists.darwin-x86_64.txt b/contrib/tools/flatc/bin/CMakeLists.darwin-x86_64.txt
new file mode 100644
index 0000000000..a8baf04410
--- /dev/null
+++ b/contrib/tools/flatc/bin/CMakeLists.darwin-x86_64.txt
@@ -0,0 +1,29 @@
+
+# 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_executable(flatc)
+target_include_directories(flatc PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/include
+)
+target_link_libraries(flatc PUBLIC
+ contrib-libs-cxxsupp
+ libs-flatbuffers-flatc
+)
+target_link_options(flatc PRIVATE
+ -Wl,-platform_version,macos,11.0,11.0
+ -fPIC
+ -fPIC
+)
+target_sources(flatc PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/flatc_main.cpp
+)
+target_allocator(flatc
+ system_allocator
+)
+vcs_info(flatc)
diff --git a/contrib/tools/flatc/bin/CMakeLists.linux-aarch64.txt b/contrib/tools/flatc/bin/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..83ac0382b9
--- /dev/null
+++ b/contrib/tools/flatc/bin/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,33 @@
+
+# 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_executable(flatc)
+target_include_directories(flatc PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/include
+)
+target_link_libraries(flatc PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ libs-flatbuffers-flatc
+)
+target_link_options(flatc PRIVATE
+ -ldl
+ -lrt
+ -Wl,--no-as-needed
+ -fPIC
+ -fPIC
+ -lpthread
+)
+target_sources(flatc PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/flatc_main.cpp
+)
+target_allocator(flatc
+ cpp-malloc-jemalloc
+)
+vcs_info(flatc)
diff --git a/contrib/tools/flatc/bin/CMakeLists.linux-x86_64.txt b/contrib/tools/flatc/bin/CMakeLists.linux-x86_64.txt
new file mode 100644
index 0000000000..bf662e0f79
--- /dev/null
+++ b/contrib/tools/flatc/bin/CMakeLists.linux-x86_64.txt
@@ -0,0 +1,34 @@
+
+# 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_executable(flatc)
+target_include_directories(flatc PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/include
+)
+target_link_libraries(flatc PUBLIC
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ libs-flatbuffers-flatc
+)
+target_link_options(flatc PRIVATE
+ -ldl
+ -lrt
+ -Wl,--no-as-needed
+ -fPIC
+ -fPIC
+ -lpthread
+)
+target_sources(flatc PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/flatc_main.cpp
+)
+target_allocator(flatc
+ cpp-malloc-tcmalloc
+ libs-tcmalloc-no_percpu_cache
+)
+vcs_info(flatc)
diff --git a/contrib/tools/flatc/bin/CMakeLists.txt b/contrib/tools/flatc/bin/CMakeLists.txt
new file mode 100644
index 0000000000..f8b31df0c1
--- /dev/null
+++ b/contrib/tools/flatc/bin/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/tools/flatc/bin/CMakeLists.windows-x86_64.txt b/contrib/tools/flatc/bin/CMakeLists.windows-x86_64.txt
new file mode 100644
index 0000000000..8e599c8795
--- /dev/null
+++ b/contrib/tools/flatc/bin/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,24 @@
+
+# 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_executable(flatc)
+target_include_directories(flatc PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/include
+)
+target_link_libraries(flatc PUBLIC
+ contrib-libs-cxxsupp
+ libs-flatbuffers-flatc
+)
+target_sources(flatc PRIVATE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/flatbuffers/src/flatc_main.cpp
+)
+target_allocator(flatc
+ system_allocator
+)
+vcs_info(flatc)
diff --git a/contrib/tools/flatc/bin/ya.make b/contrib/tools/flatc/bin/ya.make
new file mode 100644
index 0000000000..f94d2e6aa2
--- /dev/null
+++ b/contrib/tools/flatc/bin/ya.make
@@ -0,0 +1,23 @@
+PROGRAM(flatc)
+
+NO_UTIL()
+
+ADDINCL(
+ contrib/libs/flatbuffers/include
+)
+
+PEERDIR(
+ contrib/libs/flatbuffers/flatc
+)
+
+SRCDIR(
+ contrib/libs/flatbuffers/src
+)
+
+SRCS(
+ flatc_main.cpp
+)
+
+INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/flatc/ya.make.induced_deps)
+
+END()
diff --git a/contrib/tools/flatc/ya.make b/contrib/tools/flatc/ya.make
new file mode 100644
index 0000000000..93e5104a93
--- /dev/null
+++ b/contrib/tools/flatc/ya.make
@@ -0,0 +1,11 @@
+IF (USE_PREBUILT_TOOLS)
+ INCLUDE(${ARCADIA_ROOT}/build/prebuilt/contrib/tools/flatc/ya.make.prebuilt)
+ENDIF()
+
+IF (NOT PREBUILT)
+ INCLUDE(${ARCADIA_ROOT}/contrib/tools/flatc/bin/ya.make)
+ENDIF()
+
+RECURSE(
+ bin
+)