To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / deploy / win64 / build-64.bat @ 361:fe0e9a1ffeda
History | View | Annotate | Download (2.19 KB)
| 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 first |
| 3 |
|
| 4 |
echo on |
| 5 |
|
| 6 |
set STARTPWD=%CD% |
| 7 |
|
| 8 |
set QTDIR=C:\Qt\5.13.1\msvc2017_64 |
| 9 |
if not exist %QTDIR% ( |
| 10 |
@ echo Could not find 64-bit Qt in %QTDIR% |
| 11 |
@ exit /b 2 |
| 12 |
) |
| 13 |
|
| 14 |
set vcvarsall="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" |
| 15 |
|
| 16 |
if not exist %vcvarsall% ( |
| 17 |
@ echo "Could not find MSVC vars batch file" |
| 18 |
@ exit /b 2 |
| 19 |
) |
| 20 |
|
| 21 |
call %vcvarsall% amd64 |
| 22 |
|
| 23 |
set ORIGINALPATH=%PATH% |
| 24 |
set PATH=%PATH%;C:\Program Files (x86)\SMLNJ\bin;%QTDIR%\bin |
| 25 |
|
| 26 |
cd %STARTPWD% |
| 27 |
|
| 28 |
call .\repoint install |
| 29 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 30 |
|
| 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 |
| 32 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 33 |
|
| 34 |
mkdir build_win64 |
| 35 |
cd build_win64 |
| 36 |
|
| 37 |
qmake -spec win32-msvc -r -tp vc ..\sonic-lineup.pro |
| 38 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 39 |
|
| 40 |
msbuild sonic-lineup.sln /t:Build /p:Configuration=Release |
| 41 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 42 |
|
| 43 |
copy .\checker\release\vamp-plugin-load-checker.exe .\release |
| 44 |
|
| 45 |
copy %QTDIR%\bin\Qt5Core.dll .\release |
| 46 |
copy %QTDIR%\bin\Qt5Gui.dll .\release |
| 47 |
copy %QTDIR%\bin\Qt5Widgets.dll .\release |
| 48 |
copy %QTDIR%\bin\Qt5Network.dll .\release |
| 49 |
copy %QTDIR%\bin\Qt5Xml.dll .\release |
| 50 |
copy %QTDIR%\bin\Qt5Svg.dll .\release |
| 51 |
copy %QTDIR%\bin\Qt5Test.dll .\release |
| 52 |
copy %QTDIR%\plugins\platforms\qminimal.dll .\release |
| 53 |
copy %QTDIR%\plugins\platforms\qwindows.dll .\release |
| 54 |
copy %QTDIR%\plugins\styles\qwindowsvistastyle.dll .\release |
| 55 |
copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\release |
| 56 |
|
| 57 |
rem some of these expect to be run from the project root |
| 58 |
cd .. |
| 59 |
build_win64\release\test-svcore-base |
| 60 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 61 |
build_win64\release\test-svcore-system |
| 62 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 63 |
build_win64\release\test-svcore-data-fileio |
| 64 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 65 |
build_win64\release\test-svcore-data-model |
| 66 |
if %errorlevel% neq 0 exit /b %errorlevel% |
| 67 |
|
| 68 |
set PATH=%ORIGINALPATH% |