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

Projucer: Remove VS2015 and CLion exporters

This commit is contained in:
attila 2022-05-20 12:25:31 +02:00
parent 92dda5a2d9
commit 2fdc4f6633
49 changed files with 207 additions and 28003 deletions

View file

@ -417,6 +417,10 @@ void Project::removeDefunctExporters()
oldExporters.set ("VS2010", "Visual Studio 2010");
oldExporters.set ("VS2012", "Visual Studio 2012");
oldExporters.set ("VS2013", "Visual Studio 2013");
oldExporters.set ("VS2015", "Visual Studio 2015");
oldExporters.set ("CLION", "CLion");
std::vector<String> removedExporterKeys;
for (auto& key : oldExporters.getAllKeys())
{
@ -424,16 +428,36 @@ void Project::removeDefunctExporters()
if (oldExporter.isValid())
{
if (ProjucerApplication::getApp().isRunningCommandLine)
std::cout << "WARNING! The " + oldExporters[key] + " Exporter is deprecated. The exporter will be removed from this project." << std::endl;
else
AlertWindow::showMessageBoxAsync (MessageBoxIconType::WarningIcon,
TRANS (oldExporters[key]),
TRANS ("The " + oldExporters[key] + " Exporter is deprecated. The exporter will be removed from this project."));
removedExporterKeys.push_back (key);
exporters.removeChild (oldExporter, nullptr);
}
}
if (! removedExporterKeys.empty())
{
if (ProjucerApplication::getApp().isRunningCommandLine)
{
for (const auto& key : removedExporterKeys)
std::cout << "WARNING! The " + oldExporters[key]
+ " Exporter is deprecated. The exporter will be removed from this project."
<< std::endl;
}
else
{
const String warningTitle { TRANS ("Unsupported exporters") };
String warningMessage;
warningMessage << TRANS ("The following exporters are no longer supported") << "\n\n";
for (const auto& key : removedExporterKeys)
warningMessage << " - " + oldExporters[key] + "\n";
warningMessage << "\n"
<< TRANS ("These exporters have been removed from the project. If you save the project they will be also erased from the .jucer file.");
AlertWindow::showMessageBoxAsync (MessageBoxIconType::WarningIcon, warningTitle, warningMessage);
}
}
}
void Project::updateOldModulePaths()
@ -692,7 +716,6 @@ Result Project::loadDocument (const File& file)
setChangedFlag (false);
updateExporterWarnings();
updateLicenseWarning();
return Result::ok();
@ -892,20 +915,6 @@ void Project::updateModuleWarnings()
updateModuleNotFoundWarning (moduleNotFound);
}
void Project::updateExporterWarnings()
{
auto isClionPresent = [this]()
{
for (ExporterIterator exporter (*this); exporter.next();)
if (exporter->isCLion())
return true;
return false;
}();
updateCLionWarning (isClionPresent);
}
void Project::updateCppStandardWarning (bool showWarning)
{
if (showWarning)
@ -971,14 +980,6 @@ void Project::updateOldProjucerWarning (bool showWarning)
removeProjectMessage (ProjectMessages::Ids::oldProjucer);
}
void Project::updateCLionWarning (bool showWarning)
{
if (showWarning)
addProjectMessage (ProjectMessages::Ids::cLion, {});
else
removeProjectMessage (ProjectMessages::Ids::cLion);
}
void Project::updateModuleNotFoundWarning (bool showWarning)
{
if (showWarning)
@ -1153,8 +1154,6 @@ void Project::valueTreeChildAdded (ValueTree& parent, ValueTree& child)
if (child.getType() == Ids::MODULE)
updateModuleWarnings();
else if (parent.getType() == Ids::EXPORTFORMATS)
updateExporterWarnings();
changed();
}
@ -1165,8 +1164,6 @@ void Project::valueTreeChildRemoved (ValueTree& parent, ValueTree& child, int in
if (child.getType() == Ids::MODULE)
updateModuleWarnings();
else if (parent.getType() == Ids::EXPORTFORMATS)
updateExporterWarnings();
changed();
}