1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Cache preprocessor defs to reduce save time

This commit is contained in:
ed 2018-01-17 09:24:55 +00:00
parent 7d24b39f18
commit 7912349b55
2 changed files with 5 additions and 7 deletions

View file

@ -456,12 +456,14 @@ Result Project::saveResourcesOnly (const File& file)
//==============================================================================
void Project::valueTreePropertyChanged (ValueTree& tree, const Identifier& property)
{
if (tree.getParent() == tree)
if (tree.getRoot() == tree)
{
if (property == Ids::projectType)
sendChangeMessage();
else if (property == Ids::name)
setTitle (projectRoot [Ids::name]);
else if (property == Ids::defines)
parsedPreprocessorDefs = parsePreprocessorDefs (preprocessorDefsValue.get());
changed();
}
@ -853,11 +855,6 @@ String Project::getVersionAsHex() const
return "0x" + String::toHexString (getVersionAsHexInteger());
}
StringPairArray Project::getPreprocessorDefs() const
{
return parsePreprocessorDefs (projectRoot [Ids::defines]);
}
File Project::getBinaryDataCppFile (int index) const
{
const File cpp (getGeneratedCodeFolder().getChildFile ("BinaryData.cpp"));