comparison deploy/win64/build-64-debug.bat @ 2187:92c493792eaf bqaudiostream

Update for more MediaFoundation bits & testing
author Chris Cannam
date Fri, 18 Jan 2019 14:46:25 +0000
parents
children
comparison
equal deleted inserted replaced
2186:b483f46e53eb 2187:92c493792eaf
1 rem Run this from within the top-level SV dir: deploy\win64\build-64.bat
2 rem To build from clean, delete the folder build_win64_debug first
3
4 rem NB you will probably also have to change the CONFIG in noconfig.pri
5 rem from release to debug
6
7 echo on
8
9 set STARTPWD=%CD%
10
11 set QTDIR=C:\Qt\5.11.2\msvc2017_64
12 if not exist %QTDIR% (
13 @ echo Could not find 64-bit Qt
14 @ exit /b 2
15 )
16
17 if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
18 @ echo "Could not find MSVC vars batch file"
19 @ exit /b 2
20 )
21
22 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
23
24 set ORIGINALPATH=%PATH%
25 set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin
26
27 cd %STARTPWD%
28
29 call .\repoint install
30 if %errorlevel% neq 0 exit /b %errorlevel%
31
32 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
33 if %errorlevel% neq 0 exit /b %errorlevel%
34
35 mkdir build_win64_debug
36 cd build_win64_debug
37
38 qmake -spec win32-msvc -r -tp vc ..\sonic-visualiser.pro
39 if %errorlevel% neq 0 exit /b %errorlevel%
40
41 msbuild sonic-visualiser.sln /t:Build /p:Configuration=Debug
42 if %errorlevel% neq 0 exit /b %errorlevel%
43
44 copy .\checker\debug\vamp-plugin-load-checker.exe .\debug
45
46 copy %QTDIR%\bin\Qt5Cored.dll .\debug
47 copy %QTDIR%\bin\Qt5Guid.dll .\debug
48 copy %QTDIR%\bin\Qt5Widgetsd.dll .\debug
49 copy %QTDIR%\bin\Qt5Networkd.dll .\debug
50 copy %QTDIR%\bin\Qt5Xmld.dll .\debug
51 copy %QTDIR%\bin\Qt5Svgd.dll .\debug
52 copy %QTDIR%\bin\Qt5Testd.dll .\debug
53 copy %QTDIR%\plugins\platforms\qminimald.dll .\debug
54 copy %QTDIR%\plugins\platforms\qwindowsd.dll .\debug
55 copy %QTDIR%\plugins\styles\qwindowsvistastyled.dll .\debug
56 copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\debug
57
58 rem some of these expect to be run from the project root
59 cd ..
60 build_win64_debug\debug\test-svcore-base
61 if %errorlevel% neq 0 exit /b %errorlevel%
62 build_win64_debug\debug\test-svcore-system
63 if %errorlevel% neq 0 exit /b %errorlevel%
64 build_win64_debug\debug\test-svcore-data-fileio
65 if %errorlevel% neq 0 exit /b %errorlevel%
66 build_win64_debug\debug\test-svcore-data-model
67 if %errorlevel% neq 0 exit /b %errorlevel%
68
69 set PATH=%ORIGINALPATH%