Skip to content

Commit

Permalink
add rapidyaml-yaml and rapidyaml-json
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed May 29, 2024
1 parent 80ec44d commit 5e6961a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docker/static/testers/cpp-rapidyaml-json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

if [ ! -t 0 ]; then
# if input comes from stdin, ryml wants a `-`
ryml-parse-emit -j $@ -
else
ryml-parse-emit -j $@
fi
8 changes: 8 additions & 0 deletions docker/static/testers/cpp-rapidyaml-yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

if [ ! -t 0 ]; then
# if input comes from stdin, ryml wants a `-`
ryml-parse-emit $@ -
else
ryml-parse-emit $@
fi
5 changes: 5 additions & 0 deletions docker/static/utils/cpp-rapidyaml-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ cmake -S . -B ./build \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_BUILD_TYPE=Release
cmake --build ./build -j --target ryml-yaml-events
cmake --build ./build -j --target ryml-parse-emit

file=$(find ./build -name 'ryml-yaml-events*' -type f)
mkdir -p /build/bin/
cp -fav $file /build/bin/ryml-yaml-events

file=$(find ./build -name 'ryml-parse-emit*' -type f)
mkdir -p /build/bin/
cp -fav $file /build/bin/ryml-parse-emit
2 changes: 1 addition & 1 deletion list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ libraries:
#source: https://github.com/biojppm/rapidyaml/releases/download/v0.6.0/rapidyaml-0.6.0-src.tgz
source: https://github.com/biojppm/rapidyaml/archive/refs/heads/ts2.zip
build-script: cpp-rapidyaml-build.sh
tests: [event]
tests: [event, json, yaml]
cpp-rapidyamlengine:
<<: *static
name: rapidyamlengine
Expand Down

0 comments on commit 5e6961a

Please sign in to comment.