mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Merge pull request #135 from DavidWyand-GG/issue134-VS2010RCFiles
Fix for Issue #134 for VS2010 RC Files
This commit is contained in:
commit
e2f0404a05
2 changed files with 13 additions and 0 deletions
|
|
@ -203,6 +203,17 @@ class BuildTarget
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
function isResourceFile( $file )
|
||||
{
|
||||
$ext = ".rc";
|
||||
$extLen = strlen( $ext );
|
||||
$possibleMatch = substr( $file, -$extLen, $extLen );
|
||||
if( $possibleMatch == $ext )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@
|
|||
</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" *}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue