Skip to content

Commit 26cff8c

Browse files
committed
add ode physics
1 parent 970309c commit 26cff8c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

sources.wasm/ode.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
4+
. ${CONFIG:-config}
5+
6+
. scripts/emsdk-fetch.sh
7+
8+
9+
if pushd ${ROOT}/src
10+
then
11+
if [ -d ODE-wasm ]
12+
then
13+
echo -n
14+
else
15+
git clone --recursive --no-tags --depth 1 --single-branch --branch python-wasm-sdk https://github.com/pygame-web/ODE-wasm
16+
fi
17+
18+
mkdir -p $ROOT/build/ode
19+
20+
pushd $ROOT/build/ode
21+
emcmake cmake -DCMAKE_INSTALL_PREFIX=$PREFIX \
22+
-DODE_NO_THREADING_INTF=OFF -DODE_NO_BUILTIN_THREADING_IMPL=OFF \
23+
-DODE_WITH_DEMOS=OFF ${ROOT}/src/ODE-wasm
24+
sed -i 's/#error/\/\/#warning/g' ode/src/config.h
25+
emmake make install
26+
popd
27+
28+
popd
29+
fi
30+

0 commit comments

Comments
 (0)