annotate deploy/win64/build-64.bat @ 2596:04d381f0d89a tip

Default branch is now named default on git as well as hg, in case we ever want to switch to mirroring in the other direction
author Chris Cannam
date Thu, 27 Aug 2020 15:58:56 +0100
parents 4448639b9bb1
children
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@2421 8 set QTDIR=C:\Qt\5.13.2\msvc2017_64
Chris@1839 9 if not exist %QTDIR% (
Chris@2397 10 @ echo Could not find 64-bit Qt in %QTDIR%
Chris@1841 11 @ exit /b 2
Chris@1839 12 )
Chris@1839 13
Chris@2397 14 set vcvarsall="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat"
Chris@2397 15
Chris@2397 16 if not exist %vcvarsall% (
Chris@1827 17 @ echo "Could not find MSVC vars batch file"
Chris@1841 18 @ exit /b 2
Chris@1827 19 )
Chris@1827 20
Chris@2397 21 call %vcvarsall% amd64
Chris@1827 22
Chris@1839 23 set ORIGINALPATH=%PATH%
Chris@2365 24 set PATH=C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin;%PATH%
Chris@1827 25
Chris@1827 26 cd %STARTPWD%
Chris@1827 27
Chris@1827 28 call .\repoint install
Chris@1839 29 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827 30
Chris@2045 31 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-vamp-cpp/vamp-capnp piper/capnp/piper.capnp
Chris@1839 32 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827 33
Chris@1827 34 mkdir build_win64
Chris@1827 35 cd build_win64
Chris@1827 36
Chris@2590 37 qmake -unset SV_PERSISTENT_DEFINES
Chris@1846 38 qmake -spec win32-msvc -r -tp vc ..\sonic-visualiser.pro
Chris@1839 39 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827 40
Chris@1827 41 msbuild sonic-visualiser.sln /t:Build /p:Configuration=Release
Chris@1839 42 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827 43
Chris@1827 44 copy .\checker\release\vamp-plugin-load-checker.exe .\release
Chris@1827 45
Chris@1827 46 copy %QTDIR%\bin\Qt5Core.dll .\release
Chris@1827 47 copy %QTDIR%\bin\Qt5Gui.dll .\release
Chris@1827 48 copy %QTDIR%\bin\Qt5Widgets.dll .\release
Chris@1827 49 copy %QTDIR%\bin\Qt5Network.dll .\release
Chris@1827 50 copy %QTDIR%\bin\Qt5Xml.dll .\release
Chris@1827 51 copy %QTDIR%\bin\Qt5Svg.dll .\release
Chris@1852 52 copy %QTDIR%\bin\Qt5Test.dll .\release
Chris@1827 53 copy %QTDIR%\plugins\platforms\qminimal.dll .\release
Chris@1827 54 copy %QTDIR%\plugins\platforms\qwindows.dll .\release
Chris@1891 55 copy %QTDIR%\plugins\styles\qwindowsvistastyle.dll .\release
Chris@1827 56 copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\release
Chris@1827 57
Chris@1982 58 rem some of these expect to be run from the project root
Chris@1982 59 cd ..
Chris@1982 60 build_win64\release\test-svcore-base
Chris@2186 61 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1982 62 build_win64\release\test-svcore-system
Chris@2186 63 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1982 64 build_win64\release\test-svcore-data-fileio
Chris@2186 65 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1982 66 build_win64\release\test-svcore-data-model
Chris@2186 67 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1852 68
Chris@1839 69 set PATH=%ORIGINALPATH%