annotate deploy/win64/build-64.bat @ 1866:65d244ee39f9

Experimentally add a rule to re-run Repoint if the project or lock file is newer than the .repoint.point file. This sort of thing isn't sufficient for all uses of Repoint because some of the initial qmake project file info is brought in by Repoint, so it has to be run before qmake as well. Also it's not clear yet how it will interact with archived builds (i.e. source releases) -- to be tested.
author Chris Cannam
date Tue, 19 Jun 2018 15:03:24 +0100
parents df146330bc34
children 643768964863
rev   line source
Chris@1839 1 rem Run this from within the top-level SV dir: deploy\win64\build-64.bat
Chris@1839 2 rem To build from clean, delete the folder build_win64 first
Chris@1839 3
Chris@1839 4 echo on
Chris@1827 5
Chris@1827 6 set STARTPWD=%CD%
Chris@1827 7
Chris@1841 8 set QTDIR=C:\Qt\5.11.0\msvc2017_64
Chris@1839 9 if not exist %QTDIR% (
Chris@1839 10 @ echo Could not find 64-bit Qt
Chris@1841 11 @ exit /b 2
Chris@1839 12 )
Chris@1839 13
Chris@1827 14 if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
Chris@1827 15 @ echo "Could not find MSVC vars batch file"
Chris@1841 16 @ exit /b 2
Chris@1827 17 )
Chris@1827 18
Chris@1827 19 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
Chris@1827 20
Chris@1839 21 set ORIGINALPATH=%PATH%
Chris@1839 22 set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin
Chris@1827 23
Chris@1827 24 cd %STARTPWD%
Chris@1827 25
Chris@1827 26 call .\repoint install
Chris@1839 27 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827 28
Chris@1827 29 sv-dependency-builds\win64-msvc\bin\capnp -Isv-dependency-builds/win64-msvc/include compile --src-prefix=piper/capnp -osv-dependency-builds/win64-msvc/bin/capnpc-c++:piper-cpp/vamp-capnp piper/capnp/piper.capnp
Chris@1839 30 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827 31
Chris@1827 32 mkdir build_win64
Chris@1827 33 cd build_win64
Chris@1827 34
Chris@1846 35 qmake -spec win32-msvc -r -tp vc ..\sonic-visualiser.pro
Chris@1839 36 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827 37
Chris@1827 38 msbuild sonic-visualiser.sln /t:Build /p:Configuration=Release
Chris@1839 39 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827 40
Chris@1827 41 copy .\checker\release\vamp-plugin-load-checker.exe .\release
Chris@1827 42
Chris@1827 43 copy %QTDIR%\bin\Qt5Core.dll .\release
Chris@1827 44 copy %QTDIR%\bin\Qt5Gui.dll .\release
Chris@1827 45 copy %QTDIR%\bin\Qt5Widgets.dll .\release
Chris@1827 46 copy %QTDIR%\bin\Qt5Network.dll .\release
Chris@1827 47 copy %QTDIR%\bin\Qt5Xml.dll .\release
Chris@1827 48 copy %QTDIR%\bin\Qt5Svg.dll .\release
Chris@1852 49 copy %QTDIR%\bin\Qt5Test.dll .\release
Chris@1827 50 copy %QTDIR%\plugins\platforms\qminimal.dll .\release
Chris@1827 51 copy %QTDIR%\plugins\platforms\qwindows.dll .\release
Chris@1827 52 copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\release
Chris@1827 53
Chris@1852 54 .\release\test-svcore-base
Chris@1852 55 .\release\test-svcore-system
Chris@1852 56 .\release\test-svcore-data-fileio
Chris@1852 57 .\release\test-svcore-data-model
Chris@1852 58
Chris@1839 59 set PATH=%ORIGINALPATH%