mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
build_cross_win[32|64]-sdl2.sh: new scripts for me to cross-build on my linux.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1161 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
603d2a6f76
commit
bc89fbea05
2 changed files with 44 additions and 0 deletions
22
Quake/build_cross_win32-sdl2.sh
Executable file
22
Quake/build_cross_win32-sdl2.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Change this script to meet your needs and/or environment.
|
||||
|
||||
TARGET=i686-w64-mingw32
|
||||
PREFIX=/opt/cross_win32
|
||||
|
||||
PATH="$PREFIX/bin:$PATH"
|
||||
export PATH
|
||||
|
||||
MAKE_CMD=make
|
||||
|
||||
SDL_CONFIG=/opt/sdl2-w32/bin/sdl2-config
|
||||
CC="$TARGET-gcc"
|
||||
AS="$TARGET-as"
|
||||
RANLIB="$TARGET-ranlib"
|
||||
AR="$TARGET-ar"
|
||||
WINDRES="$TARGET-windres"
|
||||
STRIP="$TARGET-strip"
|
||||
export PATH CC AS AR RANLIB WINDRES STRIP
|
||||
|
||||
exec $MAKE_CMD USE_SDL2=1 WINSOCK2=1 SDL_CONFIG=$SDL_CONFIG CC=$CC AS=$AS RANLIB=$RANLIB AR=$AR WINDRES=$WINDRES STRIP=$STRIP -f Makefile.w32 $*
|
22
Quake/build_cross_win64-sdl2.sh
Executable file
22
Quake/build_cross_win64-sdl2.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Change this script to meet your needs and/or environment.
|
||||
|
||||
TARGET=x86_64-w64-mingw32
|
||||
PREFIX=/opt/cross_win64
|
||||
|
||||
PATH="$PREFIX/bin:$PATH"
|
||||
export PATH
|
||||
|
||||
MAKE_CMD=make
|
||||
|
||||
SDL_CONFIG=/opt/sdl2-w64/bin/sdl2-config
|
||||
CC="$TARGET-gcc"
|
||||
AS="$TARGET-as"
|
||||
RANLIB="$TARGET-ranlib"
|
||||
AR="$TARGET-ar"
|
||||
WINDRES="$TARGET-windres"
|
||||
STRIP="$TARGET-strip"
|
||||
export PATH CC AS AR RANLIB WINDRES STRIP
|
||||
|
||||
exec $MAKE_CMD USE_SDL2=1 SDL_CONFIG=$SDL_CONFIG CC=$CC AS=$AS RANLIB=$RANLIB AR=$AR WINDRES=$WINDRES STRIP=$STRIP -f Makefile.w64 $*
|
Loading…
Reference in a new issue