Browse Source

Projucer: Ensure that per-exporter SDK paths are backwards compatible

tags/2021-05-28
ed 6 years ago
parent
commit
0f103ac7e7
3 changed files with 13 additions and 13 deletions
  1. +3
    -3
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h
  2. +3
    -3
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h
  3. +7
    -7
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExporter.h

+ 3
- 3
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h View File

@@ -136,9 +136,9 @@ public:
//==============================================================================
void initialiseDependencyPathValues() override
{
vst3PathValueWrapper.init (settings, Ids::vst3Path, TargetOS::windows);
aaxPathValueWrapper .init (settings, Ids::aaxPath, TargetOS::windows);
rtasPathValueWrapper.init (settings, Ids::rtasPath, TargetOS::windows);
vst3PathValueWrapper.init ({ settings, Ids::vst3Folder, nullptr }, getAppSettings().getStoredPath (Ids::vst3Path, TargetOS::windows), TargetOS::windows);
aaxPathValueWrapper .init ({ settings, Ids::aaxFolder, nullptr }, getAppSettings().getStoredPath (Ids::aaxPath, TargetOS::windows), TargetOS::windows);
rtasPathValueWrapper.init ({ settings, Ids::rtasFolder, nullptr }, getAppSettings().getStoredPath (Ids::rtasPath, TargetOS::windows), TargetOS::windows);
}
//==============================================================================


+ 3
- 3
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h View File

@@ -445,9 +445,9 @@ public:
//==============================================================================
void initialiseDependencyPathValues() override
{
vst3PathValueWrapper.init (settings, Ids::vst3Path, TargetOS::osx);
aaxPathValueWrapper .init (settings, Ids::aaxPath, TargetOS::osx);
rtasPathValueWrapper.init (settings, Ids::rtasPath, TargetOS::osx);
vst3PathValueWrapper.init ({ settings, Ids::vst3Folder, nullptr }, getAppSettings().getStoredPath (Ids::vst3Path, TargetOS::osx), TargetOS::osx);
aaxPathValueWrapper .init ({ settings, Ids::aaxFolder, nullptr }, getAppSettings().getStoredPath (Ids::aaxPath, TargetOS::osx), TargetOS::osx);
rtasPathValueWrapper.init ({ settings, Ids::rtasFolder, nullptr }, getAppSettings().getStoredPath (Ids::rtasPath, TargetOS::osx), TargetOS::osx);
}
protected:


+ 7
- 7
extras/Projucer/Source/ProjectSaving/jucer_ProjectExporter.h View File

@@ -374,26 +374,26 @@ protected:
// Used for the VST3, RTAS and AAX project-specific path options.
struct ValueWithDefaultWrapper : public Value::Listener
{
void init (ValueTree tree, const Identifier& identifierToUse, TargetOS::OS targetOS)
void init (const ValueWithDefault& vwd, ValueWithDefault global, TargetOS::OS targetOS)
{
identifier = identifierToUse;
wrappedValue = vwd;
globalValue = global.getPropertyAsValue();
globalIdentifier = global.getPropertyID();
os = targetOS;
globalValue = getAppSettings().getStoredPath (identifier, os).getPropertyAsValue();
globalValue.addListener (this);
wrappedValue.referTo (tree, identifier, nullptr, getAppSettings().getStoredPath (identifier, os).get());
valueChanged (globalValue);
}
void valueChanged (Value&) override
{
wrappedValue.setDefault (getAppSettings().getStoredPath (identifier, os).get());
wrappedValue.setDefault (getAppSettings().getStoredPath (globalIdentifier, os).get());
}
ValueWithDefault wrappedValue;
Value globalValue;
Identifier identifier;
Identifier globalIdentifier;
TargetOS::OS os;
};


Loading…
Cancel
Save