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