From: Waldemar Kozaczuk <jwkozac...@gmail.com> Committer: Waldemar Kozaczuk <jwkozac...@gmail.com> Branch: master
rapidjson: fast C++ library to process JSON The main purpose of this new app (https://rapidjson.org/index.html) is to run its unit tests to verify that its optimization technique to pack extra data in the last 16 bits of the 64-bit addresses works correctly on OSv. Signe-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com> --- diff --git a/rapidjson/Makefile b/rapidjson/Makefile --- a/rapidjson/Makefile +++ b/rapidjson/Makefile @@ -0,0 +1,19 @@ +SRC = $(shell readlink -f ../..) + +upstream/rapidjson/.git: + mkdir -p upstream + cd upstream && git clone --depth 1 https://github.com/Tencent/rapidjson.git + cd upstream/rapidjson && git submodule update --init + +upstream/rapidjson/build/bin/unittest: upstream/rapidjson/.git + mkdir -p upstream/rapidjson/build + cd upstream/rapidjson/build && cmake .. + cd upstream/rapidjson/build && $(MAKE) + +module: upstream/rapidjson/build/bin/unittest + $(SRC)/scripts/manifest_from_host.sh upstream/rapidjson/build/bin/unittest > usr.manifest + echo "/bin/**: ${SRC}/apps/rapidjson/upstream/rapidjson/bin/**" >> usr.manifest + strip upstream/rapidjson/build/bin/unittest + +clean: + rm -rf upstream usr.manifest diff --git a/rapidjson/module.py b/rapidjson/module.py --- a/rapidjson/module.py +++ b/rapidjson/module.py @@ -0,0 +1,2 @@ +from osv.modules import api +default = api.run('/unittest') -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/000000000000802bdf05eaee6e68%40google.com.