mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
build-openssl.bat: Added support for VC15
This commit is contained in:
parent
c97648b550
commit
a4e88317dd
@ -6,7 +6,7 @@ rem * / __| | | | |_) | |
|
|||||||
rem * | (__| |_| | _ <| |___
|
rem * | (__| |_| | _ <| |___
|
||||||
rem * \___|\___/|_| \_\_____|
|
rem * \___|\___/|_| \_\_____|
|
||||||
rem *
|
rem *
|
||||||
rem * Copyright (C) 2012 - 2016, Steve Holme, <steve_holme@hotmail.com>.
|
rem * Copyright (C) 2012 - 2017, Steve Holme, <steve_holme@hotmail.com>.
|
||||||
rem *
|
rem *
|
||||||
rem * This software is licensed as described in the file COPYING, which
|
rem * This software is licensed as described in the file COPYING, which
|
||||||
rem * you should have received as part of this distribution. The terms
|
rem * you should have received as part of this distribution. The terms
|
||||||
@ -72,6 +72,10 @@ rem ***************************************************************************
|
|||||||
set VC_VER=14.0
|
set VC_VER=14.0
|
||||||
set VC_DESC=VC14
|
set VC_DESC=VC14
|
||||||
set "VC_PATH=Microsoft Visual Studio 14.0\VC"
|
set "VC_PATH=Microsoft Visual Studio 14.0\VC"
|
||||||
|
) else if /i "%~1" == "vc15" (
|
||||||
|
set VC_VER=15.0
|
||||||
|
set VC_DESC=VC15
|
||||||
|
set "VC_PATH=Microsoft Visual Studio\2017\Community\VC"
|
||||||
) else if /i "%~1%" == "x86" (
|
) else if /i "%~1%" == "x86" (
|
||||||
set BUILD_PLATFORM=x86
|
set BUILD_PLATFORM=x86
|
||||||
) else if /i "%~1%" == "x64" (
|
) else if /i "%~1%" == "x64" (
|
||||||
@ -166,23 +170,28 @@ rem ***************************************************************************
|
|||||||
if "%VC_VER%" == "11.0" set VCVARS_PLATFORM=amd64
|
if "%VC_VER%" == "11.0" set VCVARS_PLATFORM=amd64
|
||||||
if "%VC_VER%" == "12.0" set VCVARS_PLATFORM=amd64
|
if "%VC_VER%" == "12.0" set VCVARS_PLATFORM=amd64
|
||||||
if "%VC_VER%" == "14.0" set VCVARS_PLATFORM=amd64
|
if "%VC_VER%" == "14.0" set VCVARS_PLATFORM=amd64
|
||||||
|
if "%VC_VER%" == "15.0" set VCVARS_PLATFORM=amd64
|
||||||
)
|
)
|
||||||
|
|
||||||
:start
|
:start
|
||||||
echo.
|
echo.
|
||||||
|
set SAVED_PATH=%CD%
|
||||||
|
|
||||||
if "%VC_VER%" == "6.0" (
|
if "%VC_VER%" == "6.0" (
|
||||||
call "%PF%\%VC_PATH%\bin\vcvars32"
|
call "%PF%\%VC_PATH%\bin\vcvars32"
|
||||||
) else if "%VC_VER%" == "7.0" (
|
) else if "%VC_VER%" == "7.0" (
|
||||||
call "%PF%\%VC_PATH%\bin\vcvars32"
|
call "%PF%\%VC_PATH%\bin\vcvars32"
|
||||||
) else if "%VC_VER%" == "7.1" (
|
) else if "%VC_VER%" == "7.1" (
|
||||||
call "%PF%\%VC_PATH%\bin\vcvars32"
|
call "%PF%\%VC_PATH%\bin\vcvars32"
|
||||||
|
) else if "%VC_VER%" == "15.0" (
|
||||||
|
call "%PF%\%VC_PATH%\Auxiliary\Build\vcvarsall" %VCVARS_PLATFORM%
|
||||||
) else (
|
) else (
|
||||||
call "%PF%\%VC_PATH%\vcvarsall" %VCVARS_PLATFORM%
|
call "%PF%\%VC_PATH%\vcvarsall" %VCVARS_PLATFORM%
|
||||||
)
|
)
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
set SAVED_PATH=%CD%
|
cd %SAVED_PATH%
|
||||||
if defined START_DIR CD %START_DIR%
|
cd %START_DIR%
|
||||||
goto %BUILD_PLATFORM%
|
goto %BUILD_PLATFORM%
|
||||||
|
|
||||||
:x64
|
:x64
|
||||||
@ -307,6 +316,7 @@ rem ***************************************************************************
|
|||||||
echo vc11 - Use Visual Studio 2012
|
echo vc11 - Use Visual Studio 2012
|
||||||
echo vc12 - Use Visual Studio 2013
|
echo vc12 - Use Visual Studio 2013
|
||||||
echo vc14 - Use Visual Studio 2015
|
echo vc14 - Use Visual Studio 2015
|
||||||
|
echo vc15 - Use Visual Studio 2017
|
||||||
echo.
|
echo.
|
||||||
echo Platform:
|
echo Platform:
|
||||||
echo.
|
echo.
|
||||||
|
Loading…
Reference in New Issue
Block a user