From: daid Date: Thu, 30 Oct 2014 09:10:44 +0000 (+0100) Subject: Adjust the package.sh so the compiler is properly called when building for windows... X-Git-Tag: lulzbot-14.12~44 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=43f3c899d865f88b765ab933c1926021c5ecdc09;p=cura.git Adjust the package.sh so the compiler is properly called when building for windows on linux. --- diff --git a/package.sh b/package.sh index 7e187dec..3109402f 100755 --- a/package.sh +++ b/package.sh @@ -268,7 +268,7 @@ if [ "$BUILD_TARGET" = "debian_amd64" ]; then rm -rf CuraEngine git clone ${CURA_ENGINE_REPO} if [ $? != 0 ]; then echo "Failed to clone CuraEngine"; exit 1; fi - $MAKE -C CuraEngine + $MAKE -C CuraEngine VERSION=${BUILD_NAME} if [ $? != 0 ]; then echo "Failed to build CuraEngine"; exit 1; fi rm -rf scripts/linux/${BUILD_TARGET}/usr/share/cura mkdir -p scripts/linux/${BUILD_TARGET}/usr/share/cura @@ -358,6 +358,12 @@ mkdir -p ${TARGET_DIR} rm -f log.txt if [ $BUILD_TARGET = "win32" ]; then + if [ -z `which i686-w64-mingw32-g++` ]; then + CXX=g++ + else + CXX=i686-w64-mingw32-g++ + fi + #For windows extract portable python to include it. extract PortablePython_${WIN_PORTABLE_PY_VERSION}.exe \$_OUTDIR/App extract PortablePython_${WIN_PORTABLE_PY_VERSION}.exe \$_OUTDIR/Lib/site-packages @@ -408,7 +414,7 @@ if [ $BUILD_TARGET = "win32" ]; then rm -rf ${TARGET_DIR}/python/Lib/OpenGL/DLLS/gle* #Build the C++ engine - $MAKE -C CuraEngine VERSION=${BUILD_NAME} + $MAKE -C CuraEngine VERSION=${BUILD_NAME} OS=Windows_NT CXX=${CXX} if [ $? != 0 ]; then echo "Failed to build CuraEngine"; exit 1; fi fi