Minor improvement of Xcode templates

This commit is contained in:
Marco Antognini 2013-09-21 15:06:56 +02:00
parent c83027ec9c
commit 00bc73f1f3

View File

@ -3,9 +3,9 @@
<!--
SFML - Simple and Fast Multimedia Library
Copyright (C) 2007-2013 Marco Antognini (antognini.marco@gmail.com),
Laurent Gomila (laurent.gom@gmail.com),
Copyright (C) 2007-2013 Marco Antognini (antognini.marco@gmail.com),
Laurent Gomila (laurent.gom@gmail.com),
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
@ -17,10 +17,10 @@ subject to the following restrictions:
you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment
in the product documentation would be appreciated but is not required.
2. Altered source versions must be plainly marked as such,
and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
-->
@ -84,14 +84,14 @@ subject to the following restrictions:
<key>TargetIndices</key>
<array /> <!-- don't copy it to "Resources" ! -->
</dict>
<!-- MAIN -->
<key>main.cpp</key>
<dict>
<key>Path</key>
<string>main.cpp</string>
</dict>
<!-- RESOURCES -->
<key>cute_image.jpg</key>
<dict>
@ -100,7 +100,7 @@ subject to the following restrictions:
<key>Group</key>
<string>Resources</string>
</dict>
<key>nice_music.ogg</key>
<dict>
<key>Path</key>
@ -108,7 +108,7 @@ subject to the following restrictions:
<key>Group</key>
<string>Resources</string>
</dict>
<key>sansation.ttf</key>
<dict>
<key>Path</key>
@ -116,7 +116,7 @@ subject to the following restrictions:
<key>Group</key>
<string>Resources</string>
</dict>
<key>icon.png</key>
<dict>
<key>Path</key>
@ -125,7 +125,7 @@ subject to the following restrictions:
<string>Resources</string>
</dict>
</dict>
<!--
COPY LIBRARY PHASE
-->
@ -195,7 +195,7 @@ copy () # $1 is a source, $2 is a destination
require () # $1 is a SFML module like 'system' or 'audio'
{
dest="$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.app/Contents/Frameworks"
if [ -z "$1" ]
then
error "require() requires one parameter!"
@ -204,18 +204,18 @@ require () # $1 is a SFML module like 'system' or 'audio'
force_remove "$dest/libsfml-$1.2.dylib"
force_remove "$dest/libsfml-$1-d.2.dylib"
force_remove "$dest/sfml-$1.framework"
# copy SFML libraries
if [ "$frameworks" = "true" ]
then
copy "/Library/Frameworks/sfml-$1.framework" "$dest/sfml-$1.framework"
elif [ $CONFIGURATION = "Debug" ] &amp;&amp; [ $SFML_LINK_DYLIBS_SUFFIX_DEBUG != "" ]
elif [ "$SFML_LINK_DYLIBS_SUFFIX" = "-d" ]
then
copy "/usr/local/lib/libsfml-$1-d.2.dylib" "$dest/libsfml-$1-d.2.dylib"
else
copy "/usr/local/lib/libsfml-$1.2.dylib" "$dest/libsfml-$1.2.dylib"
fi
if [ "$1" = "audio" ]
then
# copy sndfile framework too