mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-15 14:40:53 +00:00
Merge branch 'misc/lilium_common' into game/eliteforce
This commit is contained in:
commit
060610f671
1 changed files with 14 additions and 3 deletions
|
@ -1,16 +1,27 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "Usage: $0 <arch>"
|
echo "Usage: $0 <arch> [make options]"
|
||||||
echo " arch can be x86 or x86_64"
|
echo " arch can be x86 or x86_64"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ARCH=$1
|
ARCH=$1
|
||||||
SDL_PREFIX=/home/zack/Local/SDL-2.0.3/build-$ARCH
|
SDL_PREFIX=/home/zack/Local/SDL-2.0.4/build-$ARCH
|
||||||
|
|
||||||
|
if [ ! -d $SDL_PREFIX ] ; then
|
||||||
|
echo "Change SDL_PREFIX in $0 to point to SDL build output"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
SDL_CFLAGS="`$SDL_PREFIX/bin/sdl2-config --cflags`"
|
SDL_CFLAGS="`$SDL_PREFIX/bin/sdl2-config --cflags`"
|
||||||
SDL_LIBS="`$SDL_PREFIX/bin/sdl2-config --libs`"
|
SDL_LIBS="`$SDL_PREFIX/bin/sdl2-config --libs`"
|
||||||
|
|
||||||
make ARCH=$ARCH USE_PORTABLE_RPATH=1 SDL_CFLAGS="$SDL_CFLAGS" SDL_LIBS="$SDL_LIBS"
|
# Don't pass arch ($1) to make in $*
|
||||||
|
shift 1
|
||||||
|
|
||||||
|
make ARCH=$ARCH USE_PORTABLE_RPATH=1 SDL_CFLAGS="$SDL_CFLAGS" SDL_LIBS="$SDL_LIBS" $*
|
||||||
|
|
||||||
|
# Copy SDL lib to where spearmint will read it from
|
||||||
|
#mkdir -p build/release-linux-$ARCH/lib/$ARCH/
|
||||||
|
#cp $SDL_PREFIX/lib/libSDL2-2.0.so.0 build/release-linux-$ARCH/lib/$ARCH/
|
||||||
|
|
Loading…
Reference in a new issue