diff options
author | Oliver Schneider <oliver@assarbad.net> | 2014-01-20 04:03:16 +0400 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2014-01-20 04:03:16 +0400 |
commit | 6d3fd53244706c98575d5e7b2169556d8ae4cdcc (patch) | |
tree | 1728487fd0e8910e7444cf482d38ec958338e418 /common | |
parent | ae0a96fe277197a331d9064ad96eae11d93b7263 (diff) |
Enable creation of projects/solutions for particular versions of Visual Studio only
Diffstat (limited to 'common')
-rw-r--r-- | common/produce_vsprojects.cmd | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/common/produce_vsprojects.cmd b/common/produce_vsprojects.cmd index cd0c509..d59c010 100644 --- a/common/produce_vsprojects.cmd +++ b/common/produce_vsprojects.cmd @@ -1,7 +1,7 @@ @echo off
@if not "%OS%"=="Windows_NT" @(echo This script requires Windows NT 4.0 or later to run properly! & goto :EOF)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-::: 2013, Oliver Schneider (assarbad.net) - PUBLIC DOMAIN/CC0
+::: 2013, 2014, Oliver Schneider (assarbad.net) - PUBLIC DOMAIN/CC0
:::
::: DISCLAIMER: Disclaimer: This software is provided 'as-is', without any
::: express or implied warranty. In no event will the author be
@@ -13,10 +13,12 @@ set REPOROOT=%~dp0.. set COMMON=%~dp0
:: Change into the repository root
setlocal & pushd "%REPOROOT%"
-if "%~1" == "full" set OPTIONS=--resources --sdk71
-if "%~1" == "sdk71" set OPTIONS=--sdk71
-if "%~1" == "resources" set OPTIONS=--resources
-for %%i in (vs2005 vs2008 vs2010 vs2012 vs2013) do @(
+if "%~1" == "full" shift&set OPTIONS=--resources --sdk71
+if "%~1" == "sdk71" shift&set OPTIONS=--sdk71
+if "%~1" == "resources" shift&set OPTIONS=--resources
+set VSVERSIONS=%*
+if "%VSVERSIONS%" == "" set VSVERSIONS=vs2005 vs2008 vs2010 vs2012 vs2013
+for %%i in (%VSVERSIONS%) do @(
"%COMMON%\premake4.exe" %OPTIONS% %%i
)
:: Back to normal
|