From bdfc2dc3f538605d5e9d7a09a04f87b2a02d2b3f Mon Sep 17 00:00:00 2001 From: Marco Antognini Date: Mon, 16 Jul 2012 17:34:26 +0200 Subject: [PATCH] Improved Xcode templates --- .../SFML Application Base.xctemplate/TemplateInfo.plist | 7 +++++-- .../TemplateInfo.plist | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/xcode/templates/SFML/SFML Application Base.xctemplate/TemplateInfo.plist b/tools/xcode/templates/SFML/SFML Application Base.xctemplate/TemplateInfo.plist index 18c19873b..23ed4e7f2 100644 --- a/tools/xcode/templates/SFML/SFML Application Base.xctemplate/TemplateInfo.plist +++ b/tools/xcode/templates/SFML/SFML Application Base.xctemplate/TemplateInfo.plist @@ -68,6 +68,9 @@ subject to the following restrictions: SFML_BINARY_TYPE FRAMEWORKS + + SFML_LINK_DYLIBS_SUFFIX_DEBUG + @@ -616,7 +619,7 @@ while (window.isOpen()) main.cpp:main:audio_loop while (music.getStatus() == sf::Music::Playing) { - sf::Sleep(100); + sf::sleep(sf::microseconds(100)); } @@ -742,7 +745,7 @@ require () # $1 is a SFML module like 'system' or 'audio' if [ "$frameworks" = "true" ] then ditto "/Library/Frameworks/sfml-$1.framework" "$dest/sfml-$1.framework" - elif [ $CONFIGURATION = "Debug" ] && [ $SFML_LINK_DYLIBS_SUFFIX_DEBUG != "" ] + elif [ $CONFIGURATION = "Debug" ] && [ $SFML_LINK_DYLIBS_SUFFIX_DEBUG != "" ] then ditto "/usr/local/lib/libsfml-$1-d.2.dylib" "$dest/libsfml-$1-d.2.dylib" else diff --git a/tools/xcode/templates/SFML/SFML Command Line Tool Base.xctemplate/TemplateInfo.plist b/tools/xcode/templates/SFML/SFML Command Line Tool Base.xctemplate/TemplateInfo.plist index bd475d26c..75df00b27 100644 --- a/tools/xcode/templates/SFML/SFML Command Line Tool Base.xctemplate/TemplateInfo.plist +++ b/tools/xcode/templates/SFML/SFML Command Line Tool Base.xctemplate/TemplateInfo.plist @@ -68,6 +68,9 @@ subject to the following restrictions: SFML_BINARY_TYPE FRAMEWORKS + + SFML_LINK_DYLIBS_SUFFIX_DEBUG + @@ -613,7 +616,7 @@ while (window.isOpen()) main.cpp:main:audio_loop while (music.getStatus() == sf::Music::Playing) { - sf::Sleep(100); + sf::sleep(sf::microseconds(100)); }