2017-01-30 21:40:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# find root
|
|
|
|
cd `dirname $PWD/$0` ; cd ..
|
|
|
|
#TODO: add support for ccache
|
|
|
|
|
|
|
|
# XXX. fails with >1
|
|
|
|
[ -z "${MAKE_JOBS}" ] && MAKE_JOBS=8
|
|
|
|
|
|
|
|
OLD_LDFLAGS="${LDFLAGS}"
|
|
|
|
unset LDFLAGS
|
|
|
|
|
|
|
|
export CC="emcc -Os -s WASM=1 -s SIDE_MODULE=1"
|
|
|
|
export AR="emar"
|
|
|
|
|
2018-05-28 15:14:49 +00:00
|
|
|
CFGFLAGS="./configure --prefix=/usr --disable-debugger --with-compiler=wasm --with-libr"
|
2017-01-30 21:40:57 +00:00
|
|
|
|
|
|
|
make mrproper
|
Fix the CI badge and fully rewrite all the workflows to make sense ##build
* Windows, Linux, Static, macOS, Android, iOS builds published for every commit
* Kept coverage, coverity, fuzzing tests, lgtm and -Werror jobs
* Kill the continuos, the over-engineered matrix and other empty or unnecessary tasks (250 vs 900LOC)
* Jobs TODO: fatmac, termux and rpm (centos) packages
2021-01-12 12:41:21 +00:00
|
|
|
cp -f dist/plugins-cfg/plugins.emscripten.cfg plugins.cfg
|
2017-01-30 21:40:57 +00:00
|
|
|
./configure-plugins
|
|
|
|
|
|
|
|
./configure ${CFGFLAGS} --host=wasm && \
|
|
|
|
make -s -j ${MAKE_JOBS} DEBUG=0
|