Skip to content

Commit

Permalink
add ode physics
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Jan 29, 2024
1 parent 970309c commit 26cff8c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions sources.wasm/ode.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash


. ${CONFIG:-config}

. scripts/emsdk-fetch.sh


if pushd ${ROOT}/src
then
if [ -d ODE-wasm ]
then
echo -n
else
git clone --recursive --no-tags --depth 1 --single-branch --branch python-wasm-sdk https://github.com/pygame-web/ODE-wasm
fi

mkdir -p $ROOT/build/ode

pushd $ROOT/build/ode
emcmake cmake -DCMAKE_INSTALL_PREFIX=$PREFIX \
-DODE_NO_THREADING_INTF=OFF -DODE_NO_BUILTIN_THREADING_IMPL=OFF \
-DODE_WITH_DEMOS=OFF ${ROOT}/src/ODE-wasm
sed -i 's/#error/\/\/#warning/g' ode/src/config.h
emmake make install
popd

popd
fi

0 comments on commit 26cff8c

Please sign in to comment.