diff options
author | dcherednik <dcherednik@ydb.tech> | 2022-10-26 16:40:35 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2022-10-26 16:40:35 +0300 |
commit | b981cca279190176740c3bf5c5b4fd03be51b599 (patch) | |
tree | f5ec6210fdce0e976cbbe4dc8ae78bb6509adf49 /contrib/tools/protoc | |
parent | 6dc0de995652f7eeecdbdb88dc98b00bb0653a2f (diff) | |
download | ydb-b981cca279190176740c3bf5c5b4fd03be51b599.tar.gz |
Enable linux-arm platform.
Diffstat (limited to 'contrib/tools/protoc')
6 files changed, 113 insertions, 3 deletions
diff --git a/contrib/tools/protoc/bin/CMakeLists.linux-aarch64.txt b/contrib/tools/protoc/bin/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..5bb72ed477 --- /dev/null +++ b/contrib/tools/protoc/bin/CMakeLists.linux-aarch64.txt @@ -0,0 +1,33 @@ + +# This file was gererated 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(protoc) +target_compile_options(protoc PRIVATE + -Wno-everything +) +target_link_libraries(protoc PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-lfalloc + contrib-libs-protoc +) +target_link_options(protoc PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(protoc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/protoc/src/google/protobuf/compiler/main.cc +) +vcs_info(protoc) diff --git a/contrib/tools/protoc/bin/CMakeLists.txt b/contrib/tools/protoc/bin/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/tools/protoc/bin/CMakeLists.txt +++ b/contrib/tools/protoc/bin/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.linux-aarch64.txt b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..bdbe8b7934 --- /dev/null +++ b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.linux-aarch64.txt @@ -0,0 +1,33 @@ + +# This file was gererated 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(cpp_styleguide) +target_compile_options(cpp_styleguide PRIVATE + -Wno-everything +) +target_link_libraries(cpp_styleguide PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-lfalloc + contrib-libs-protoc +) +target_link_options(cpp_styleguide PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(cpp_styleguide PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/tools/protoc/plugins/cpp_styleguide/cpp_styleguide.cpp +) +vcs_info(cpp_styleguide) diff --git a/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt +++ b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.linux-aarch64.txt b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.linux-aarch64.txt new file mode 100644 index 0000000000..92bbb54766 --- /dev/null +++ b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.linux-aarch64.txt @@ -0,0 +1,38 @@ + +# This file was gererated 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(grpc_cpp) +target_compile_options(grpc_cpp PRIVATE + -DGRPC_USE_ABSL=0 + -Wno-everything +) +target_include_directories(grpc_cpp PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/grpc + ${CMAKE_SOURCE_DIR}/contrib/libs/grpc/include +) +target_link_libraries(grpc_cpp PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-lfalloc + src-compiler-grpc_plugin_support +) +target_link_options(grpc_cpp PRIVATE + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -fPIC + -lpthread + -lrt + -ldl +) +target_sources(grpc_cpp PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/grpc/src/compiler/cpp_plugin.cc +) +vcs_info(grpc_cpp) diff --git a/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt index 79468a5d8d..3e0811fb22 100644 --- a/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt +++ b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) |