From ad1dc10e613b5753430477c14f5b61c09d9f7a20 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Fri, 22 Dec 2017 17:58:41 +0000 Subject: build: Added Visual Studio 2017 project files --- projects/generate.bat | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'projects/generate.bat') diff --git a/projects/generate.bat b/projects/generate.bat index fbe3a9233..f8fb81fe9 100644 --- a/projects/generate.bat +++ b/projects/generate.bat @@ -6,7 +6,7 @@ rem * / __| | | | |_) | | rem * | (__| |_| | _ <| |___ rem * \___|\___/|_| \_\_____| rem * -rem * Copyright (C) 2014 - 2015, Steve Holme, . +rem * Copyright (C) 2014 - 2017, Steve Holme, . rem * rem * This software is licensed as described in the file COPYING, which rem * you should have received as part of this distribution. The terms @@ -62,6 +62,8 @@ rem *************************************************************************** set VERSION=VC12 ) else if /i "%~1" == "vc14" ( set VERSION=VC14 + ) else if /i "%~1" == "vc15" ( + set VERSION=VC15 ) else if /i "%~1" == "-clean" ( set MODE=CLEAN ) else if /i "%~1" == "-?" ( @@ -96,6 +98,7 @@ rem *************************************************************************** if "%VERSION%" == "VC11" goto vc11 if "%VERSION%" == "VC12" goto vc12 if "%VERSION%" == "VC14" goto vc14 + if "%VERSION%" == "VC15" goto vc15 :vc6 echo. @@ -230,12 +233,27 @@ rem *************************************************************************** call :clean Windows\VC14\lib\libcurl.vcxproj ) + if not "%VERSION%" == "ALL" goto success + +:vc15 + echo. + + if "%MODE%" == "GENERATE" ( + echo Generating VC15 project files + call :generate vcxproj Windows\VC15\src\curl.tmpl Windows\VC15\src\curl.vcxproj + call :generate vcxproj Windows\VC15\lib\libcurl.tmpl Windows\VC15\lib\libcurl.vcxproj + ) else ( + echo Removing VC15 project files + call :clean Windows\VC15\src\curl.vcxproj + call :clean Windows\VC15\lib\libcurl.vcxproj + ) + goto success rem Main generate function. rem rem %1 - Project Type (dsp for VC6, vcproj1 for VC7 and VC7.1, vcproj2 for VC8 and VC9 -rem or vcxproj for VC10, VC11, VC12 and VC14) +rem or vcxproj for VC10, VC11, VC12, VC14 and VC15) rem %2 - Input template file rem %3 - Output project file rem @@ -298,7 +316,7 @@ rem rem Generates a single file xml element. rem rem %1 - Project Type (dsp for VC6, vcproj1 for VC7 and VC7.1, vcproj2 for VC8 and VC9 -rem or vcxproj for VC10, VC11, VC12 and VC14) +rem or vcxproj for VC10, VC11, VC12, VC14 and VC15) rem %2 - Directory (src, lib, lib\vauth or lib\vtls) rem %3 - Source filename rem %4 - Output project file @@ -394,6 +412,7 @@ rem echo vc11 - Use Visual Studio 2012 echo vc12 - Use Visual Studio 2013 echo vc14 - Use Visual Studio 2015 + echo vc15 - Use Visual Studio 2017 echo. echo -clean - Removes the project files goto error -- cgit v1.2.3