Updated build script.

This commit is contained in:
LoRd_MuldeR 2018-12-10 16:38:08 +01:00
parent b3c2745a8c
commit b12d866a8d

View File

@ -4,9 +4,9 @@ setlocal enabledelayedexpansion
REM /////////////////////////////////////////////////////////////////////////// REM ///////////////////////////////////////////////////////////////////////////
REM // Set Paths REM // Set Paths
REM /////////////////////////////////////////////////////////////////////////// REM ///////////////////////////////////////////////////////////////////////////
set "MSVC_PATH=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC" set "MSVC_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC"
set "UPX3_PATH=C:\Program Files (x86)\UPX" set "UPX3_PATH=%~dp0..\Prerequisites\UPX"
set "PDOC_PATH=C:\Program Files (x86)\Pandoc" set "PDOC_PATH=%~dp0..\Prerequisites\Pandoc"
REM ############################################### REM ###############################################
REM # DO NOT MODIFY ANY LINES BELOW THIS LINE !!! # REM # DO NOT MODIFY ANY LINES BELOW THIS LINE !!! #
@ -15,16 +15,16 @@ REM ###############################################
REM /////////////////////////////////////////////////////////////////////////// REM ///////////////////////////////////////////////////////////////////////////
REM // Setup environment REM // Setup environment
REM /////////////////////////////////////////////////////////////////////////// REM ///////////////////////////////////////////////////////////////////////////
call "%MSVC_PATH%\vcvarsall.bat" x86 call "%MSVC_PATH%\Auxiliary\Build\vcvarsall.bat" x86
REM /////////////////////////////////////////////////////////////////////////// REM ///////////////////////////////////////////////////////////////////////////
REM // Check environment REM // Check environment
REM /////////////////////////////////////////////////////////////////////////// REM ///////////////////////////////////////////////////////////////////////////
if "%VCINSTALLDIR%"=="" ( if "%VCToolsInstallDir%"=="" (
echo %%VCINSTALLDIR%% not specified. Please check your MSVC_PATH var^^! echo %%VCINSTALLDIR%% not specified. Please check your MSVC_PATH var^^!
goto BuildError goto BuildError
) )
if not exist "%VCINSTALLDIR%\bin\cl.exe" ( if not exist "%VCToolsInstallDir%\bin\Hostx64\x86\cl.exe" (
echo C++ compiler binary not found. Please check your MSVC_PATH var^^! echo C++ compiler binary not found. Please check your MSVC_PATH var^^!
goto BuildError goto BuildError
) )