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