diff --git a/.gitmodules b/.gitmodules index 4faffc8..85040f9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -261,3 +261,6 @@ [submodule "libraries/yyjson"] path = libraries/yyjson url = https://github.com/ibireme/yyjson +[submodule "libraries/rapidjson"] + path = libraries/rapidjson + url = https://github.com/Tencent/rapidjson/ diff --git a/config.py b/config.py index d8ff1b1..e941538 100644 --- a/config.py +++ b/config.py @@ -1039,6 +1039,28 @@ def sparse_paths(self): Library('pcre2', [ "src/*", ]), + Library('rapidjson', [ + "include/rapidjson/document.h", + "include/rapidjson/schema.h", + "include/rapidjson/reader.h", + "test/unittest/readertest.cpp", + "include/rapidjson/rapidjson.h", + "test/unittest/schematest.cpp", + "test/unittest/valuetest.cpp", + "include/rapidjson/writer.h", + "include/rapidjson/pointer.h", + "include/rapidjson/internal/regex.h", + "test/unittest/pointertest.cpp", + "test/unittest/writertest.cpp", + "include/rapidjson/allocators.h", + "test/unittest/documenttest.cpp", + "include/rapidjson/prettywriter.h", + "test/perftest/rapidjsontest.cpp", + "include/rapidjson/internal/stack.h", + "include/rapidjson/encodings.h", + "include/rapidjson/internal/strtod.h", + "test/unittest/uritest.cpp", + ]), Library('sqlite', [ "src/sqliteInt.h", "src/vdbe.c", @@ -1169,7 +1191,9 @@ def sparse_paths(self): "lz4": ["xxHash"], "minizip-ng": ["xz"], "openjpeg": ["libpng", "libtiff", "Little-CMS", "zlib"], + "rapidjson": ["googletest"], #"protobuf": ["googletest"], + "yyjson": ["rapidjson"], # embeds test cases "zlib": ["minizip-ng"], "zstd": ["xxHash", "zlib"], } diff --git a/libraries/rapidjson b/libraries/rapidjson new file mode 160000 index 0000000..58c6938 --- /dev/null +++ b/libraries/rapidjson @@ -0,0 +1 @@ +Subproject commit 58c6938b73c8685d82905ed55ec5b59e8f163687