Skip to content

Instantly share code, notes, and snippets.

@shaan7
Created February 23, 2016 07:44
Show Gist options
  • Save shaan7/3dc3c2eb8c297e5561c0 to your computer and use it in GitHub Desktop.
Save shaan7/3dc3c2eb8c297e5561c0 to your computer and use it in GitHub Desktop.
Build script for Qt-based App using Visual Studio 12.0
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
set QT_PATH=C:\Qt
set QT_TOOLS_PATH=%QT_PATH%\Tools
set QT_MSVC_PATH=%QT_PATH%\5.5\msvc2013
set QT_MSVC_BIN=%QT_MSVC_PATH%\bin
set PATH=%PATH%;%QT_MSVC_BIN%
echo Building
%QT_MSVC_BIN%\qmake CONFIG+="release" || exit /b
%QT_TOOLS_PATH%\QtCreator\bin\jom.exe || exit /b
cd release || exit /b
del *.obj *.cpp || exit /b
%QT_MSVC_BIN%\windeployqt --release --qmldir %QT_MSVC_PATH%\qml -quickparticles SoStronk.exe || exit /b
xcopy /e /y %QT_MSVC_PATH%\qml\QtGraphicalEffects QtGraphicalEffects\ || exit /b
xcopy /e /y %QT_MSVC_PATH%\qml\QtQuick\Particles.2 QtQuick\Particles.2\ || exit /b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment