We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 970309c commit 26cff8cCopy full SHA for 26cff8c
sources.wasm/ode.sh
@@ -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
29
+fi
30
0 commit comments