From 4e90290addfe7bc659fdb8a5f2ab509e8d3c961f Mon Sep 17 00:00:00 2001 From: Martin Fouilleul Date: Mon, 26 Jun 2023 11:13:09 +0200 Subject: [PATCH] [build] check if wasm3/milepost dependencies are present and build them otherwise --- build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.sh b/build.sh index 40cebb7..ee208de 100755 --- a/build.sh +++ b/build.sh @@ -39,6 +39,14 @@ elif [ $target = wasm3 ] ; then elif [ $target = orca ] ; then echo "building orca" + if [ ! \( -e milepost/bin/libmilepost.dylib \) -o ! \( -e milepost/bin/mtl_renderer.metallib \) ] ; then + ./build.sh milepost + fi + + if [ ! \( -e ./bin/libwasm3.a \) ] ; then + ./build.sh wasm3 + fi + # copy libraries cp milepost/bin/mtl_renderer.metallib bin/ cp milepost/bin/libmilepost.dylib bin/