mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Enable /bigobj for MSVC builds of PIP examples by default
This commit is contained in:
parent
abe0e6e5fd
commit
054a5ed17c
2 changed files with 12 additions and 0 deletions
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "jucer_ProjectSaver.h"
|
||||
|
||||
inline String msBuildEscape (String str)
|
||||
{
|
||||
// see https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-special-characters?view=vs-2019
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
#include "../../ProjectSaving/jucer_ProjectExporter.h"
|
||||
#include "../../ProjectSaving/jucer_ProjectExport_Xcode.h"
|
||||
#include "../../ProjectSaving/jucer_ProjectExport_Android.h"
|
||||
#include "../../ProjectSaving/jucer_ProjectExport_MSVC.h"
|
||||
#include "jucer_PIPGenerator.h"
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -243,6 +244,15 @@ ValueTree PIPGenerator::createExporterChild (const Identifier& exporterIdentifie
|
|||
|
||||
exporter.setProperty (Ids::targetFolder, "Builds/" + ProjectExporter::getTypeInfoForExporter (exporterIdentifier).targetFolder, nullptr);
|
||||
|
||||
const Identifier vsExporters[] { MSVCProjectExporterVC2017::getValueTreeTypeName(),
|
||||
MSVCProjectExporterVC2019::getValueTreeTypeName(),
|
||||
MSVCProjectExporterVC2022::getValueTreeTypeName() };
|
||||
|
||||
if (isJUCEExample (pipFile) && std::find (std::begin (vsExporters), std::end (vsExporters), exporterIdentifier) != std::end (vsExporters))
|
||||
{
|
||||
exporter.setProperty (Ids::extraCompilerFlags, "/bigobj", nullptr);
|
||||
}
|
||||
|
||||
if (isJUCEExample (pipFile) && exporterRequiresExampleAssets (exporterIdentifier, metadata[Ids::name]))
|
||||
{
|
||||
auto examplesDir = getExamplesDirectory();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue