aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 15:49:59 +0300
commitb4cb34dfb2619f594d82e512fd9ff7fc97400133 (patch)
tree6a64ab25a145265287789bceed3f59e953561206 /library/cpp/json
parent5e837a820d5be0671fa4096a1cc1e378453e5132 (diff)
downloadydb-b4cb34dfb2619f594d82e512fd9ff7fc97400133.tar.gz
intermediate changes
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
Diffstat (limited to 'library/cpp/json')
-rw-r--r--library/cpp/json/CMakeLists.txt16
-rw-r--r--library/cpp/json/common/CMakeLists.txt8
-rw-r--r--library/cpp/json/easy_parse/CMakeLists.txt9
-rw-r--r--library/cpp/json/fast_sax/CMakeLists.txt14
-rw-r--r--library/cpp/json/writer/CMakeLists.txt16
-rw-r--r--library/cpp/json/yson/CMakeLists.txt11
6 files changed, 74 insertions, 0 deletions
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
+)