mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fix for Issue #134 for VS2010 RC Files
This commit is contained in:
parent
34db24a3e8
commit
20892395c1
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -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" *}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue