Make qt plugin stuff a bit nicer...

This commit is contained in:
lotodore
2007-12-13 20:06:55 +00:00
parent b62765c517
commit a666130277
+5 -4
View File
@@ -11,6 +11,7 @@
# (see http://trolltech.com/developer/downloads/qt/mac)
QT_FW_PATH="/Library/Frameworks"
QT_PLUGIN_PATH="/Developer/Applications/Qt/plugins"
SDL_FW_PATH="/Library/Frameworks"
APPLICATION="./pokerth.app"
BINARY="$APPLICATION/Contents/MacOs/pokerth"
@@ -23,8 +24,8 @@ cp -R ./data $RESOURCES
# create framework-path
BINARY_FW_PATH="$APPLICATION/Contents/Frameworks"
mkdir $BINARY_FW_PATH
QT_PLUGIN_PATH="$APPLICATION/Contents/plugins/imageformats"
mkdir -p $QT_PLUGIN_PATH
BINARY_PLUGIN_PATH="$APPLICATION/Contents/plugins/imageformats"
mkdir -p $BINARY_PLUGIN_PATH
# integrate SDL-frameworks into binary
cp -R $SDL_FW_PATH/SDL.framework $BINARY_FW_PATH
@@ -33,8 +34,8 @@ cp -R $SDL_FW_PATH/SDL_mixer.framework $BINARY_FW_PATH
# integrate Qt-frameworks into binary
if [ "$1" != "--without-qt" ] ; then
cp /Developer/Applications/Qt/plugins/imageformats/libqgif.dylib $QT_PLUGIN_PATH
cp /Developer/Applications/Qt/plugins/imageformats/libqjpeg.dylib $QT_PLUGIN_PATH
cp $QT_PLUGIN_PATH/imageformats/libqgif.dylib $BINARY_PLUGIN_PATH
cp $QT_PLUGIN_PATH/imageformats/libqjpeg.dylib $BINARY_PLUGIN_PATH
cp -R $QT_FW_PATH/QtCore.framework $BINARY_FW_PATH
cp -R $QT_FW_PATH/QtGui.framework $BINARY_FW_PATH