| @@ -35,7 +35,8 @@ | |||||
| #include "jucer_ProjectBuildInfo.h" | #include "jucer_ProjectBuildInfo.h" | ||||
| #include "jucer_ClientServerMessages.h" | #include "jucer_ClientServerMessages.h" | ||||
| #include "jucer_CompileEngineClient.h" | #include "jucer_CompileEngineClient.h" | ||||
| #include "../LiveBuildEngine/jucer_CompileEngineServer.h" | |||||
| #include "jucer_CompileEngineServer.h" | |||||
| #include "jucer_CompileEngineSettings.h" | |||||
| #ifndef RUN_CLANG_IN_CHILD_PROCESS | #ifndef RUN_CLANG_IN_CHILD_PROCESS | ||||
| #error | #error | ||||
| @@ -106,4 +106,5 @@ private: | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CompileEngineSettings) | |||||
| }; | }; | ||||
| @@ -27,6 +27,7 @@ | |||||
| #include "../../Application/jucer_Headers.h" | #include "../../Application/jucer_Headers.h" | ||||
| #include "jucer_ProjectContentComponent.h" | #include "jucer_ProjectContentComponent.h" | ||||
| #include "../../LiveBuildEngine/jucer_DownloadCompileEngineThread.h" | #include "../../LiveBuildEngine/jucer_DownloadCompileEngineThread.h" | ||||
| #include "../../LiveBuildEngine/jucer_CompileEngineSettings.h" | |||||
| #include "jucer_HeaderComponent.h" | #include "jucer_HeaderComponent.h" | ||||
| #include "Sidebar/jucer_TabComponents.h" | #include "Sidebar/jucer_TabComponents.h" | ||||
| @@ -28,6 +28,7 @@ | |||||
| #include "jucer_Project.h" | #include "jucer_Project.h" | ||||
| #include "../ProjectSaving/jucer_ProjectSaver.h" | #include "../ProjectSaving/jucer_ProjectSaver.h" | ||||
| #include "../Application/jucer_Application.h" | #include "../Application/jucer_Application.h" | ||||
| #include "../LiveBuildEngine/jucer_CompileEngineSettings.h" | |||||
| namespace | namespace | ||||
| { | { | ||||
| @@ -67,6 +68,8 @@ Project::Project (const File& f) | |||||
| projectRoot.addListener (this); | projectRoot.addListener (this); | ||||
| compileEngineSettings.reset (new CompileEngineSettings (projectRoot)); | |||||
| setChangedFlag (false); | setChangedFlag (false); | ||||
| modificationTime = getFile().getLastModificationTime(); | modificationTime = getFile().getLastModificationTime(); | ||||
| } | } | ||||
| @@ -579,6 +582,8 @@ Result Project::loadDocument (const File& file) | |||||
| if (! ProjucerApplication::getApp().isRunningCommandLine) | if (! ProjucerApplication::getApp().isRunningCommandLine) | ||||
| warnAboutOldProjucerVersion(); | warnAboutOldProjucerVersion(); | ||||
| compileEngineSettings.reset (new CompileEngineSettings (projectRoot)); | |||||
| return Result::ok(); | return Result::ok(); | ||||
| } | } | ||||
| @@ -27,12 +27,12 @@ | |||||
| #pragma once | #pragma once | ||||
| #include "jucer_ProjectType.h" | #include "jucer_ProjectType.h" | ||||
| #include "../LiveBuildEngine/jucer_CompileEngineSettings.h" | |||||
| class ProjectExporter; | class ProjectExporter; | ||||
| class LibraryModule; | class LibraryModule; | ||||
| class EnabledModuleList; | class EnabledModuleList; | ||||
| class ProjectContentComponent; | class ProjectContentComponent; | ||||
| class CompileEngineSettings; | |||||
| //============================================================================== | //============================================================================== | ||||
| class Project : public FileBasedDocument, | class Project : public FileBasedDocument, | ||||
| @@ -384,7 +384,7 @@ public: | |||||
| bool shouldSendGUIBuilderAnalyticsEvent() noexcept; | bool shouldSendGUIBuilderAnalyticsEvent() noexcept; | ||||
| //============================================================================== | //============================================================================== | ||||
| CompileEngineSettings& getCompileEngineSettings() { return compileEngineSettings; } | |||||
| CompileEngineSettings& getCompileEngineSettings() { return *compileEngineSettings; } | |||||
| private: | private: | ||||
| ValueTree projectRoot { Ids::JUCERPROJECT }; | ValueTree projectRoot { Ids::JUCERPROJECT }; | ||||
| @@ -398,7 +398,7 @@ private: | |||||
| pluginAUMainTypeValue, pluginRTASCategoryValue, pluginVSTCategoryValue, pluginVST3CategoryValue, pluginAAXCategoryValue; | pluginAUMainTypeValue, pluginRTASCategoryValue, pluginVSTCategoryValue, pluginVST3CategoryValue, pluginAAXCategoryValue; | ||||
| //============================================================================== | //============================================================================== | ||||
| CompileEngineSettings compileEngineSettings { projectRoot }; | |||||
| ScopedPointer<CompileEngineSettings> compileEngineSettings; | |||||
| //============================================================================== | //============================================================================== | ||||
| bool shouldWriteLegacyPluginFormatSettings = false; | bool shouldWriteLegacyPluginFormatSettings = false; | ||||