mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Define JucePlugin_Name earlier in AppConfig.h so that JUCE_STANDALONE_APPLICATION is set correctly
This commit is contained in:
parent
d83360a771
commit
3a77e52210
1 changed files with 7 additions and 8 deletions
|
|
@ -491,25 +491,24 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
if (extraAppConfigContent.isNotEmpty())
|
||||
out << newLine << extraAppConfigContent.trimEnd() << newLine;
|
||||
|
||||
{
|
||||
int isStandaloneApplication = 1;
|
||||
auto& type = project.getProjectType();
|
||||
|
||||
if (type.isAudioPlugin() || type.isDynamicLibrary())
|
||||
isStandaloneApplication = 0;
|
||||
auto isStandaloneApplication = (! type.isAudioPlugin() && ! type.isDynamicLibrary());
|
||||
|
||||
out << "//==============================================================================" << newLine
|
||||
out << newLine
|
||||
<< "//==============================================================================" << newLine
|
||||
<< "#ifndef JUCE_STANDALONE_APPLICATION" << newLine
|
||||
<< " #if defined(JucePlugin_Name) && defined(JucePlugin_Build_Standalone)" << newLine
|
||||
<< " #define JUCE_STANDALONE_APPLICATION JucePlugin_Build_Standalone" << newLine
|
||||
<< " #else" << newLine
|
||||
<< " #define JUCE_STANDALONE_APPLICATION " << isStandaloneApplication << newLine
|
||||
<< " #define JUCE_STANDALONE_APPLICATION " << (isStandaloneApplication ? "1" : "0") << newLine
|
||||
<< " #endif" << newLine
|
||||
<< "#endif" << newLine;
|
||||
}
|
||||
|
||||
if (extraAppConfigContent.isNotEmpty())
|
||||
out << newLine << extraAppConfigContent.trimEnd() << newLine;
|
||||
}
|
||||
|
||||
void writeAppConfigFile (const OwnedArray<LibraryModule>& modules, const String& userContent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue