From b4cb34dfb2619f594d82e512fd9ff7fc97400133 Mon Sep 17 00:00:00 2001 From: arcadia-devtools <arcadia-devtools@yandex-team.ru> Date: Fri, 18 Feb 2022 15:49:59 +0300 Subject: intermediate changes ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3 --- library/cpp/json/CMakeLists.txt | 16 ++++++++++++++++ library/cpp/json/common/CMakeLists.txt | 8 ++++++++ library/cpp/json/easy_parse/CMakeLists.txt | 9 +++++++++ library/cpp/json/fast_sax/CMakeLists.txt | 14 ++++++++++++++ library/cpp/json/writer/CMakeLists.txt | 16 ++++++++++++++++ library/cpp/json/yson/CMakeLists.txt | 11 +++++++++++ 6 files changed, 74 insertions(+) create mode 100644 library/cpp/json/CMakeLists.txt create mode 100644 library/cpp/json/common/CMakeLists.txt create mode 100644 library/cpp/json/easy_parse/CMakeLists.txt create mode 100644 library/cpp/json/fast_sax/CMakeLists.txt create mode 100644 library/cpp/json/writer/CMakeLists.txt create mode 100644 library/cpp/json/yson/CMakeLists.txt (limited to 'library/cpp/json') diff --git a/library/cpp/json/CMakeLists.txt b/library/cpp/json/CMakeLists.txt new file mode 100644 index 0000000000..5f32cb5583 --- /dev/null +++ b/library/cpp/json/CMakeLists.txt @@ -0,0 +1,16 @@ +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/common/CMakeLists.txt b/library/cpp/json/common/CMakeLists.txt new file mode 100644 index 0000000000..730074dc4d --- /dev/null +++ b/library/cpp/json/common/CMakeLists.txt @@ -0,0 +1,8 @@ +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/easy_parse/CMakeLists.txt b/library/cpp/json/easy_parse/CMakeLists.txt new file mode 100644 index 0000000000..bec9ea18bd --- /dev/null +++ b/library/cpp/json/easy_parse/CMakeLists.txt @@ -0,0 +1,9 @@ +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/fast_sax/CMakeLists.txt b/library/cpp/json/fast_sax/CMakeLists.txt new file mode 100644 index 0000000000..863e6200af --- /dev/null +++ b/library/cpp/json/fast_sax/CMakeLists.txt @@ -0,0 +1,14 @@ +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/writer/CMakeLists.txt b/library/cpp/json/writer/CMakeLists.txt new file mode 100644 index 0000000000..42cb6251d0 --- /dev/null +++ b/library/cpp/json/writer/CMakeLists.txt @@ -0,0 +1,16 @@ +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/yson/CMakeLists.txt b/library/cpp/json/yson/CMakeLists.txt new file mode 100644 index 0000000000..ec953c9aa9 --- /dev/null +++ b/library/cpp/json/yson/CMakeLists.txt @@ -0,0 +1,11 @@ +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 +) -- cgit v1.2.3