mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
Projucer: Set the OSX deployment target of the aggregate target for use in pre-/post-build scripts
This commit is contained in:
parent
e65708eb4c
commit
1bea9dd0f8
1 changed files with 16 additions and 7 deletions
|
|
@ -831,13 +831,22 @@ public:
|
|||
//==============================================================================
|
||||
StringArray getTargetSettings (const XcodeBuildConfiguration& config) const
|
||||
{
|
||||
if (type == AggregateTarget)
|
||||
// the aggregate target should not specify any settings at all!
|
||||
// it just defines dependencies on the other targets.
|
||||
return {};
|
||||
|
||||
StringArray s;
|
||||
|
||||
if (type == AggregateTarget && ! owner.isiOS())
|
||||
{
|
||||
// the aggregate target needs to have the deployment target set for
|
||||
// pre-/post-build scripts
|
||||
|
||||
String sdkRoot;
|
||||
s.add ("MACOSX_DEPLOYMENT_TARGET = " + getOSXDeploymentTarget (config, &sdkRoot));
|
||||
|
||||
if (sdkRoot.isNotEmpty())
|
||||
s.add ("SDKROOT = " + sdkRoot);
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
String bundleIdentifier = owner.project.getBundleIdentifier().toString();
|
||||
if (xcodeBundleIDSubPath.isNotEmpty())
|
||||
{
|
||||
|
|
@ -945,7 +954,7 @@ public:
|
|||
else
|
||||
{
|
||||
String sdkRoot;
|
||||
s.add ("MACOSX_DEPLOYMENT_TARGET = " + getOSXDeploymentTarget(config, &sdkRoot));
|
||||
s.add ("MACOSX_DEPLOYMENT_TARGET = " + getOSXDeploymentTarget (config, &sdkRoot));
|
||||
|
||||
if (sdkRoot.isNotEmpty())
|
||||
s.add ("SDKROOT = " + sdkRoot);
|
||||
|
|
@ -1496,7 +1505,7 @@ public:
|
|||
|
||||
// The AUv3 target always needs to be at least 10.11
|
||||
int oldestAllowedDeploymentTarget = (type == Target::AudioUnitv3PlugIn ? minimumAUv3SDKVersion
|
||||
: oldestSDKVersion);
|
||||
: oldestSDKVersion);
|
||||
|
||||
// if the user doesn't set it, then use the last known version that works well with JUCE
|
||||
String deploymentTarget = "10.11";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue