Browse Source

Introjucer: fixed some AAX + RTAS paths.

tags/2021-05-28
jules 13 years ago
parent
commit
7875fffa2a
1 changed files with 15 additions and 11 deletions
  1. +15
    -11
      extras/Introjucer/Source/Project/jucer_AudioPluginModule.h

+ 15
- 11
extras/Introjucer/Source/Project/jucer_AudioPluginModule.h View File

@@ -190,6 +190,13 @@ namespace
return exporter.getVisualStudioVersion() < 10 ? CodeHelpers::addEscapeChars (text.quoted()) return exporter.getVisualStudioVersion() < 10 ? CodeHelpers::addEscapeChars (text.quoted())
: CodeHelpers::addEscapeChars (text).quoted(); : CodeHelpers::addEscapeChars (text).quoted();
} }
String createRebasedPath (ProjectExporter& exporter, const RelativePath& path)
{
return createEscapedStringForVersion (exporter,
exporter.rebaseFromProjectFolderToBuildTarget (path)
.toWindowsStyle());
}
} }
//============================================================================== //==============================================================================
@@ -264,11 +271,6 @@ namespace RTASHelpers
static bool isExporterSupported (ProjectExporter& exporter) { return exporter.isVisualStudio() || exporter.isXcode(); } static bool isExporterSupported (ProjectExporter& exporter) { return exporter.isVisualStudio() || exporter.isXcode(); }
static RelativePath getRTASFolderRelativePath (ProjectExporter& exporter)
{
return exporter.rebaseFromProjectFolderToBuildTarget (getRTASFolderPath (exporter));
}
static void fixMissingRTASValues (ProjectExporter& exporter) static void fixMissingRTASValues (ProjectExporter& exporter)
{ {
if (getRTASFolder (exporter).toString().isEmpty()) if (getRTASFolder (exporter).toString().isEmpty())
@@ -306,6 +308,7 @@ namespace RTASHelpers
"AlturaPorts/TDMPlugins/PluginLibrary/Interfaces", "AlturaPorts/TDMPlugins/PluginLibrary/Interfaces",
"AlturaPorts/TDMPlugins/common", "AlturaPorts/TDMPlugins/common",
"AlturaPorts/TDMPlugins/common/Platform", "AlturaPorts/TDMPlugins/common/Platform",
"AlturaPorts/TDMPlugins/common/Macros",
"AlturaPorts/TDMPlugins/SignalProcessing/Public", "AlturaPorts/TDMPlugins/SignalProcessing/Public",
"AlturaPorts/TDMPlugIns/DSPManager/Interfaces", "AlturaPorts/TDMPlugIns/DSPManager/Interfaces",
"AlturaPorts/SADriver/Interfaces", "AlturaPorts/SADriver/Interfaces",
@@ -368,12 +371,15 @@ namespace RTASHelpers
{ {
fixMissingRTASValues (exporter); fixMissingRTASValues (exporter);
const RelativePath rtasFolder (getRTASFolderPath (exporter));
if (exporter.isVisualStudio()) if (exporter.isVisualStudio())
{ {
exporter.msvcTargetSuffix = ".dpm"; exporter.msvcTargetSuffix = ".dpm";
String winbag (getRTASFolderRelativePath (exporter).getChildFile ("WinBag").toWindowsStyle());
exporter.msvcExtraPreprocessorDefs.set ("JucePlugin_WinBag_path", createEscapedStringForVersion (exporter, winbag));
exporter.msvcExtraPreprocessorDefs.set ("JucePlugin_WinBag_path",
createRebasedPath (exporter,
rtasFolder.getChildFile ("WinBag")));
RelativePath juceFolder (exporter.getJucePathFromTargetFolder()); RelativePath juceFolder (exporter.getJucePathFromTargetFolder());
if (juceFolder.getFileName() != "modules") if (juceFolder.getFileName() != "modules")
@@ -404,7 +410,6 @@ namespace RTASHelpers
{ {
exporter.xcodeCanUseDwarf = false; exporter.xcodeCanUseDwarf = false;
RelativePath rtasFolder (getRTASFolderPath (exporter));
exporter.xcodeExtraLibrariesDebug.add (rtasFolder.getChildFile ("MacBag/Libs/Debug/libPluginLibrary.a")); exporter.xcodeExtraLibrariesDebug.add (rtasFolder.getChildFile ("MacBag/Libs/Debug/libPluginLibrary.a"));
exporter.xcodeExtraLibrariesRelease.add (rtasFolder.getChildFile ("MacBag/Libs/Release/libPluginLibrary.a")); exporter.xcodeExtraLibrariesRelease.add (rtasFolder.getChildFile ("MacBag/Libs/Release/libPluginLibrary.a"));
} }
@@ -580,9 +585,8 @@ namespace AAXHelpers
if (config->getValue (Ids::useRuntimeLibDLL).getValue().isVoid()) if (config->getValue (Ids::useRuntimeLibDLL).getValue().isVoid())
config->getValue (Ids::useRuntimeLibDLL) = true; config->getValue (Ids::useRuntimeLibDLL) = true;
exporter.msvcExtraPreprocessorDefs
.set ("JucePlugin_AAXLibs_path",
createEscapedStringForVersion (exporter, aaxLibsFolder.toWindowsStyle()));
exporter.msvcExtraPreprocessorDefs.set ("JucePlugin_AAXLibs_path",
createRebasedPath (exporter, aaxLibsFolder));
} }
else else
{ {


Loading…
Cancel
Save