mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Renamed the "Include BinaryData in AppConfig" project setting to "Include BinaryData in JuceHeader" so that it actually does what it says
This commit is contained in:
parent
11c4e91fa5
commit
8d952587a5
4 changed files with 15 additions and 9 deletions
|
|
@ -218,9 +218,15 @@ void Project::initialiseProjectValues()
|
|||
preprocessorDefsValue.referTo (projectRoot, Ids::defines, getUndoManager());
|
||||
userNotesValue.referTo (projectRoot, Ids::userNotes, getUndoManager());
|
||||
|
||||
maxBinaryFileSizeValue.referTo (projectRoot, Ids::maxBinaryFileSize, getUndoManager(), 10240 * 1024);
|
||||
includeBinaryDataInAppConfigValue.referTo (projectRoot, Ids::includeBinaryInAppConfig, getUndoManager(), true);
|
||||
binaryDataNamespaceValue.referTo (projectRoot, Ids::binaryDataNamespace, getUndoManager(), "BinaryData");
|
||||
maxBinaryFileSizeValue.referTo (projectRoot, Ids::maxBinaryFileSize, getUndoManager(), 10240 * 1024);
|
||||
|
||||
// this is here for backwards compatibility with old projects using the incorrect id
|
||||
if (projectRoot.hasProperty ("includeBinaryInAppConfig"))
|
||||
includeBinaryDataInJuceHeaderValue.referTo (projectRoot, "includeBinaryInAppConfig", getUndoManager(), true);
|
||||
else
|
||||
includeBinaryDataInJuceHeaderValue.referTo (projectRoot, Ids::includeBinaryInJuceHeader, getUndoManager(), true);
|
||||
|
||||
binaryDataNamespaceValue.referTo (projectRoot, Ids::binaryDataNamespace, getUndoManager(), "BinaryData");
|
||||
}
|
||||
|
||||
void Project::initialiseAudioPluginValues()
|
||||
|
|
@ -970,8 +976,8 @@ void Project::createPropertyEditors (PropertyListBuilder& props)
|
|||
"(Note that individual resource files which are larger than this size cannot be split across multiple cpp files).");
|
||||
}
|
||||
|
||||
props.add (new ChoicePropertyComponent (includeBinaryDataInAppConfigValue, "Include BinaryData in AppConfig"),
|
||||
"Include BinaryData.h in the AppConfig.h file");
|
||||
props.add (new ChoicePropertyComponent (includeBinaryDataInJuceHeaderValue, "Include BinaryData in JuceHeader"),
|
||||
"Include BinaryData.h in the JuceHeader.h file");
|
||||
|
||||
props.add (new TextPropertyComponent (binaryDataNamespaceValue, "BinaryData Namespace", 256, false),
|
||||
"The namespace containing the binary assests.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue