mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-15 20:53:50 +00:00
Files are essentially just copied from the 2010 version with slight tweaks, works without any warnings or errors.
48 lines
No EOL
2.8 KiB
Smarty
48 lines
No EOL
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} |