mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
AAX: Use unity build style for the AAX_SDK
JUCE no longer depends on built artifacts of the AAX_SDK
This commit is contained in:
parent
dab95a8404
commit
d037d45e3b
6 changed files with 141 additions and 86 deletions
|
|
@ -1718,8 +1718,8 @@ public:
|
|||
s.set ("COMBINE_HIDPI_IMAGES", "YES");
|
||||
|
||||
{
|
||||
StringArray linkerFlags, librarySearchPaths;
|
||||
getLinkerSettings (config, linkerFlags, librarySearchPaths);
|
||||
StringArray linkerFlags;
|
||||
getLinkerSettings (config, linkerFlags);
|
||||
|
||||
for (const auto& weakFramework : owner.xcodeWeakFrameworks)
|
||||
linkerFlags.add ("-weak_framework " + weakFramework);
|
||||
|
|
@ -1727,6 +1727,7 @@ public:
|
|||
if (linkerFlags.size() > 0)
|
||||
s.set ("OTHER_LDFLAGS", linkerFlags.joinIntoString (" ").quoted());
|
||||
|
||||
StringArray librarySearchPaths;
|
||||
librarySearchPaths.addArray (config.getLibrarySearchPaths());
|
||||
|
||||
if (type == LV2PlugIn)
|
||||
|
|
@ -1819,23 +1820,13 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
void getLinkerSettings (const BuildConfiguration& config, StringArray& flags, StringArray& librarySearchPaths) const
|
||||
void getLinkerSettings (const BuildConfiguration& config, StringArray& flags) const
|
||||
{
|
||||
if (getTargetFileType() == pluginBundle)
|
||||
flags.add (owner.isiOS() ? "-bitcode_bundle" : "-bundle");
|
||||
|
||||
if (type != Target::SharedCodeTarget && type != Target::LV2TurtleProgram)
|
||||
{
|
||||
Array<build_tools::RelativePath> extraLibs;
|
||||
|
||||
addExtraLibsForTargetType (config, extraLibs);
|
||||
|
||||
for (auto& lib : extraLibs)
|
||||
{
|
||||
flags.add (getLinkerFlagForLib (lib.getFileNameWithoutExtension()));
|
||||
librarySearchPaths.add (owner.getSearchPathForStaticLibrary (lib));
|
||||
}
|
||||
|
||||
if (owner.project.isAudioPluginProject())
|
||||
{
|
||||
if (owner.getTargetOfType (Target::SharedCodeTarget) != nullptr)
|
||||
|
|
@ -2016,19 +2007,6 @@ public:
|
|||
xcodeFrameworks.add ("AudioUnit");
|
||||
}
|
||||
|
||||
void addExtraLibsForTargetType (const BuildConfiguration& config, Array<build_tools::RelativePath>& extraLibs) const
|
||||
{
|
||||
if (type == AAXPlugIn)
|
||||
{
|
||||
auto aaxLibsFolder = build_tools::RelativePath (owner.getAAXPathString(), build_tools::RelativePath::projectFolder).getChildFile ("Libs");
|
||||
|
||||
String libraryPath (config.isDebug() ? "Debug" : "Release");
|
||||
libraryPath += "/libAAXLibrary_libcpp.a";
|
||||
|
||||
extraLibs.add (aaxLibsFolder.getChildFile (libraryPath));
|
||||
}
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
const XcodeProjectExporter& owner;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue