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

Projucer: Cleaned up some exporter code

This commit is contained in:
ed 2020-03-23 09:31:02 +00:00
parent b29b45e8cd
commit a091a29929
4 changed files with 8 additions and 26 deletions

View file

@ -174,13 +174,8 @@ public:
if (targetType == ProjectType::Target::SharedCodeTarget)
return;
if (auto* target = new CodeBlocksTarget (*this, targetType))
{
if (targetType == ProjectType::Target::AggregateTarget)
targets.insert (0, target);
else
targets.add (target);
}
targets.insert (targetType == ProjectType::Target::AggregateTarget ? 0 : -1,
new CodeBlocksTarget (*this, targetType));
});
// If you hit this assert, you tried to generate a project for an exporter

View file

@ -1395,11 +1395,8 @@ public:
callForAllSupportedTargets ([this] (ProjectType::Target::Type targetType)
{
if (MSVCTargetBase* target = new MSVCTargetBase (targetType, *this))
{
if (targetType != ProjectType::Target::AggregateTarget)
targets.add (target);
}
if (targetType != ProjectType::Target::AggregateTarget)
targets.add (new MSVCTargetBase (targetType, *this));
});
// If you hit this assert, you tried to generate a project for an exporter

View file

@ -409,13 +409,8 @@ public:
{
callForAllSupportedTargets ([this] (ProjectType::Target::Type targetType)
{
if (MakefileTarget* target = new MakefileTarget (targetType, *this))
{
if (targetType == ProjectType::Target::AggregateTarget)
targets.insert (0, target);
else
targets.add (target);
}
targets.insert (targetType == ProjectType::Target::AggregateTarget ? 0 : -1,
new MakefileTarget (targetType, *this));
});
// If you hit this assert, you tried to generate a project for an exporter

View file

@ -590,13 +590,8 @@ public:
{
callForAllSupportedTargets ([this] (ProjectType::Target::Type targetType)
{
if (auto* target = new XcodeTarget (targetType, *this))
{
if (targetType == ProjectType::Target::AggregateTarget)
targets.insert (0, target);
else
targets.add (target);
}
targets.insert (targetType == ProjectType::Target::AggregateTarget ? 0 : -1,
new XcodeTarget (targetType, *this));
});
// If you hit this assert, you tried to generate a project for an exporter