annotate deploy/win32/build.bat @ 712:825d63ed6ca0

Correct package name
author Chris Cannam
date Wed, 12 Dec 2018 11:48:17 +0000
parents a74515f1c6e8
children 66284838b373
rev   line source
Chris@676 1 rem Run this from within the top-level project dir: deploy\win32\build.bat
Chris@676 2 rem To build from clean, delete the folder build_win32
Chris@676 3
Chris@676 4 set STARTPWD=%CD%
Chris@676 5
Chris@680 6 set QTDIR=C:\Qt\5.12.0\msvc2017
Chris@676 7 if not exist %QTDIR% (
Chris@680 8 @ echo Could not find 32-bit Qt using MSVC
Chris@676 9 @ exit /b 2
Chris@676 10 )
Chris@676 11
Chris@680 12 if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
Chris@680 13 @ echo "Could not find MSVC vars batch file"
Chris@680 14 @ exit /b 2
Chris@680 15 )
Chris@680 16
Chris@680 17 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
Chris@680 18
Chris@676 19 set ORIGINALPATH=%PATH%
Chris@692 20 set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin;C:\Qt\Tools\QtCreator\bin
Chris@676 21
Chris@676 22 cd %STARTPWD%
Chris@676 23
Chris@680 24 if not exist easyhg-kdiff3 (
Chris@680 25 hg clone https://code.soundsoftware.ac.uk/hg/easyhg-kdiff3
Chris@680 26 )
Chris@680 27 set KDIFFDIR=%STARTPWD%\easyhg-kdiff3\kdiff3\src-QT4
Chris@680 28
Chris@676 29 mkdir build_win32
Chris@676 30 cd build_win32
Chris@676 31
Chris@680 32 qmake -spec win32-msvc -r -tp vc ..\easyhg.pro
Chris@676 33 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@676 34
Chris@680 35 msbuild EasyMercurial.vcxproj /t:Build /p:Configuration=Release
Chris@680 36 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@680 37
Chris@680 38 cd %KDIFFDIR%
Chris@680 39
Chris@680 40 mkdir build_win32
Chris@680 41 cd build_win32
Chris@680 42
Chris@680 43 qmake -spec win32-msvc -r -tp vc ..\kdiff3.pro
Chris@680 44 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@680 45
Chris@680 46 msbuild kdiff3.vcxproj /t:Build /p:Configuration=Release
Chris@680 47 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@680 48
Chris@680 49 cd %STARTPWD%\build_win32
Chris@680 50
Chris@680 51 copy %KDIFFDIR%\build_win32\release\kdiff3.exe .\release
Chris@680 52
Chris@680 53 copy %QTDIR%\bin\Qt5Core.dll .\release
Chris@680 54 copy %QTDIR%\bin\Qt5Gui.dll .\release
Chris@680 55 copy %QTDIR%\bin\Qt5Widgets.dll .\release
Chris@680 56 copy %QTDIR%\bin\Qt5Network.dll .\release
Chris@680 57 copy %QTDIR%\bin\Qt5PrintSupport.dll .\release
Chris@680 58 copy %QTDIR%\plugins\platforms\qminimal.dll .\release
Chris@680 59 copy %QTDIR%\plugins\platforms\qwindows.dll .\release
Chris@680 60 copy %QTDIR%\plugins\styles\qwindowsvistastyle.dll .\release
Chris@680 61
Chris@680 62 cd %STARTPWD%
Chris@680 63
Chris@676 64 set PATH=%ORIGINALPATH%