Torque3D/Tools/projectGenerator/templates/vc2k8_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

89 lines
2.7 KiB
Smarty

{* *}
{* Is this a dir or an item? *}
{* *}
{if is_array($dirWalk)}
{if $depth > 2}
{* *}
{* Generate dir prefix *}
{* *}
{capture assign="dirPrefix"}
<Filter
Name="{$dirName}"
Filter="">{/capture}
{$dirPrefix|indent:$depth:"\t"}
{/if}
{* *}
{* Iterate over children *}
{* *}
{foreach from=$dirWalk item=dir key=key}
{include file="vc2k8_fileRecurse.tpl" dirWalk=$dir dirName=$key dirPath="$dirPath$dirName/" depth=$depth+1}
{/foreach}
{if $depth > 2}
{* *}
{* Generate dir suffix *}
{* *}
{capture assign="dirSuffix"}
</Filter>{/capture}
{$dirSuffix|indent:$depth:"\t"}
{/if}
{else}
{* *}
{* Output an item *}
{* *}
{capture assign="itemOut"}
<File
RelativePath="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}">
{* we don't compile some files. *}
{if dontCompile($dirWalk->path, $projOutput)}
<FileConfiguration
Name="Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Optimized Debug|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
{else}
{if substr($dirWalk->path, -4, 4) == ".asm"}
<FileConfiguration
Name="Debug|Win32">
<Tool
Name="VCCustomBuildTool"
CommandLine="&quot;{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe&quot; -f win32 &quot;$(InputPath)&quot; -o &quot;$(IntDir)/$(InputName).obj&quot;"
Outputs="$(IntDir)/$(InputName).obj"/>
</FileConfiguration>
<FileConfiguration
Name="Optimized Debug|Win32">
<Tool
Name="VCCustomBuildTool"
CommandLine="&quot;{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe&quot; -f win32 &quot;$(InputPath)&quot; -o &quot;$(IntDir)/$(InputName).obj&quot;"
Outputs="$(IntDir)/$(InputName).obj"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCustomBuildTool"
CommandLine="&quot;{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe&quot; -f win32 &quot;$(InputPath)&quot; -o &quot;$(IntDir)/$(InputName).obj&quot;"
Outputs="$(IntDir)/$(InputName).obj"/>
</FileConfiguration>
{/if}{* if path == "*.asm" *}
{/if}{* if dontCompile() *}
</File>{/capture}
{$itemOut|indent:$depth:"\t"}
{/if}