Improved Xcode templates and the readme (Close #224)

This commit is contained in:
Marco Antognini 2012-07-08 19:21:15 +02:00
parent 51680ac49c
commit bfda3b8c34
3 changed files with 34 additions and 41 deletions

View File

@ -66,14 +66,8 @@ subject to the following restrictions:
<dict> <dict>
<key>SharedSettings</key> <key>SharedSettings</key>
<dict> <dict>
<key>SFML_LINK_PREFIX</key> <key>SFML_BINARY_TYPE</key>
<string>$(SFML_LINK_FRAMEWORKS_PREFIX)</string> <string>FRAMEWORKS</string>
<key>SFML_LINK_SUFFIX</key>
<string>$(SFML_LINK_FRAMEWORKS_SUFFIX)</string>
<key>HEADER_SEARCH_PATHS</key>
<string>$(HEADER_SEARCH_PATHS)</string>
</dict> </dict>
</dict> </dict>
</dict> </dict>
@ -85,14 +79,8 @@ subject to the following restrictions:
<dict> <dict>
<key>SharedSettings</key> <key>SharedSettings</key>
<dict> <dict>
<key>SFML_LINK_PREFIX</key> <key>SFML_BINARY_TYPE</key>
<string>$(SFML_LINK_DYLIBS_PREFIX)</string> <string>DYLIBS</string>
<key>SFML_LINK_SUFFIX</key>
<string>$(SFML_LINK_DYLIBS_SUFFIX)</string>
<key>HEADER_SEARCH_PATHS</key>
<string>$(HEADER_SEARCH_PATHS) /usr/local/include/</string>
</dict> </dict>
</dict> </dict>
</dict> </dict>
@ -658,6 +646,12 @@ while (window.isOpen())
<key>SFML_LINK_FRAMEWORKS_SUFFIX</key> <key>SFML_LINK_FRAMEWORKS_SUFFIX</key>
<string></string> <string></string>
<key>SFML_LINK_PREFIX</key>
<string>$(SFML_LINK_$(SFML_BINARY_TYPE)_PREFIX)</string>
<key>SFML_LINK_SUFFIX</key>
<string>$(SFML_LINK_$(SFML_BINARY_TYPE)_SUFFIX)</string>
<key>CLANG_ENABLE_OBJC_ARC</key> <key>CLANG_ENABLE_OBJC_ARC</key>
<string></string> <string></string>

View File

@ -66,14 +66,8 @@ subject to the following restrictions:
<dict> <dict>
<key>SharedSettings</key> <key>SharedSettings</key>
<dict> <dict>
<key>SFML_LINK_PREFIX</key> <key>SFML_BINARY_TYPE</key>
<string>$(SFML_LINK_FRAMEWORKS_PREFIX)</string> <string>FRAMEWORKS</string>
<key>SFML_LINK_SUFFIX</key>
<string>$(SFML_LINK_FRAMEWORKS_SUFFIX)</string>
<key>HEADER_SEARCH_PATHS</key>
<string>$(HEADER_SEARCH_PATHS)</string>
</dict> </dict>
</dict> </dict>
</dict> </dict>
@ -85,14 +79,8 @@ subject to the following restrictions:
<dict> <dict>
<key>SharedSettings</key> <key>SharedSettings</key>
<dict> <dict>
<key>SFML_LINK_PREFIX</key> <key>SFML_BINARY_TYPE</key>
<string>$(SFML_LINK_DYLIBS_PREFIX)</string> <string>DYLIBS</string>
<key>SFML_LINK_SUFFIX</key>
<string>$(SFML_LINK_DYLIBS_SUFFIX)</string>
<key>HEADER_SEARCH_PATHS</key>
<string>$(HEADER_SEARCH_PATHS) /usr/local/include/</string>
</dict> </dict>
</dict> </dict>
</dict> </dict>
@ -655,6 +643,12 @@ while (window.isOpen())
<key>SFML_LINK_FRAMEWORKS_SUFFIX</key> <key>SFML_LINK_FRAMEWORKS_SUFFIX</key>
<string></string> <string></string>
<key>SFML_LINK_PREFIX</key>
<string>$(SFML_LINK_$(SFML_BINARY_TYPE)_PREFIX)</string>
<key>SFML_LINK_SUFFIX</key>
<string>$(SFML_LINK_$(SFML_BINARY_TYPE)_SUFFIX)</string>
<key>CLANG_ENABLE_OBJC_ARC</key> <key>CLANG_ENABLE_OBJC_ARC</key>
<string></string> <string></string>

View File

@ -47,13 +47,18 @@ Question & Answer
2. select your project's target on the main area, 2. select your project's target on the main area,
3. go to the "Build Settings" tab, 3. go to the "Build Settings" tab,
4. go down to the bottom, 4. go down to the bottom,
5. update SFML_LINK_PREFIX and SFML_LINK_SUFFIX as follow : 5. set SFML_BINARY_TYPE either to "DYLIBS" or "FRAMEWORKS".
* if you want to use frameworks, then
1. set SFML_LINK_PREFIX to "$(SFML_LINK_FRAMEWORKS_PREFIX)",
2. set SFML_LINK_SUFFIX to "$(SFML_LINK_FRAMEWORKS_SUFFIX)" * How to use/don't use debug dylibs ?
* if you want to use dylibs, then
1. set SFML_LINK_PREFIX to "$(SFML_LINK_DYLIBS_PREFIX)", You can choose to use or not SFML debug binaries when creating a new project. However, if you have already created your project you can do the following :
2. set SFML_LINK_SUFFIX to "$(SFML_LINK_DYLIBS_SUFFIX)"
1. select your project from the project navigator panel,
2. select your project's target on the main area,
3. go to the "Build Settings" tab,
4. go down to the bottom,
5. set SFML_LINK_DYLIBS_SUFFIX_DEBUG to "-d" to use them or to "" (empty string) to use only release binary.
* I want to use the static version of SFML. Is it possible ? * I want to use the static version of SFML. Is it possible ?