Mercurial > hg > sonic-visualiser
comparison deploy/win64/complete-build.bat @ 1827:e63cc95876cb baselib-win-build
Alternative build mechanism for Windows, with base as a library and a single script to run full builds
author | Chris Cannam |
---|---|
date | Thu, 24 May 2018 16:19:50 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1823:1b6ffed298a2 | 1827:e63cc95876cb |
---|---|
1 rem Run this from within the top-level SV dir: deploy\win64\complete-build.bat | |
2 rem To build from clean, delete the folders build_win32 and build_win64 first | |
3 | |
4 set STARTPWD=%CD% | |
5 | |
6 if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" ( | |
7 @ echo "Could not find MSVC vars batch file" | |
8 @ exit /b | |
9 ) | |
10 | |
11 set QTDIR32=C:\Qt\5.10.1\mingw53_32 | |
12 set QTDIR64=C:\Qt\5.10.1\msvc2017_64 | |
13 if not exist %QTDIR32% ( | |
14 @ echo Could not find 32-bit Qt | |
15 @ exit /b | |
16 ) | |
17 if not exist %QTDIR64% ( | |
18 @ echo Could not find 64-bit Qt | |
19 @ exit /b | |
20 ) | |
21 | |
22 if not exist "C:\Program Files (x86)\SMLNJ\bin" ( | |
23 @ echo Could not find SML/NJ, required for Repoint | |
24 @ exit /b | |
25 ) | |
26 | |
27 if not exist "C:\Program Files (x86)\WiX Toolset v3.11\bin" ( | |
28 @ echo Could not find WiX Toolset | |
29 @ exit /b | |
30 ) | |
31 | |
32 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 | |
33 | |
34 set NONQTPATH=%PATH%;"C:\Program Files (x86)\SMLNJ\bin";"C:\Program Files (x86)\WiX Toolset v3.11\bin" | |
35 | |
36 cd %STARTPWD% | |
37 | |
38 call .\repoint install | |
39 | |
40 set QTDIR=%QTDIR32% | |
41 set PATH=%NONQTPATH%;%QTDIR%\bin;C:\Qt\Tools\QtCreator\bin;C:\Qt\Tools\mingw530_32\bin | |
42 | |
43 sv-dependency-builds\win32-mingw\bin\capnp -Isv-dependency-builds/win32-mingw/include compile --src-prefix=piper/capnp -osv-dependency-builds/win32-mingw/bin/capnpc-c++:piper-cpp/vamp-capnp piper/capnp/piper.capnp | |
44 | |
45 mkdir build_win32 | |
46 cd build_win32 | |
47 | |
48 qmake -r ..\sonic-visualiser.pro | |
49 | |
50 jom | |
51 | |
52 copy .\checker\release\vamp-plugin-load-checker.exe .\release | |
53 | |
54 copy %QTDIR%\bin\Qt5Core.dll .\release | |
55 copy %QTDIR%\bin\Qt5Gui.dll .\release | |
56 copy %QTDIR%\bin\Qt5Widgets.dll .\release | |
57 copy %QTDIR%\bin\Qt5Network.dll .\release | |
58 copy %QTDIR%\bin\Qt5Xml.dll .\release | |
59 copy %QTDIR%\bin\Qt5Svg.dll .\release | |
60 copy %QTDIR%\bin\libgcc_s_dw2-1.dll .\release | |
61 copy %QTDIR%\bin\"libstdc++-6.dll" .\release | |
62 copy %QTDIR%\bin\libwinpthread-1.dll .\release | |
63 copy %QTDIR%\plugins\platforms\qminimal.dll .\release | |
64 copy %QTDIR%\plugins\platforms\qwindows.dll .\release | |
65 | |
66 del sonic-visualiser.msi | |
67 candle -v ..\deploy\win32\sonic-visualiser.wxs | |
68 light -b . -ext WixUIExtension -ext WixUtilExtension -v sonic-visualiser.wixobj | |
69 del sonic-visualiser.wixobj | |
70 del sonic-visualiser.wixpdb | |
71 | |
72 cd %STARTPWD% | |
73 | |
74 set QTDIR=%QTDIR64% | |
75 set PATH=%NONQTPATH%;%QTDIR%\bin | |
76 | |
77 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 | |
78 | |
79 mkdir build_win64 | |
80 cd build_win64 | |
81 | |
82 qmake -r -tp vc ..\sonic-visualiser.pro | |
83 | |
84 msbuild sonic-visualiser.sln /t:Build /p:Configuration=Release | |
85 | |
86 copy .\checker\release\vamp-plugin-load-checker.exe .\release | |
87 | |
88 copy %QTDIR%\bin\Qt5Core.dll .\release | |
89 copy %QTDIR%\bin\Qt5Gui.dll .\release | |
90 copy %QTDIR%\bin\Qt5Widgets.dll .\release | |
91 copy %QTDIR%\bin\Qt5Network.dll .\release | |
92 copy %QTDIR%\bin\Qt5Xml.dll .\release | |
93 copy %QTDIR%\bin\Qt5Svg.dll .\release | |
94 copy %QTDIR%\plugins\platforms\qminimal.dll .\release | |
95 copy %QTDIR%\plugins\platforms\qwindows.dll .\release | |
96 copy ..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll .\release | |
97 | |
98 del sonic-visualiser.msi | |
99 candle -v ..\deploy\win64\sonic-visualiser.wxs | |
100 light -b . -ext WixUIExtension -ext WixUtilExtension -v sonic-visualiser.wixobj | |
101 del sonic-visualiser.wixobj | |
102 del sonic-visualiser.wixpdb |