mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Migrate old iOS deployment target setting
This commit is contained in:
parent
40b46f8280
commit
79f1ffec2e
1 changed files with 8 additions and 7 deletions
|
|
@ -953,21 +953,22 @@ protected:
|
|||
|
||||
void updateOldSDKDefaults()
|
||||
{
|
||||
if (config[Ids::iosCompatibility].toString() == "default") iosDeploymentTarget.resetToDefault();
|
||||
if (macOSArchitecture.get() == "default") macOSArchitecture.resetToDefault();
|
||||
if (macOSArchitecture.get() == "default")
|
||||
macOSArchitecture.resetToDefault();
|
||||
|
||||
const auto updateSDKString = [this] (const Identifier& propertyName, ValueWithDefault& value)
|
||||
const auto updateSDKString = [this] (const Identifier& propertyName, ValueWithDefault& value, const String& suffix)
|
||||
{
|
||||
auto sdkString = config[propertyName].toString();
|
||||
|
||||
if (sdkString == "default")
|
||||
value.resetToDefault();
|
||||
else if (sdkString.isNotEmpty() && sdkString.contains (" SDK"))
|
||||
value = sdkString.upToFirstOccurrenceOf (" SDK", false, false);
|
||||
else if (sdkString.isNotEmpty() && sdkString.endsWith (suffix))
|
||||
value = sdkString.upToLastOccurrenceOf (suffix, false, false);
|
||||
};
|
||||
|
||||
updateSDKString (Ids::osxSDK, macOSBaseSDK);
|
||||
updateSDKString (Ids::osxCompatibility, macOSDeploymentTarget);
|
||||
updateSDKString (Ids::osxSDK, macOSBaseSDK, " SDK");
|
||||
updateSDKString (Ids::osxCompatibility, macOSDeploymentTarget, " SDK");
|
||||
updateSDKString (Ids::iosCompatibility, iosDeploymentTarget, {});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue