[build] check if wasm3/milepost dependencies are present and build them otherwise

This commit is contained in:
Martin Fouilleul 2023-06-26 11:13:09 +02:00
parent abb37537e9
commit 4e90290add
1 changed files with 8 additions and 0 deletions

View File

@ -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/