diff options
author | Oliver Schneider <oliver@assarbad.net> | 2017-03-21 03:08:14 +0300 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2017-03-21 03:08:14 +0300 |
commit | 30dd07c538311096910adee20844b6ddcd541366 (patch) | |
tree | f07331cfbf6b240bacc5656a1d5444afb24e3604 /common | |
parent | 5b0c1da8e52115d9344c63374df2392bfc9340c0 (diff) |
Amended ignore file
Updated premake4.exe binary (again code-signed)
Updated setvcvars.cmd script
Adding projects missing from the VS2015 solution, migrated to VS2017 solution and projects
All VS201x projects now include UTF-8 BOM upon generation
premake4.lua now allows to generate v1??_xp projects for newer VS versions
Updated two more .cmd scripts to make use of the --xp option to the premake4.lua
Diffstat (limited to 'common')
-rw-r--r-- | common/premake4.exe | bin | 466040 -> 536896 bytes | |||
-rw-r--r-- | common/produce_vsprojects.cmd | 4 | ||||
-rw-r--r-- | common/setvcvars.cmd | 44 |
3 files changed, 29 insertions, 19 deletions
diff --git a/common/premake4.exe b/common/premake4.exe Binary files differindex f5fba8a..6e49607 100644 --- a/common/premake4.exe +++ b/common/premake4.exe diff --git a/common/produce_vsprojects.cmd b/common/produce_vsprojects.cmd index 9d83a6a..6287dbd 100644 --- a/common/produce_vsprojects.cmd +++ b/common/produce_vsprojects.cmd @@ -17,12 +17,12 @@ if "%~1" == "--full" (set OPTIONS=--resources --sdk71) if "%~1" == "--sdk71" (set OPTIONS=--sdk71)
if "%~1" == "--resources" (set OPTIONS=--resources)
if "%~1" == "--dev" (set OPTIONS=--dev --sdk71)
-set DEFAULT_VSVERSIONS=2005 2008 2010 2012 2013
+set DEFAULT_VSVERSIONS=2005 2008 2010 2012 2013 2015 2017
set VSVERSIONS=%*
if "%VSVERSIONS%" == "" set VSVERSIONS=%DEFAULT_VSVERSIONS%
for %%i in (%VSVERSIONS%) do @(
for %%j in (%DEFAULT_VSVERSIONS%) do @(
- if "%%i" == "%%j" "%COMMON%premake4.exe" %OPTIONS% vs%%i
+ if "%%i" == "%%j" "%COMMON%premake4.exe" --xp %OPTIONS% vs%%i
)
)
:: Back to normal
diff --git a/common/setvcvars.cmd b/common/setvcvars.cmd index 7d03038..04c2f74 100644 --- a/common/setvcvars.cmd +++ b/common/setvcvars.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)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-::: 2009-2015, Oliver Schneider (assarbad.net) - PUBLIC DOMAIN/CC0
+::: 2009-2016, Oliver Schneider (assarbad.net) - PUBLIC DOMAIN/CC0
::: Available from: <https://bitbucket.org/assarbad/scripts/>
:::
::: PURPOSE: This script can be used to run the vcvars32.bat/vcvarsall.bat
@@ -24,24 +24,24 @@ setlocal & pushd .
:: Toolsets (potentially) supported
set SUPPORTED_TSET=amd64 x86 ia64 x86_ia64 x86_amd64 amd64_x86 x86_arm amd64_arm
+:: Internal representation of the version number
+set SUPPORTED_VC=14.0 12.0 11.0 10.0 9.0 8.0 7.1 7.0
+:: Marketing name of the Visual Studio versions
+set SUPPORTED_NICE=2015 2013 2012 2010 2008 2005 2003 2002
+set DEFAULT_TSET=x86
if not "%~1" == "" @(
- if "%~1" == "/?" popd&endlocal&goto :Help
- if "%~1" == "-?" popd&endlocal&goto :Help
- if "%~1" == "/h" popd&endlocal&goto :Help
- if "%~1" == "-h" popd&endlocal&goto :Help
- if "%~1" == "/help" popd&endlocal&goto :Help
- if "%~1" == "--help" popd&endlocal&goto :Help
+ if "%~1" == "/?" goto :Help
+ if "%~1" == "-?" goto :Help
+ if "%~1" == "/h" goto :Help
+ if "%~1" == "-h" goto :Help
+ if "%~1" == "/help" goto :Help
+ if "%~1" == "--help" goto :Help
)
-if defined VCVER_FRIENDLY echo This script expects a clean environment. Don't run it several times in the same instance of CMD! Or use setlocal and endlocal in your own script to limit the effect of this one.&goto :EOF
+if defined VCVER_FRIENDLY echo This script expects a clean environment. Don't run it several times in the same instance of CMD! Or use setlocal and endlocal in your own script to limit the effect of this one.&popd&endlocal&goto :EOF
set MIN_VC=7.0
set MAX_VC=14.0
set MIN_NICE=2002
set MAX_NICE=2015
-:: Internal representation of the version number
-set SUPPORTED_VC=14.0 12.0 11.0 10.0 9.0 8.0 7.1 7.0
-:: Marketing name of the Visual Studio versions
-set SUPPORTED_NICE=2015 2013 2012 2010 2008 2005 2003 2002
-set DEFAULT_TSET=x86
reg /? > NUL 2>&1 || echo "REG.EXE is a prerequisite but wasn't found!" && goto :EOF
set SETVCV_ERROR=0
:: First parameter may point to a particular toolset ...
@@ -214,11 +214,21 @@ goto :EOF ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:Help
echo.
-echo Syntax: setvcvars ^[toolset^] ^[store^] ^[VS versions^]
+echo Syntax: setvcvars ^[toolset^] ^[^'store^'^] ^[VS versions^]
+echo.
+echo The toolset can be one of %SUPPORTED_TSET%
+echo depending on the version of Visual Studio you ask for.
+echo Unless explicitly given it defaults to %DEFAULT_TSET%.
+echo.
+echo 'store' is the literal string 'store' for Visual Studio 2015 and newer.
+echo.
+echo VS versions can be one of %SUPPORTED_VC%
+echo or %SUPPORTED_NICE%
echo.
-echo The toolset can be one of %SUPPORTED_TSET% according to the version of Visual Studio.
-echo 'store' is the literal string store for Visual Studio 2015 and newer.
-exit /b 0
+echo To verify success when calling this script from another, check that VCVER_FRIENDLY is
+echo defined. If it isn't, something failed.
+echo Use setlocal/endlocal inside your script to limit the scope of variables.
+popd&endlocal&exit /b 0
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::: \ Help subroutine
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|