2013-01-24 10:55:41 +01:00
|
|
|
@echo off
|
|
|
|
|
2016-05-11 17:44:16 +02:00
|
|
|
rem To set up a new Qt and Visual Studio version
|
|
|
|
rem - set environment path variable to the correct Qt bin directory (e.g. 32 bit version)
|
|
|
|
rem - if using Visual Studio Express version, download the redistributable (it is not automatically there)
|
|
|
|
rem - change the Qt distribute dll names in the installer.nsi file (some contain version numbers)
|
|
|
|
|
2013-01-24 10:55:41 +01:00
|
|
|
rem settings and check ---------------------------------------------------------
|
2016-05-11 17:44:16 +02:00
|
|
|
set NSIS_PATH=%PROGRAMFILES(x86)%\NSIS
|
2013-01-24 10:55:41 +01:00
|
|
|
|
|
|
|
if "%VSINSTALLDIR%" == "" goto vsenvproblem
|
|
|
|
|
|
|
|
rem create visual studio project file ------------------------------------------
|
|
|
|
cd ..
|
2020-03-24 19:40:12 +01:00
|
|
|
qmake -tp vc -spec win32-msvc
|
|
|
|
|
|
|
|
rem TODO qmake seems to use the incorrect VS version to create the project file.
|
|
|
|
rem As a quick hack I simply replace the toolset version which seems to work.
|
|
|
|
powershell -Command "(gc jamulus.vcxproj) -replace '<PlatformToolset>v141</PlatformToolset>', '<PlatformToolset>v140</PlatformToolset>' | Out-File -encoding ASCII jamulus.vcxproj"
|
2013-01-24 10:55:41 +01:00
|
|
|
|
|
|
|
rem clean and compile solution -------------------------------------------------
|
2020-03-24 19:40:12 +01:00
|
|
|
devenv Jamulus.vcxproj /Clean "Release|x86"
|
|
|
|
devenv Jamulus.vcxproj /Build "Release|x86"
|
2013-01-24 10:55:41 +01:00
|
|
|
|
|
|
|
rem create installer -----------------------------------------------------------
|
|
|
|
cd windows
|
|
|
|
"%NSIS_PATH%\makensis.exe" installer.nsi
|
|
|
|
|
2013-02-19 22:20:15 +01:00
|
|
|
move Jamulusinstaller.exe ../deploy/Jamulus-version-installer.exe
|
2013-01-24 10:55:41 +01:00
|
|
|
|
|
|
|
goto endofskript
|
|
|
|
|
|
|
|
:vsenvproblem
|
|
|
|
echo Use the Visual Studio Command Prompt to call this skript
|
|
|
|
|
|
|
|
:endofskript
|