From 574b9374d7aa25563336b8aba36bdc2fe5d0f48f Mon Sep 17 00:00:00 2001 From: MuldeR Date: Sun, 29 Oct 2017 12:00:03 +0100 Subject: [PATCH] Updated build script for VS2017. --- z_build.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/z_build.bat b/z_build.bat index c0bb505..3570418 100644 --- a/z_build.bat +++ b/z_build.bat @@ -2,7 +2,7 @@ REM /////////////////////////////////////////////////////////////////////////// REM // Set Paths REM /////////////////////////////////////////////////////////////////////////// -set "MSVC_PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC" +set "MSVC_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build" REM ############################################### REM # DO NOT MODIFY ANY LINES BELOW THIS LINE !!! # @@ -26,7 +26,7 @@ if "%QTDIR%"=="" ( echo %%QTDIR%% not specified. Please check your MSVC_PATH var! goto BuildError ) -if not exist "%VCINSTALLDIR%\bin\cl.exe" ( +if not exist "%VCToolsInstallDir%\bin\HostX86\x86\cl.exe" ( echo C++ compiler not found. Please check your MSVC_PATH var! goto BuildError ) @@ -60,11 +60,11 @@ REM /////////////////////////////////////////////////////////////////////////// echo --------------------------------------------------------------------- echo BEGIN BUILD echo --------------------------------------------------------------------- -MSBuild.exe /property:Configuration=release_static /target:clean "%~dp0\MediaInfoXP.sln" +MSBuild.exe /property:Configuration=release_static /property:Platform=Win32 /target:clean "%~dp0\MediaInfoXP.sln" if not "%ERRORLEVEL%"=="0" goto BuildError -MSBuild.exe /property:Configuration=release_static /target:rebuild "%~dp0\MediaInfoXP.sln" +MSBuild.exe /property:Configuration=release_static /property:Platform=Win32 /target:rebuild "%~dp0\MediaInfoXP.sln" if not "%ERRORLEVEL%"=="0" goto BuildError -MSBuild.exe /property:Configuration=release_static /target:build "%~dp0\MediaInfoXP.sln" +MSBuild.exe /property:Configuration=release_static /property:Platform=Win32 /target:build "%~dp0\MediaInfoXP.sln" if not "%ERRORLEVEL%"=="0" goto BuildError REM ///////////////////////////////////////////////////////////////////////////