From 20892395c1355fa2433c527dafa29adecd659fd4 Mon Sep 17 00:00:00 2001 From: DavidWyand-GG Date: Thu, 8 Nov 2012 18:03:40 -0500 Subject: [PATCH] Fix for Issue #134 for VS2010 RC Files --- Tools/projectGenerator/classes/BuildTarget.php | 11 +++++++++++ .../projectGenerator/templates/vc2010_fileRecurse.tpl | 2 ++ 2 files changed, 13 insertions(+) diff --git a/Tools/projectGenerator/classes/BuildTarget.php b/Tools/projectGenerator/classes/BuildTarget.php index 8ab458f6c..fa31f1ae2 100644 --- a/Tools/projectGenerator/classes/BuildTarget.php +++ b/Tools/projectGenerator/classes/BuildTarget.php @@ -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; + } } ?> diff --git a/Tools/projectGenerator/templates/vc2010_fileRecurse.tpl b/Tools/projectGenerator/templates/vc2010_fileRecurse.tpl index 837fcd68e..d8af59604 100644 --- a/Tools/projectGenerator/templates/vc2010_fileRecurse.tpl +++ b/Tools/projectGenerator/templates/vc2010_fileRecurse.tpl @@ -36,6 +36,8 @@ {elseif $projOutput->isSourceFile( $dirWalk->path ) } + {elseif $projOutput->isResourceFile( $dirWalk->path ) } + {else} {/if}{* if path == "*.asm" *}