From fc02cf004a979f1222499a0ccc88ae49e074281d Mon Sep 17 00:00:00 2001 From: Marco Antognini Date: Mon, 12 Mar 2018 07:32:51 +0100 Subject: [PATCH] Remove C++ dialect & std lib selection from Xcode templates --- .../TemplateInfo.plist.in | 78 +++---------------- tools/xcode/templates/readme.txt | 20 ++--- 2 files changed, 18 insertions(+), 80 deletions(-) diff --git a/tools/xcode/templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist.in b/tools/xcode/templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist.in index 30b6a10cc..b0e9acff9 100644 --- a/tools/xcode/templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist.in +++ b/tools/xcode/templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist.in @@ -44,74 +44,6 @@ subject to the following restrictions: Kind Xcode.Xcode3.ProjectTemplateUnitKind - - Options - - - Identifier - compilerSettingsType - - Name - [ADVANCED] C++ Compiler and Standard Library - - Description - If you don't know what is it about, use the default value. Note that you'll need a version of SFML compiled with Clang and libc++ to use C++11! - - Default - C++11 with Clang and libc++ - - NotPersisted - - - Type - popup - - Units - - - C++98 with Clang and libstdc++ - - Project - - SharedSettings - - GCC_VERSION - com.apple.compilers.llvm.clang.1_0 - - CLANG_CXX_LANGUAGE_STANDARD - c++98 - - CLANG_CXX_LIBRARY - libstdc++ - - - - - - C++11 with Clang and libc++ - - Project - - SharedSettings - - GCC_VERSION - com.apple.compilers.llvm.clang.1_0 - - CLANG_CXX_LANGUAGE_STANDARD - c++0x - - CLANG_CXX_LIBRARY - libc++ - - - - - - - - @@ -123,6 +55,16 @@ subject to the following restrictions: SUPPORTED_PLATFORMS macosx + + GCC_VERSION + com.apple.compilers.llvm.clang.1_0 + + CLANG_CXX_LANGUAGE_STANDARD + c++11 + + CLANG_CXX_LIBRARY + libc++ + ARCHS @XCODE_TEMPLATES_ARCH@ diff --git a/tools/xcode/templates/readme.txt b/tools/xcode/templates/readme.txt index 1770cf65e..40f55ddbd 100644 --- a/tools/xcode/templates/readme.txt +++ b/tools/xcode/templates/readme.txt @@ -27,7 +27,6 @@ Features * You can choose between command line tool or bundle application, the latter will contains all SFML dependencies so you can run your app on another computer without manually installing SFML. * You can choose between using SFML libraries as dylibs or frameworks. - * You can choose your compiler and C++ standard library / dialect. * You can choose with SFML module you want to use into your project. * You automatically get a basic example to test SFML right away. @@ -38,13 +37,10 @@ Prerequisites Before installing the template, make sure you have installed: - - Xcode 4 or greater, up to date - - the Command Line Tools - - SFML 2, either as frameworks or dylibs + - Xcode 4 or greater, up to date; + - the Command Line Tools; + - SFML 2, either as frameworks or dylibs, as described in the official tutorials. -There is one constraint on the installation of SFML: the frameworks needs to be installed in -/Library/Frameworks and the dylibs into /usr/local/lib. You don't need both but make sure they are -in the correct folder. You should also be familiar with Xcode. If needed checkout this document: http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/000-About_Xcode/about.html @@ -144,10 +140,10 @@ FAQ * I get strange linker error about std::string and other STL types. What should I do? - This probably means you're compiling your project against a different implementation of the STL - than SFML. When you created the project, you might have chosen the wrong C++ compiler & standard - library. You can update your project's build settings; more specifically the Compiler for - C/C++/Objective-C, the C++ language Dialect and the C++ Standard Library. You can find more - information in the getting started tutorial for Mac OS X on the official web site. + This probably means you're compiling your project against a different + implementation of the STL than the one used by SFML. You can update your + project build settings to match the settings used to compile SFML; more + specifically the Compiler for C/C++/Objective-C, the C++ language Dialect + and the C++ Standard Library.