mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Write AppConfig.h file once and ensure that it is only rewritten if it has actually changed
This commit is contained in:
parent
f47d8d2425
commit
6dbcfbf6e5
1 changed files with 6 additions and 11 deletions
|
|
@ -93,17 +93,15 @@ public:
|
|||
|
||||
auto projectRootHash = project.getProjectRoot().toXmlString().hashCode();
|
||||
|
||||
if (project.getProjectType().isAudioPlugin())
|
||||
writePluginCharacteristicsFile();
|
||||
|
||||
writeAppConfigFile (modules, appConfigUserContent);
|
||||
writeBinaryDataFiles();
|
||||
writeAppHeader (modules);
|
||||
writeModuleCppWrappers (modules);
|
||||
writeProjects (modules, specifiedExporterToSave, ! showProgressBox);
|
||||
|
||||
if (project.getProjectType().isAudioPlugin())
|
||||
writePluginCharacteristicsFile();
|
||||
|
||||
writeAppConfigFile (modules, appConfigUserContent); // (this is repeated in case the projects added anything to it)
|
||||
|
||||
// if the project root has changed after writing the other files then re-save it
|
||||
if (project.getProjectRoot().toXmlString().hashCode() != projectRootHash)
|
||||
{
|
||||
|
|
@ -151,17 +149,14 @@ public:
|
|||
|
||||
if (errors.size() == 0)
|
||||
{
|
||||
if (project.getProjectType().isAudioPlugin())
|
||||
writePluginCharacteristicsFile();
|
||||
|
||||
writeAppConfigFile (modules, loadUserContentFromAppConfig());
|
||||
writeBinaryDataFiles();
|
||||
writeAppHeader (modules);
|
||||
writeModuleCppWrappers (modules);
|
||||
|
||||
if (project.getProjectType().isAudioPlugin())
|
||||
{
|
||||
writePluginCharacteristicsFile();
|
||||
writeAppConfigFile (modules, loadUserContentFromAppConfig());
|
||||
}
|
||||
|
||||
return Result::ok();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue