Torque3D/Tools/projectGenerator/templates/vc2010_fileRecurse.tpl
Nick-IronTower 4543e85d76 Compiling with VS2012
- updated nasm binaries;
- updated template files to reflect new paths to nasm binaries;

Now .asm files compile with /safeseh option.
2013-04-18 13:31:18 +03:00

48 lines
2.8 KiB
Smarty

{* *}
{* 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}