aboutsummaryrefslogtreecommitdiffstats
path: root/projects/generate.bat
diff options
context:
space:
mode:
Diffstat (limited to 'projects/generate.bat')
-rw-r--r--projects/generate.bat25
1 files changed, 22 insertions, 3 deletions
diff --git a/projects/generate.bat b/projects/generate.bat
index fbe3a92..f8fb81f 100644
--- a/projects/generate.bat
+++ b/projects/generate.bat
@@ -6,7 +6,7 @@ rem * / __| | | | |_) | |
rem * | (__| |_| | _ <| |___
rem * \___|\___/|_| \_\_____|
rem *
-rem * Copyright (C) 2014 - 2015, Steve Holme, <steve_holme@hotmail.com>.
+rem * Copyright (C) 2014 - 2017, Steve Holme, <steve_holme@hotmail.com>.
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