Skip to content

Commit

Permalink
made xcompile script more automated, added 64bit build
Browse files Browse the repository at this point in the history
  • Loading branch information
Theverat committed Aug 16, 2016
1 parent 0498228 commit 1f83847
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
release/*

38 changes: 36 additions & 2 deletions xcompile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,43 @@
# See https://stackoverflow.com/questions/10934683/how-do-i-configure-qt-for-cross-compilation-from-linux-to-windows-target/13211922#13211922

MXE_ROOT="/home/simon/Projekte/qt/mxe"
$MXE_ROOT/usr/bin/i686-w64-mingw32.static-qmake-qt5

export PATH=$MXE_ROOT/usr/bin:$PATH

make -j 8
case "$1" in
release)
echo "Creating RELEASE build"
make clean

# Create 64 bit build and package it
$MXE_ROOT/usr/bin/x86_64-w64-mingw32.static-qmake-qt5
make -j 8

cd release
rm NormalmapGenerator_win64.zip
zip NormalmapGenerator_win64 NormalmapGenerator.exe
cd ..

# Cleanup
make clean

# Create 32 bit build and package it
$MXE_ROOT/usr/bin/i686-w64-mingw32.static-qmake-qt5
make -j 8

cd release
rm NormalmapGenerator_win32.zip
zip NormalmapGenerator_win32 NormalmapGenerator.exe
cd ..

make clean
echo "RELEASE build done."
;;
*)
echo "Creating DEBUG build"
$MXE_ROOT/usr/bin/x86_64-w64-mingw32.static-qmake-qt5
make -j 8
echo "DEBUG build done."
esac


0 comments on commit 1f83847

Please sign in to comment.