Skip to content
Snippets Groups Projects
Commit 4fd60af4 authored by Oliver Bock's avatar Oliver Bock
Browse files

Minor refactoring

parent b5cec5e2
No related branches found
No related tags found
No related merge requests found
...@@ -292,16 +292,20 @@ build_mingw() ...@@ -292,16 +292,20 @@ build_mingw()
} }
build_generic_win32() prepare_win32_environment()
{ {
# general config echo "Preparing MinGW cross-compile environment..." | tee -a $LOGFILE
PREFIX=$ROOT/install PREFIX=$ROOT/install
TARGET_HOST=i586-pc-mingw32 TARGET_HOST=i586-pc-mingw32
BUILD_HOST=i386-linux BUILD_HOST=i386-linux
PATH_MINGW="$PREFIX/bin:$PREFIX/$TARGET_HOST/bin:$PATH" PATH_MINGW="$PREFIX/bin:$PREFIX/$TARGET_HOST/bin:$PATH"
PATH="$PATH_MINGW" PATH="$PATH_MINGW"
export PATH export PATH
}
build_generic_win32()
{
echo "Building SDL (this may take a while)..." | tee -a $LOGFILE echo "Building SDL (this may take a while)..." | tee -a $LOGFILE
cd $ROOT/3rdparty/sdl || failure cd $ROOT/3rdparty/sdl || failure
chmod +x autogen.sh >> $LOGFILE 2>&1 || failure chmod +x autogen.sh >> $LOGFILE 2>&1 || failure
...@@ -493,6 +497,7 @@ build_win32() ...@@ -493,6 +497,7 @@ build_win32()
{ {
prepare_win32 || failure prepare_win32 || failure
build_mingw || failure build_mingw || failure
prepare_win32_environment || failure
build_generic_win32 || failure build_generic_win32 || failure
build_starsphere $TARGET_WIN32 || failure build_starsphere $TARGET_WIN32 || failure
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment