mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
- updated nasm binaries; - updated template files to reflect new paths to nasm binaries; Now .asm files compile with /safeseh option.
89 lines
2.7 KiB
Smarty
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=""{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe" -f win32 "$(InputPath)" -o "$(IntDir)/$(InputName).obj""
|
|
Outputs="$(IntDir)/$(InputName).obj"/>
|
|
</FileConfiguration>
|
|
<FileConfiguration
|
|
Name="Optimized Debug|Win32">
|
|
<Tool
|
|
Name="VCCustomBuildTool"
|
|
CommandLine=""{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe" -f win32 "$(InputPath)" -o "$(IntDir)/$(InputName).obj""
|
|
Outputs="$(IntDir)/$(InputName).obj"/>
|
|
</FileConfiguration>
|
|
<FileConfiguration
|
|
Name="Release|Win32">
|
|
<Tool
|
|
Name="VCCustomBuildTool"
|
|
CommandLine=""{$binDir|replace:'//':'/'|replace:'/':'\\'}nasm\nasm.exe" -f win32 "$(InputPath)" -o "$(IntDir)/$(InputName).obj""
|
|
Outputs="$(IntDir)/$(InputName).obj"/>
|
|
</FileConfiguration>
|
|
{/if}{* if path == "*.asm" *}
|
|
{/if}{* if dontCompile() *}
|
|
</File>{/capture}
|
|
{$itemOut|indent:$depth:"\t"}
|
|
{/if} |