Use gif/jpeg plugins on MacOS.

This commit is contained in:
lotodore
2007-12-13 19:52:48 +00:00
parent a0a4c68f10
commit b62765c517
2 changed files with 11 additions and 1 deletions
+4 -1
View File
@@ -23,6 +23,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
# integrate SDL-frameworks into binary
cp -R $SDL_FW_PATH/SDL.framework $BINARY_FW_PATH
@@ -31,7 +33,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 -R $QT_FW_PATH/QtCore.framework $BINARY_FW_PATH
cp -R $QT_FW_PATH/QtGui.framework $BINARY_FW_PATH
+7
View File
@@ -113,6 +113,13 @@ int main( int argc, char **argv )
a.installTranslator(&translator);
#ifdef __APPLE__
QDir dir(QApplication::applicationDirPath());
dir.cdUp();
dir.cd("plugins");
QApplication::setLibraryPaths(QStringList(dir.absolutePath()));
#endif
qRegisterMetaType<unsigned>("unsigned");
qRegisterMetaType<boost::shared_ptr<Game> >("boost::shared_ptr<Game>");
qRegisterMetaType<ServerStats>("ServerStats");