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

Projucer: Don't run scripts on non-built targets

This commit is contained in:
Oliver James 2024-10-28 01:20:27 +00:00
parent b9c6f7833b
commit 3ec4707217

View file

@ -1027,6 +1027,15 @@ public:
libPath->addTextElement ("$(LibraryPath);" + librarySearchPaths.joinIntoString (";")); libPath->addTextElement ("$(LibraryPath);" + librarySearchPaths.joinIntoString (";"));
} }
} }
const auto enabled = config.getArchitectures().contains (arch) ? "true" : "false";
for (const auto optionName : { "PreBuildEventUseInBuild", "PostBuildEventUseInBuild" })
{
auto* tag = props->createNewChildElement (optionName);
setConditionAttribute (*tag, config, arch);
tag->addTextElement (enabled);
}
} }
} }
} }