Add VS2012 support

Files are essentially just copied from the 2010 version with slight
tweaks, works without any warnings or errors.
This commit is contained in:
Cornee Traas 2014-12-13 22:22:33 +01:00
parent 826b81fc20
commit 6cb5496ae6
11 changed files with 1354 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{* *}
{* Is this a dir or an item? *}
{* *}
{if is_array($dirWalk)}
{* *}
{* Iterate over children *}
{* *}
{foreach from=$dirWalk item=dir key=key}
{include file="vc2010_fileRecurse.tpl" dirWalk=$dir dirName=$key dirPath="$dirPath$dirName/" depth=$depth+1}
{/foreach}
{else}
{* *}
{* Output an item *}
{* *}
{capture assign="itemOut"}
{* we don't compile some files. *}
{if dontCompile($dirWalk->path, $projOutput)}
<ClCompile Include=
"{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Optimized Debug|Win32'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
</ClCompile>
{else}
{if substr($dirWalk->path, -4, 4) == ".asm"}
<CustomBuild Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}">
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe" -f win32 "%(FullPath)" -o "$(IntDir)%(Filename).obj"</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)%(Filename).obj;%(Outputs)</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Optimized Debug|Win32'">"{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe" -f win32 "%(FullPath)" -o "$(IntDir)%(Filename).obj"</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Optimized Debug|Win32'">$(IntDir)%(Filename).obj;%(Outputs)</Outputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe" -f win32 "%(FullPath)" -o "$(IntDir)%(Filename).obj"</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)%(Filename).obj;%(Outputs)</Outputs>
</CustomBuild>
{elseif $projOutput->isSourceFile( $dirWalk->path ) }
<ClCompile Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}" />
{elseif $projOutput->isResourceFile( $dirWalk->path ) }
<ResourceCompile Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}" />
{else}
<ClInclude Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}" />
{/if}{* if path == "*.asm" *}
{/if}{* if dontCompile() *}
{/capture}
{$itemOut|indent:$depth:"\t"}
{/if}