Fix for Issue #134 for VS2010 RC Files

This commit is contained in:
DavidWyand-GG 2012-11-08 18:03:40 -05:00
parent 34db24a3e8
commit 20892395c1
2 changed files with 13 additions and 0 deletions

View file

@ -203,6 +203,17 @@ class BuildTarget
return false; return false;
} }
function isResourceFile( $file )
{
$ext = ".rc";
$extLen = strlen( $ext );
$possibleMatch = substr( $file, -$extLen, $extLen );
if( $possibleMatch == $ext )
return true;
return false;
}
} }
?> ?>

View file

@ -36,6 +36,8 @@
</CustomBuild> </CustomBuild>
{elseif $projOutput->isSourceFile( $dirWalk->path ) } {elseif $projOutput->isSourceFile( $dirWalk->path ) }
<ClCompile Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}" /> <ClCompile Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}" />
{elseif $projOutput->isResourceFile( $dirWalk->path ) }
<ResourceCompile Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}" />
{else} {else}
<ClInclude Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}" /> <ClInclude Include="{$dirWalk->path|replace:'//':'/'|replace:'/':'\\'}" />
{/if}{* if path == "*.asm" *} {/if}{* if path == "*.asm" *}