build-scripts/emscripten-buildbot.sh
changeset 9288 573ebcb470a3
parent 9285 559ac7dd4ee4
child 10311 848951113551
equal deleted inserted replaced
9287:644bf5f51d5c 9288:573ebcb470a3
    45 
    45 
    46 echo "Setting up..."
    46 echo "Setting up..."
    47 set -x
    47 set -x
    48 cd "$SDLBASE"
    48 cd "$SDLBASE"
    49 rm -rf buildbot
    49 rm -rf buildbot
    50 rm -rf emscripten-sdl2-installed
       
    51 mkdir buildbot
    50 mkdir buildbot
    52 pushd buildbot
    51 pushd buildbot
    53 
    52 
    54 echo "Configuring..."
    53 echo "Configuring..."
    55 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"
    54 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="$PWD/emscripten-sdl2-installed"
    56 
    55 
    57 echo "Building..."
    56 echo "Building..."
    58 emmake $MAKE
    57 emmake $MAKE
    59 
    58 
    60 echo "Moving things around..."
    59 echo "Moving things around..."
    61 emmake $MAKE install
    60 emmake $MAKE install
    62 # Fix up a few things to a real install path
    61 # Fix up a few things to a real install path
    63 perl -w -pi -e "s#$SDLBASE/emscripten-sdl2-installed#/usr/local#g;" ./emscripten-sdl2-installed/lib/libSDL2.la ./emscripten-sdl2-installed/lib/pkgconfig/sdl2.pc ./emscripten-sdl2-installed/bin/sdl2-config
    62 perl -w -pi -e "s#$PWD/emscripten-sdl2-installed#/usr/local#g;" ./emscripten-sdl2-installed/lib/libSDL2.la ./emscripten-sdl2-installed/lib/pkgconfig/sdl2.pc ./emscripten-sdl2-installed/bin/sdl2-config
    64 mkdir -p ./usr
    63 mkdir -p ./usr
    65 mv "$SDLBASE/emscripten-sdl2-installed" ./usr/local
    64 mv ./emscripten-sdl2-installed ./usr/local
    66 popd
    65 popd
    67 tar -cJvvf $TARBALL -C buildbot usr
    66 tar -cJvvf $TARBALL -C buildbot usr
    68 rm -rf buildbot
    67 rm -rf buildbot
    69 
    68 
    70 exit 0
    69 exit 0