diff options
author | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2022-12-15 19:25:15 +0300 |
commit | 0c31d97afd7858af5f8f858c8addf91655ca9ccc (patch) | |
tree | 4d8a246db168f7beaafcd06d486c034115c2123d /library/cpp/json | |
parent | d1d5f5e00df0dd6efc00880dd8283477fc643aaf (diff) | |
download | ydb-0c31d97afd7858af5f8f858c8addf91655ca9ccc.tar.gz |
Sync linux-headers instead of using system ones
Diffstat (limited to 'library/cpp/json')
24 files changed, 453 insertions, 85 deletions
diff --git a/library/cpp/json/CMakeLists.darwin.txt b/library/cpp/json/CMakeLists.darwin.txt new file mode 100644 index 00000000000..7b11a2bf41f --- /dev/null +++ b/library/cpp/json/CMakeLists.darwin.txt @@ -0,0 +1,30 @@ + +# 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_subdirectory(common) +add_subdirectory(easy_parse) +add_subdirectory(fast_sax) +add_subdirectory(writer) +add_subdirectory(yson) + +add_library(library-cpp-json) +target_link_libraries(library-cpp-json PUBLIC + contrib-libs-cxxsupp + yutil + contrib-libs-rapidjson + cpp-json-common + cpp-json-fast_sax + cpp-json-writer + cpp-string_utils-relaxed_escaper +) +target_sources(library-cpp-json PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/json_writer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/json_reader.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/json_prettifier.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/rapidjson_helpers.cpp +) diff --git a/library/cpp/json/CMakeLists.linux-aarch64.txt b/library/cpp/json/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..06ee88b57c5 --- /dev/null +++ b/library/cpp/json/CMakeLists.linux-aarch64.txt @@ -0,0 +1,31 @@ + +# 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_subdirectory(common) +add_subdirectory(easy_parse) +add_subdirectory(fast_sax) +add_subdirectory(writer) +add_subdirectory(yson) + +add_library(library-cpp-json) +target_link_libraries(library-cpp-json PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + contrib-libs-rapidjson + cpp-json-common + cpp-json-fast_sax + cpp-json-writer + cpp-string_utils-relaxed_escaper +) +target_sources(library-cpp-json PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/json_writer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/json_reader.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/json_prettifier.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/rapidjson_helpers.cpp +) diff --git a/library/cpp/json/CMakeLists.linux.txt b/library/cpp/json/CMakeLists.linux.txt new file mode 100644 index 00000000000..06ee88b57c5 --- /dev/null +++ b/library/cpp/json/CMakeLists.linux.txt @@ -0,0 +1,31 @@ + +# 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_subdirectory(common) +add_subdirectory(easy_parse) +add_subdirectory(fast_sax) +add_subdirectory(writer) +add_subdirectory(yson) + +add_library(library-cpp-json) +target_link_libraries(library-cpp-json PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + contrib-libs-rapidjson + cpp-json-common + cpp-json-fast_sax + cpp-json-writer + cpp-string_utils-relaxed_escaper +) +target_sources(library-cpp-json PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/json_writer.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/json_reader.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/json_prettifier.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/rapidjson_helpers.cpp +) diff --git a/library/cpp/json/CMakeLists.txt b/library/cpp/json/CMakeLists.txt index 7b11a2bf41f..3e0811fb22e 100644 --- a/library/cpp/json/CMakeLists.txt +++ b/library/cpp/json/CMakeLists.txt @@ -6,25 +6,10 @@ # original buildsystem will not be accepted. -add_subdirectory(common) -add_subdirectory(easy_parse) -add_subdirectory(fast_sax) -add_subdirectory(writer) -add_subdirectory(yson) - -add_library(library-cpp-json) -target_link_libraries(library-cpp-json PUBLIC - contrib-libs-cxxsupp - yutil - contrib-libs-rapidjson - cpp-json-common - cpp-json-fast_sax - cpp-json-writer - cpp-string_utils-relaxed_escaper -) -target_sources(library-cpp-json PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/json/json_writer.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/json/json_reader.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/json/json_prettifier.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/json/rapidjson_helpers.cpp -) +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) +endif() diff --git a/library/cpp/json/common/CMakeLists.darwin.txt b/library/cpp/json/common/CMakeLists.darwin.txt new file mode 100644 index 00000000000..59aa8f9da7b --- /dev/null +++ b/library/cpp/json/common/CMakeLists.darwin.txt @@ -0,0 +1,17 @@ + +# 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_library(cpp-json-common) +target_link_libraries(cpp-json-common PUBLIC + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-json-common PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/common/defs.cpp +) diff --git a/library/cpp/json/common/CMakeLists.linux-aarch64.txt b/library/cpp/json/common/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..2434cd2cbcc --- /dev/null +++ b/library/cpp/json/common/CMakeLists.linux-aarch64.txt @@ -0,0 +1,18 @@ + +# 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_library(cpp-json-common) +target_link_libraries(cpp-json-common PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-json-common PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/common/defs.cpp +) diff --git a/library/cpp/json/common/CMakeLists.linux.txt b/library/cpp/json/common/CMakeLists.linux.txt new file mode 100644 index 00000000000..2434cd2cbcc --- /dev/null +++ b/library/cpp/json/common/CMakeLists.linux.txt @@ -0,0 +1,18 @@ + +# 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_library(cpp-json-common) +target_link_libraries(cpp-json-common PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil +) +target_sources(cpp-json-common PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/common/defs.cpp +) diff --git a/library/cpp/json/common/CMakeLists.txt b/library/cpp/json/common/CMakeLists.txt index 59aa8f9da7b..3e0811fb22e 100644 --- a/library/cpp/json/common/CMakeLists.txt +++ b/library/cpp/json/common/CMakeLists.txt @@ -6,12 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-json-common) -target_link_libraries(cpp-json-common PUBLIC - contrib-libs-cxxsupp - yutil -) -target_sources(cpp-json-common PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/json/common/defs.cpp -) +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) +endif() diff --git a/library/cpp/json/easy_parse/CMakeLists.darwin.txt b/library/cpp/json/easy_parse/CMakeLists.darwin.txt new file mode 100644 index 00000000000..bcca8e35ca6 --- /dev/null +++ b/library/cpp/json/easy_parse/CMakeLists.darwin.txt @@ -0,0 +1,18 @@ + +# 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_library(cpp-json-easy_parse) +target_link_libraries(cpp-json-easy_parse PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-json +) +target_sources(cpp-json-easy_parse PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/easy_parse/json_easy_parser.cpp +) diff --git a/library/cpp/json/easy_parse/CMakeLists.linux-aarch64.txt b/library/cpp/json/easy_parse/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..e3f9bfd31ed --- /dev/null +++ b/library/cpp/json/easy_parse/CMakeLists.linux-aarch64.txt @@ -0,0 +1,19 @@ + +# 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_library(cpp-json-easy_parse) +target_link_libraries(cpp-json-easy_parse PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + library-cpp-json +) +target_sources(cpp-json-easy_parse PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/easy_parse/json_easy_parser.cpp +) diff --git a/library/cpp/json/easy_parse/CMakeLists.linux.txt b/library/cpp/json/easy_parse/CMakeLists.linux.txt new file mode 100644 index 00000000000..e3f9bfd31ed --- /dev/null +++ b/library/cpp/json/easy_parse/CMakeLists.linux.txt @@ -0,0 +1,19 @@ + +# 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_library(cpp-json-easy_parse) +target_link_libraries(cpp-json-easy_parse PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + library-cpp-json +) +target_sources(cpp-json-easy_parse PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/easy_parse/json_easy_parser.cpp +) diff --git a/library/cpp/json/easy_parse/CMakeLists.txt b/library/cpp/json/easy_parse/CMakeLists.txt index bcca8e35ca6..3e0811fb22e 100644 --- a/library/cpp/json/easy_parse/CMakeLists.txt +++ b/library/cpp/json/easy_parse/CMakeLists.txt @@ -6,13 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-json-easy_parse) -target_link_libraries(cpp-json-easy_parse PUBLIC - contrib-libs-cxxsupp - yutil - library-cpp-json -) -target_sources(cpp-json-easy_parse PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/json/easy_parse/json_easy_parser.cpp -) +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) +endif() diff --git a/library/cpp/json/fast_sax/CMakeLists.darwin.txt b/library/cpp/json/fast_sax/CMakeLists.darwin.txt new file mode 100644 index 00000000000..9561ffc2ac0 --- /dev/null +++ b/library/cpp/json/fast_sax/CMakeLists.darwin.txt @@ -0,0 +1,23 @@ + +# 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_library(cpp-json-fast_sax) +target_link_libraries(cpp-json-fast_sax PUBLIC + contrib-libs-cxxsupp + yutil + cpp-json-common +) +target_sources(cpp-json-fast_sax PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/fast_sax/unescape.cpp +) +target_ragel_lexers(cpp-json-fast_sax + PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/fast_sax/parser.rl6 + -CG2 +) diff --git a/library/cpp/json/fast_sax/CMakeLists.linux-aarch64.txt b/library/cpp/json/fast_sax/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..b49f1a82389 --- /dev/null +++ b/library/cpp/json/fast_sax/CMakeLists.linux-aarch64.txt @@ -0,0 +1,24 @@ + +# 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_library(cpp-json-fast_sax) +target_link_libraries(cpp-json-fast_sax PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-json-common +) +target_sources(cpp-json-fast_sax PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/fast_sax/unescape.cpp +) +target_ragel_lexers(cpp-json-fast_sax + PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/fast_sax/parser.rl6 + -CG2 +) diff --git a/library/cpp/json/fast_sax/CMakeLists.linux.txt b/library/cpp/json/fast_sax/CMakeLists.linux.txt new file mode 100644 index 00000000000..b49f1a82389 --- /dev/null +++ b/library/cpp/json/fast_sax/CMakeLists.linux.txt @@ -0,0 +1,24 @@ + +# 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_library(cpp-json-fast_sax) +target_link_libraries(cpp-json-fast_sax PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-json-common +) +target_sources(cpp-json-fast_sax PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/fast_sax/unescape.cpp +) +target_ragel_lexers(cpp-json-fast_sax + PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/fast_sax/parser.rl6 + -CG2 +) diff --git a/library/cpp/json/fast_sax/CMakeLists.txt b/library/cpp/json/fast_sax/CMakeLists.txt index 9561ffc2ac0..3e0811fb22e 100644 --- a/library/cpp/json/fast_sax/CMakeLists.txt +++ b/library/cpp/json/fast_sax/CMakeLists.txt @@ -6,18 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-json-fast_sax) -target_link_libraries(cpp-json-fast_sax PUBLIC - contrib-libs-cxxsupp - yutil - cpp-json-common -) -target_sources(cpp-json-fast_sax PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/json/fast_sax/unescape.cpp -) -target_ragel_lexers(cpp-json-fast_sax - PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/json/fast_sax/parser.rl6 - -CG2 -) +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) +endif() diff --git a/library/cpp/json/writer/CMakeLists.darwin.txt b/library/cpp/json/writer/CMakeLists.darwin.txt new file mode 100644 index 00000000000..722b40fd492 --- /dev/null +++ b/library/cpp/json/writer/CMakeLists.darwin.txt @@ -0,0 +1,25 @@ + +# 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_library(cpp-json-writer) +target_link_libraries(cpp-json-writer PUBLIC + contrib-libs-cxxsupp + yutil + cpp-json-common + tools-enum_parser-enum_serialization_runtime +) +target_sources(cpp-json-writer PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json_value.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json.cpp +) +generate_enum_serilization(cpp-json-writer + ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json_value.h + INCLUDE_HEADERS + library/cpp/json/writer/json_value.h +) diff --git a/library/cpp/json/writer/CMakeLists.linux-aarch64.txt b/library/cpp/json/writer/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..67c81d8e702 --- /dev/null +++ b/library/cpp/json/writer/CMakeLists.linux-aarch64.txt @@ -0,0 +1,26 @@ + +# 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_library(cpp-json-writer) +target_link_libraries(cpp-json-writer PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-json-common + tools-enum_parser-enum_serialization_runtime +) +target_sources(cpp-json-writer PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json_value.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json.cpp +) +generate_enum_serilization(cpp-json-writer + ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json_value.h + INCLUDE_HEADERS + library/cpp/json/writer/json_value.h +) diff --git a/library/cpp/json/writer/CMakeLists.linux.txt b/library/cpp/json/writer/CMakeLists.linux.txt new file mode 100644 index 00000000000..67c81d8e702 --- /dev/null +++ b/library/cpp/json/writer/CMakeLists.linux.txt @@ -0,0 +1,26 @@ + +# 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_library(cpp-json-writer) +target_link_libraries(cpp-json-writer PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-json-common + tools-enum_parser-enum_serialization_runtime +) +target_sources(cpp-json-writer PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json_value.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json.cpp +) +generate_enum_serilization(cpp-json-writer + ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json_value.h + INCLUDE_HEADERS + library/cpp/json/writer/json_value.h +) diff --git a/library/cpp/json/writer/CMakeLists.txt b/library/cpp/json/writer/CMakeLists.txt index 722b40fd492..3e0811fb22e 100644 --- a/library/cpp/json/writer/CMakeLists.txt +++ b/library/cpp/json/writer/CMakeLists.txt @@ -6,20 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-json-writer) -target_link_libraries(cpp-json-writer PUBLIC - contrib-libs-cxxsupp - yutil - cpp-json-common - tools-enum_parser-enum_serialization_runtime -) -target_sources(cpp-json-writer PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json_value.cpp - ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json.cpp -) -generate_enum_serilization(cpp-json-writer - ${CMAKE_SOURCE_DIR}/library/cpp/json/writer/json_value.h - INCLUDE_HEADERS - library/cpp/json/writer/json_value.h -) +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) +endif() diff --git a/library/cpp/json/yson/CMakeLists.darwin.txt b/library/cpp/json/yson/CMakeLists.darwin.txt new file mode 100644 index 00000000000..6418ceacba4 --- /dev/null +++ b/library/cpp/json/yson/CMakeLists.darwin.txt @@ -0,0 +1,20 @@ + +# 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_library(cpp-json-yson) +target_link_libraries(cpp-json-yson PUBLIC + contrib-libs-cxxsupp + yutil + library-cpp-json + library-cpp-yson + cpp-yson-json +) +target_sources(cpp-json-yson PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/yson/json2yson.cpp +) diff --git a/library/cpp/json/yson/CMakeLists.linux-aarch64.txt b/library/cpp/json/yson/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..151fb4312d3 --- /dev/null +++ b/library/cpp/json/yson/CMakeLists.linux-aarch64.txt @@ -0,0 +1,21 @@ + +# 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_library(cpp-json-yson) +target_link_libraries(cpp-json-yson PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + library-cpp-json + library-cpp-yson + cpp-yson-json +) +target_sources(cpp-json-yson PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/yson/json2yson.cpp +) diff --git a/library/cpp/json/yson/CMakeLists.linux.txt b/library/cpp/json/yson/CMakeLists.linux.txt new file mode 100644 index 00000000000..151fb4312d3 --- /dev/null +++ b/library/cpp/json/yson/CMakeLists.linux.txt @@ -0,0 +1,21 @@ + +# 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_library(cpp-json-yson) +target_link_libraries(cpp-json-yson PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + library-cpp-json + library-cpp-yson + cpp-yson-json +) +target_sources(cpp-json-yson PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/json/yson/json2yson.cpp +) diff --git a/library/cpp/json/yson/CMakeLists.txt b/library/cpp/json/yson/CMakeLists.txt index 6418ceacba4..3e0811fb22e 100644 --- a/library/cpp/json/yson/CMakeLists.txt +++ b/library/cpp/json/yson/CMakeLists.txt @@ -6,15 +6,10 @@ # original buildsystem will not be accepted. - -add_library(cpp-json-yson) -target_link_libraries(cpp-json-yson PUBLIC - contrib-libs-cxxsupp - yutil - library-cpp-json - library-cpp-yson - cpp-yson-json -) -target_sources(cpp-json-yson PRIVATE - ${CMAKE_SOURCE_DIR}/library/cpp/json/yson/json2yson.cpp -) +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) +endif() |