aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
committeralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
commit056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch)
tree4740980126f32e3af7937ba0ca5f83e59baa4ab0 /library/cpp/json
parent269126dcced1cc8b53eb4398b4a33e5142f10290 (diff)
downloadydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz
add library/cpp/actors, ymake build to ydb oss export
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
+)