mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
A little more work on the Emscripten buildbot script.
Should upload tarballs now, etc.
This commit is contained in:
parent
f4bd828af5
commit
fc40516744
@ -7,6 +7,11 @@ if [ ! -f "$ENVSCRIPT" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
TARBALL="$1"
|
||||||
|
if [ -z $1 ]; then
|
||||||
|
TARBALL=sdl-emscripten.tar.xz
|
||||||
|
fi
|
||||||
|
|
||||||
cd `dirname "$0"`
|
cd `dirname "$0"`
|
||||||
cd ..
|
cd ..
|
||||||
SDLBASE=`pwd`
|
SDLBASE=`pwd`
|
||||||
@ -39,21 +44,26 @@ echo "Setting up Emscripten SDK environment..."
|
|||||||
source "$ENVSCRIPT"
|
source "$ENVSCRIPT"
|
||||||
|
|
||||||
echo "Setting up..."
|
echo "Setting up..."
|
||||||
set -e
|
|
||||||
set -x
|
set -x
|
||||||
cd "$SDLBASE"
|
cd "$SDLBASE"
|
||||||
rm -rf buildbot
|
rm -rf buildbot
|
||||||
|
rm -rf emscripten-sdl2-installed
|
||||||
mkdir buildbot
|
mkdir buildbot
|
||||||
cd buildbot
|
pushd buildbot
|
||||||
|
|
||||||
echo "Configuring..."
|
echo "Configuring..."
|
||||||
emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2 -Wno-warn-absolute-paths"
|
emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --enable-cpuinfo=false CFLAGS="-O2 -Wno-warn-absolute-paths -Wdeclaration-after-statement -Werror=declaration-after-statement" --prefix="$SDLBASE/emscripten-sdl2-installed"
|
||||||
|
|
||||||
echo "Building..."
|
echo "Building..."
|
||||||
emmake $MAKE
|
emmake $MAKE
|
||||||
|
|
||||||
set +x
|
echo "Moving things around..."
|
||||||
echo "Done! The library is in $SDLBASE/buildbot/build/.libs/libSDL2.a ..."
|
emmake $MAKE install
|
||||||
|
mkdir -p ./usr
|
||||||
|
mv "$SDLBASE/emscripten-sdl2-installed" ./usr/local
|
||||||
|
popd
|
||||||
|
tar -cJvvf $TARBALL -C buildbot usr
|
||||||
|
rm -rf buildbot
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user