mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Projucer: Made the C++ language standard option a per-project instead of per-build configuration setting. Added an option to enable GNU compiler extensions for supported exporters. Added the option to specify a minimum C++ language standard in module declarations and added a warning to the Projucer when adding a module that has a higher standard than currently set.
This commit is contained in:
parent
60b4b7cfe5
commit
2e81e8a0dc
17 changed files with 219 additions and 154 deletions
|
|
@ -824,6 +824,18 @@ StringArray EnabledModuleList::getExtraDependenciesNeeded (const String& moduleI
|
|||
return extraDepsNeeded;
|
||||
}
|
||||
|
||||
bool EnabledModuleList::doesModuleHaveHigherCppStandardThanProject (const String& moduleID)
|
||||
{
|
||||
auto projectCppStandard = project.getCppStandardValue().toString();
|
||||
|
||||
if (projectCppStandard == "latest")
|
||||
return false;
|
||||
|
||||
auto moduleCppStandard = getModuleInfo (moduleID).getMinimumCppStandard();
|
||||
|
||||
return (moduleCppStandard.getIntValue() > projectCppStandard.getIntValue());
|
||||
}
|
||||
|
||||
bool EnabledModuleList::areMostModulesUsingGlobalPath() const
|
||||
{
|
||||
auto numYes = 0, numNo = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue