1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-15 00:24:19 +00:00

Fixed a problem with introjucer module file target parsing.

This commit is contained in:
jules 2012-05-26 11:02:56 +01:00
parent b36708e3f3
commit d4fb934a26
2 changed files with 21 additions and 9 deletions

View file

@ -586,12 +586,24 @@ void LibraryModule::getConfigFlags (Project& project, OwnedArray<Project::Config
//==============================================================================
static bool exporterTargetMatches (const String& test, String target)
{
target = target.trim();
StringArray validTargets;
validTargets.addTokens (target, ",;", "");
validTargets.trim();
validTargets.removeEmptyStrings();
if (validTargets.size() == 0)
return true;
if (target.startsWithChar ('!'))
return ! exporterTargetMatches (test, target.substring (1).trimStart());
for (int i = validTargets.size(); --i >= 0;)
{
const String& target = validTargets[i];
return target == test || target.isEmpty();
if (target == test
|| (target.startsWithChar ('!') && test != target.substring (1).trimStart()))
return true;
}
return false;
}
bool LibraryModule::fileTargetMatches (ProjectExporter& exporter, const String& target)