diff options
author | 2023-02-26 19:40:37 +0100 | |
---|---|---|
committer | 2023-02-27 05:40:37 +1100 | |
commit | bd59a0d447b861982429905f186dee8b12f2e777 (patch) | |
tree | dc6341c8fb098818039127f758cf3eb0fade986a /3rdparty/SDL2/build-scripts/emscripten-buildbot.sh | |
parent | 28b03e92a84daf79eb3cef75c51c014b2f57807b (diff) |
Removed local copy of SDL source and update Android build support. (#10899)
* Removed SDL2 source.
* Updated gradle.
* Updated SDL2 Java support glue code.
* Increased minimum supported Android API version to 24.
* Updated required asset files for Android app.
* Added proper tag for Android logging.
* Added SDL2 hint to make BGFX work on Android.
Diffstat (limited to '3rdparty/SDL2/build-scripts/emscripten-buildbot.sh')
-rw-r--r-- | 3rdparty/SDL2/build-scripts/emscripten-buildbot.sh | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/3rdparty/SDL2/build-scripts/emscripten-buildbot.sh b/3rdparty/SDL2/build-scripts/emscripten-buildbot.sh deleted file mode 100644 index 42eebb69769..00000000000 --- a/3rdparty/SDL2/build-scripts/emscripten-buildbot.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/bash - -SDKDIR="/emsdk_portable" -ENVSCRIPT="$SDKDIR/emsdk_env.sh" -if [ ! -f "$ENVSCRIPT" ]; then - echo "ERROR: This script expects the Emscripten SDK to be in '$SDKDIR'." 1>&2 - exit 1 -fi - -TARBALL="$1" -if [ -z $1 ]; then - TARBALL=sdl-emscripten.tar.xz -fi - -cd `dirname "$0"` -cd .. -SDLBASE=`pwd` - -if [ -z "$MAKE" ]; then - OSTYPE=`uname -s` - if [ "$OSTYPE" == "Linux" ]; then - NCPU=`cat /proc/cpuinfo |grep vendor_id |wc -l` - let NCPU=$NCPU+1 - elif [ "$OSTYPE" = "Darwin" ]; then - NCPU=`sysctl -n hw.ncpu` - elif [ "$OSTYPE" = "SunOS" ]; then - NCPU=`/usr/sbin/psrinfo |wc -l |sed -e 's/^ *//g;s/ *$//g'` - else - NCPU=1 - fi - - if [ -z "$NCPU" ]; then - NCPU=1 - elif [ "$NCPU" = "0" ]; then - NCPU=1 - fi - - MAKE="make -j$NCPU" -fi - -echo "\$MAKE is '$MAKE'" - -echo "Setting up Emscripten SDK environment..." -source "$ENVSCRIPT" - -echo "Setting up..." -set -x -cd "$SDLBASE" -rm -rf buildbot -mkdir buildbot -pushd buildbot - -echo "Configuring..." -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" || exit $? - -echo "Building..." -emmake $MAKE || exit $? - -echo "Moving things around..." -emmake $MAKE install || exit $? - -# Fix up a few things to a real install path -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 -mkdir -p ./usr -mv ./emscripten-sdl2-installed ./usr/local -popd -tar -cJvvf $TARBALL -C buildbot usr -rm -rf buildbot - -exit 0 - -# end of emscripten-buildbot.sh ... - |