From ba130cdd8c009503a30790a3d2a67775eff87604 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Thu, 5 Apr 2018 10:23:04 +0100 Subject: [PATCH] Removed the OS X 10.5 and 10.6 deployment target options from the Projucer --- .../ProjectSaving/jucer_ProjectExport_Xcode.h | 38 +++---------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h index 635deb310f..289526dc06 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h @@ -33,7 +33,7 @@ namespace const char* const osxVersionDefault = "10.11"; const char* const iosVersionDefault = "9.3"; - const int oldestSDKVersion = 5; + const int oldestSDKVersion = 7; const int currentSDKVersion = 13; const int minimumAUv3SDKVersion = 11; @@ -421,7 +421,6 @@ protected: osxArchitecture (config, Ids::osxArchitecture, getUndoManager(), osxArch_Default), customXcodeFlags (config, Ids::customXcodeFlags, getUndoManager()), plistPreprocessorDefinitions (config, Ids::plistPreprocessorDefinitions, getUndoManager()), - cppStandardLibrary (config, Ids::cppLibType, getUndoManager()), codeSignIdentity (config, Ids::codeSigningIdentity, getUndoManager(), iOS ? "iPhone Developer" : "Mac Developer"), fastMathEnabled (config, Ids::fastMath, getUndoManager()), stripLocalSymbolsEnabled (config, Ids::stripLocalSymbols, getUndoManager()), @@ -486,11 +485,6 @@ protected: props.add (new TextPropertyComponent (plistPreprocessorDefinitions, "PList Preprocessor Definitions", 2048, true), "Preprocessor definitions used during PList preprocessing (see PList Preprocess)."); - props.add (new ChoicePropertyComponent (cppStandardLibrary, "C++ Library", - { "LLVM libc++", "GNU libstdc++" }, - { "libc++", "libstdc++" }), - "The type of C++ std lib that will be linked."); - props.add (new TextPropertyComponent (codeSignIdentity, "Code-Signing Identity", 1024, false), "The name of a code-signing identity for Xcode to apply."); @@ -513,8 +507,6 @@ protected: bool isFastMathEnabled() const { return fastMathEnabled.get(); } - String getCPPStandardLibraryString() const { return cppStandardLibrary.get(); } - bool isStripLocalSymbolsEnabled() const { return stripLocalSymbolsEnabled.get(); } String getCustomXcodeFlagsString() const { return customXcodeFlags.get(); } @@ -539,7 +531,7 @@ protected: bool iOS; ValueWithDefault osxSDKVersion, osxDeploymentTarget, iosDeploymentTarget, osxArchitecture, - customXcodeFlags, plistPreprocessorDefinitions, cppStandardLibrary, codeSignIdentity, + customXcodeFlags, plistPreprocessorDefinitions, codeSignIdentity, fastMathEnabled, stripLocalSymbolsEnabled, pluginBinaryCopyStepEnabled, vstBinaryLocation, vst3BinaryLocation, auBinaryLocation, rtasBinaryLocation, aaxBinaryLocation; @@ -1128,8 +1120,7 @@ public: : "c++") + cppStandard).quoted()); } - if (config.getCPPStandardLibraryString().isNotEmpty()) - s.set ("CLANG_CXX_LIBRARY", config.getCPPStandardLibraryString().quoted()); + s.set ("CLANG_CXX_LIBRARY", "\"libc++\""); s.set ("COMBINE_HIDPI_IMAGES", "YES"); @@ -1576,8 +1567,8 @@ public: = RelativePath (owner.getAAXPathValue().toString(), RelativePath::projectFolder) .getChildFile ("Libs"); - String libraryPath (config.isDebug() ? "Debug/libAAXLibrary" : "Release/libAAXLibrary"); - libraryPath += (isUsingClangCppLibrary (config) ? "_libcpp.a" : ".a"); + String libraryPath (config.isDebug() ? "Debug" : "Release"); + libraryPath += "/libAAXLibrary_libcpp.a"; extraLibs.add (aaxLibsFolder.getChildFile (libraryPath)); } @@ -1638,25 +1629,6 @@ public: return targetExtraSearchPaths; } - bool isUsingClangCppLibrary (const BuildConfiguration& config) const - { - if (auto xcodeConfig = dynamic_cast (&config)) - { - auto configValue = xcodeConfig->getCPPStandardLibraryString(); - - if (configValue.isNotEmpty()) - return (configValue == "libc++"); - - auto minorOSXDeploymentTarget = getOSXDeploymentTarget (*xcodeConfig) - .fromLastOccurrenceOf (".", false, false) - .getIntValue(); - - return (minorOSXDeploymentTarget > 8); - } - - return false; - } - String getOSXDeploymentTarget (const XcodeBuildConfiguration& config, String* sdkRoot = nullptr) const { auto sdk = config.getOSXSDKVersionString() + " SDK";