2012-09-19 11:22:58 -04:00
|
|
|
{* *}
|
|
|
|
|
{* 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:'/':'\\'}">
|
2013-04-18 13:31:18 +03:00
|
|
|
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">"{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe" -f win32 "%(FullPath)" -o "$(IntDir)%(Filename).obj"</Command>
|
2012-09-19 11:22:58 -04:00
|
|
|
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)%(Filename).obj;%(Outputs)</Outputs>
|
2013-04-18 13:31:18 +03:00
|
|
|
<Command Condition="'$(Configuration)|$(Platform)'=='Optimized Debug|Win32'">"{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe" -f win32 "%(FullPath)" -o "$(IntDir)%(Filename).obj"</Command>
|
2012-09-19 11:22:58 -04:00
|
|
|
<Outputs Condition="'$(Configuration)|$(Platform)'=='Optimized Debug|Win32'">$(IntDir)%(Filename).obj;%(Outputs)</Outputs>
|
2013-04-18 13:31:18 +03:00
|
|
|
<Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">"{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe" -f win32 "%(FullPath)" -o "$(IntDir)%(Filename).obj"</Command>
|
2012-09-19 11:22:58 -04:00
|
|
|
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)%(Filename).obj;%(Outputs)</Outputs>
|
|
|
|
|
</CustomBuild>
|
|
|
|
|
{elseif $projOutput->isSourceFile( $dirWalk->path ) }
|
|
|
|
|
<ClCompile Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}" />
|
2012-11-08 18:03:40 -05:00
|
|
|
{elseif $projOutput->isResourceFile( $dirWalk->path ) }
|
|
|
|
|
<ResourceCompile Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}" />
|
2012-09-19 11:22:58 -04:00
|
|
|
{else}
|
|
|
|
|
<ClInclude Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}" />
|
|
|
|
|
{/if}{* if path == "*.asm" *}
|
|
|
|
|
{/if}{* if dontCompile() *}
|
|
|
|
|
{/capture}
|
|
|
|
|
{$itemOut|indent:$depth:"\t"}
|
|
|
|
|
|
|
|
|
|
{/if}
|