aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
committeralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
commitbf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch)
tree1d1df72c0541a59a81439842f46d95396d3e7189 /library/cpp/json
parent8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff)
downloadydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz
add ymake export to ydb
Diffstat (limited to 'library/cpp/json')
-rw-r--r--library/cpp/json/common/ya.make7
-rw-r--r--library/cpp/json/converter/ut/ya.make14
-rw-r--r--library/cpp/json/converter/ya.make15
-rw-r--r--library/cpp/json/easy_parse/ya.make11
-rw-r--r--library/cpp/json/fast_sax/ya.make12
-rw-r--r--library/cpp/json/fuzzy_test/ya.make11
-rw-r--r--library/cpp/json/ut/ya.make15
-rw-r--r--library/cpp/json/writer/ut/ya.make14
-rw-r--r--library/cpp/json/writer/ya.make18
-rw-r--r--library/cpp/json/ya.make26
-rw-r--r--library/cpp/json/yson/ut/ya.make23
-rw-r--r--library/cpp/json/yson/ya.make17
12 files changed, 183 insertions, 0 deletions
diff --git a/library/cpp/json/common/ya.make b/library/cpp/json/common/ya.make
new file mode 100644
index 0000000000..ae064167e6
--- /dev/null
+++ b/library/cpp/json/common/ya.make
@@ -0,0 +1,7 @@
+LIBRARY()
+
+SRCS(
+ defs.cpp
+)
+
+END()
diff --git a/library/cpp/json/converter/ut/ya.make b/library/cpp/json/converter/ut/ya.make
new file mode 100644
index 0000000000..15c555d3d4
--- /dev/null
+++ b/library/cpp/json/converter/ut/ya.make
@@ -0,0 +1,14 @@
+UNITTEST_FOR(library/cpp/json/converter)
+
+SIZE(SMALL)
+
+SRCS(
+ test_conversion.cpp
+)
+
+PEERDIR(
+ library/cpp/json
+ library/cpp/json/writer
+)
+
+END()
diff --git a/library/cpp/json/converter/ya.make b/library/cpp/json/converter/ya.make
new file mode 100644
index 0000000000..0458d1cefa
--- /dev/null
+++ b/library/cpp/json/converter/ya.make
@@ -0,0 +1,15 @@
+LIBRARY()
+
+SRCS(
+ converter.cpp
+)
+
+PEERDIR(
+ library/cpp/json/writer
+)
+
+END()
+
+RECURSE_FOR_TESTS(
+ ut
+)
diff --git a/library/cpp/json/easy_parse/ya.make b/library/cpp/json/easy_parse/ya.make
new file mode 100644
index 0000000000..89a2d5bd84
--- /dev/null
+++ b/library/cpp/json/easy_parse/ya.make
@@ -0,0 +1,11 @@
+LIBRARY()
+
+SRCS(
+ json_easy_parser.cpp
+)
+
+PEERDIR(
+ library/cpp/json
+)
+
+END()
diff --git a/library/cpp/json/fast_sax/ya.make b/library/cpp/json/fast_sax/ya.make
new file mode 100644
index 0000000000..2b6aaab19c
--- /dev/null
+++ b/library/cpp/json/fast_sax/ya.make
@@ -0,0 +1,12 @@
+LIBRARY()
+
+PEERDIR(
+ library/cpp/json/common
+)
+
+SRCS(
+ parser.rl6
+ unescape.cpp
+)
+
+END()
diff --git a/library/cpp/json/fuzzy_test/ya.make b/library/cpp/json/fuzzy_test/ya.make
new file mode 100644
index 0000000000..224f3ab6f2
--- /dev/null
+++ b/library/cpp/json/fuzzy_test/ya.make
@@ -0,0 +1,11 @@
+FUZZ()
+
+PEERDIR(
+ library/cpp/json
+)
+
+SRCS(
+ main.cpp
+)
+
+END()
diff --git a/library/cpp/json/ut/ya.make b/library/cpp/json/ut/ya.make
new file mode 100644
index 0000000000..1f14dd8f6f
--- /dev/null
+++ b/library/cpp/json/ut/ya.make
@@ -0,0 +1,15 @@
+UNITTEST_FOR(library/cpp/json)
+
+PEERDIR(
+ library/cpp/string_utils/relaxed_escaper
+)
+
+SRCS(
+ json_reader_fast_ut.cpp
+ json_reader_ut.cpp
+ json_prettifier_ut.cpp
+ json_writer_ut.cpp
+ json_saveload_ut.cpp
+)
+
+END()
diff --git a/library/cpp/json/writer/ut/ya.make b/library/cpp/json/writer/ut/ya.make
new file mode 100644
index 0000000000..256b950a6e
--- /dev/null
+++ b/library/cpp/json/writer/ut/ya.make
@@ -0,0 +1,14 @@
+UNITTEST()
+
+PEERDIR(
+ ADDINCL library/cpp/json/writer
+)
+
+SRCDIR(library/cpp/json/writer)
+
+SRCS(
+ json_ut.cpp
+ json_value_ut.cpp
+)
+
+END()
diff --git a/library/cpp/json/writer/ya.make b/library/cpp/json/writer/ya.make
new file mode 100644
index 0000000000..15340ed6dc
--- /dev/null
+++ b/library/cpp/json/writer/ya.make
@@ -0,0 +1,18 @@
+LIBRARY()
+
+PEERDIR(
+ library/cpp/json/common
+)
+
+SRCS(
+ json_value.cpp
+ json.cpp
+)
+
+GENERATE_ENUM_SERIALIZATION(json_value.h)
+
+END()
+
+RECURSE_FOR_TESTS(
+ ut
+)
diff --git a/library/cpp/json/ya.make b/library/cpp/json/ya.make
new file mode 100644
index 0000000000..bdcf9a12c7
--- /dev/null
+++ b/library/cpp/json/ya.make
@@ -0,0 +1,26 @@
+LIBRARY()
+
+SRCS(
+ json_writer.cpp
+ json_reader.cpp
+ json_prettifier.cpp
+ rapidjson_helpers.cpp
+)
+
+PEERDIR(
+ contrib/libs/rapidjson
+ library/cpp/json/common
+ library/cpp/json/fast_sax
+ library/cpp/json/writer
+ library/cpp/string_utils/relaxed_escaper
+)
+
+END()
+
+RECURSE(
+ converter
+ fuzzy_test
+ ut
+ writer
+ yson
+)
diff --git a/library/cpp/json/yson/ut/ya.make b/library/cpp/json/yson/ut/ya.make
new file mode 100644
index 0000000000..8fce6dbe2f
--- /dev/null
+++ b/library/cpp/json/yson/ut/ya.make
@@ -0,0 +1,23 @@
+UNITTEST_FOR(library/cpp/json/yson)
+
+ALLOCATOR(LF)
+
+DATA(sbr://363537653)
+
+PEERDIR(
+ library/cpp/blockcodecs
+ library/cpp/histogram/simple
+ library/cpp/testing/unittest
+)
+
+SIZE(LARGE)
+
+TAG(ya:fat)
+
+TIMEOUT(600)
+
+SRCS(
+ json2yson_ut.cpp
+)
+
+END()
diff --git a/library/cpp/json/yson/ya.make b/library/cpp/json/yson/ya.make
new file mode 100644
index 0000000000..258a78efcc
--- /dev/null
+++ b/library/cpp/json/yson/ya.make
@@ -0,0 +1,17 @@
+LIBRARY()
+
+PEERDIR(
+ library/cpp/json
+ library/cpp/yson
+ library/cpp/yson/json
+)
+
+SRCS(
+ json2yson.cpp
+)
+
+END()
+
+RECURSE_FOR_TESTS(
+ ut
+)