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