summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/SDL2/build-scripts/raspberrypi-buildbot.sh
diff options
context:
space:
mode:
author Miodrag Milanović <mmicko@gmail.com>2023-02-26 19:40:37 +0100
committer GitHub <noreply@github.com>2023-02-27 05:40:37 +1100
commitbd59a0d447b861982429905f186dee8b12f2e777 (patch)
treedc6341c8fb098818039127f758cf3eb0fade986a /3rdparty/SDL2/build-scripts/raspberrypi-buildbot.sh
parent28b03e92a84daf79eb3cef75c51c014b2f57807b (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/raspberrypi-buildbot.sh')
-rw-r--r--3rdparty/SDL2/build-scripts/raspberrypi-buildbot.sh60
1 files changed, 0 insertions, 60 deletions
diff --git a/3rdparty/SDL2/build-scripts/raspberrypi-buildbot.sh b/3rdparty/SDL2/build-scripts/raspberrypi-buildbot.sh
deleted file mode 100644
index e81fbb56dcd..00000000000
--- a/3rdparty/SDL2/build-scripts/raspberrypi-buildbot.sh
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/bash
-
-# This is the script buildbot.libsdl.org uses to cross-compile SDL2 from
-# x86 Linux to Raspberry Pi.
-
-# The final tarball can be unpacked in the root directory of a RPi,
-# so the SDL2 install lands in /usr/local. Run ldconfig, and then
-# you should be able to build and run SDL2-based software on your
-# Pi. Standard configure scripts should be able to find SDL and
-# build against it, and sdl2-config should work correctly on the
-# actual device.
-
-TARBALL="$1"
-if [ -z $1 ]; then
- TARBALL=sdl-raspberrypi.tar.xz
-fi
-
-OSTYPE=`uname -s`
-if [ "$OSTYPE" != "Linux" ]; then
- # !!! FIXME
- echo "This only works on x86 or x64-64 Linux at the moment." 1>&2
- exit 1
-fi
-
-if [ "x$MAKE" == "x" ]; then
- NCPU=`cat /proc/cpuinfo |grep vendor_id |wc -l`
- let NCPU=$NCPU+1
- MAKE="make -j$NCPU"
-fi
-
-BUILDBOTDIR="raspberrypi-buildbot"
-PARENTDIR="$PWD"
-
-set -e
-set -x
-rm -f $TARBALL
-rm -rf $BUILDBOTDIR
-mkdir -p $BUILDBOTDIR
-pushd $BUILDBOTDIR
-
-SYSROOT="/opt/rpi-sysroot"
-export CC="ccache /opt/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc --sysroot=$SYSROOT -I$SYSROOT/opt/vc/include -I$SYSROOT/usr/include -I$SYSROOT/opt/vc/include/interface/vcos/pthreads -I$SYSROOT/opt/vc/include/interface/vmcs_host/linux -L$SYSROOT/opt/vc/lib"
-# -L$SYSROOT/usr/lib/arm-linux-gnueabihf"
-# !!! FIXME: shouldn't have to --disable-* things here.
-../configure --with-sysroot=$SYSROOT --host=arm-raspberry-linux-gnueabihf --prefix=$PWD/rpi-sdl2-installed --disable-pulseaudio --disable-esd --disable-video-mir --disable-video-wayland
-$MAKE
-$MAKE install
-# Fix up a few things to a real install path on a real Raspberry Pi...
-perl -w -pi -e "s#$PWD/rpi-sdl2-installed#/usr/local#g;" ./rpi-sdl2-installed/lib/libSDL2.la ./rpi-sdl2-installed/lib/pkgconfig/sdl2.pc ./rpi-sdl2-installed/bin/sdl2-config
-mkdir -p ./usr
-mv ./rpi-sdl2-installed ./usr/local
-
-popd
-tar -cJvvf $TARBALL -C $BUILDBOTDIR usr
-rm -rf $BUILDBOTDIR
-
-set +x
-echo "All done. Final installable is in $TARBALL ...";
-
-