Use gif/jpeg plugins on MacOS.
This commit is contained in:
+4
-1
@@ -23,6 +23,8 @@ cp -R ./data $RESOURCES
|
|||||||
# create framework-path
|
# create framework-path
|
||||||
BINARY_FW_PATH="$APPLICATION/Contents/Frameworks"
|
BINARY_FW_PATH="$APPLICATION/Contents/Frameworks"
|
||||||
mkdir $BINARY_FW_PATH
|
mkdir $BINARY_FW_PATH
|
||||||
|
QT_PLUGIN_PATH="$APPLICATION/Contents/plugins/imageformats"
|
||||||
|
mkdir -p $QT_PLUGIN_PATH
|
||||||
|
|
||||||
# integrate SDL-frameworks into binary
|
# integrate SDL-frameworks into binary
|
||||||
cp -R $SDL_FW_PATH/SDL.framework $BINARY_FW_PATH
|
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
|
# integrate Qt-frameworks into binary
|
||||||
|
|
||||||
if [ "$1" != "--without-qt" ] ; then
|
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/QtCore.framework $BINARY_FW_PATH
|
||||||
cp -R $QT_FW_PATH/QtGui.framework $BINARY_FW_PATH
|
cp -R $QT_FW_PATH/QtGui.framework $BINARY_FW_PATH
|
||||||
|
|
||||||
|
|||||||
@@ -113,6 +113,13 @@ int main( int argc, char **argv )
|
|||||||
a.installTranslator(&translator);
|
a.installTranslator(&translator);
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
QDir dir(QApplication::applicationDirPath());
|
||||||
|
dir.cdUp();
|
||||||
|
dir.cd("plugins");
|
||||||
|
QApplication::setLibraryPaths(QStringList(dir.absolutePath()));
|
||||||
|
#endif
|
||||||
|
|
||||||
qRegisterMetaType<unsigned>("unsigned");
|
qRegisterMetaType<unsigned>("unsigned");
|
||||||
qRegisterMetaType<boost::shared_ptr<Game> >("boost::shared_ptr<Game>");
|
qRegisterMetaType<boost::shared_ptr<Game> >("boost::shared_ptr<Game>");
|
||||||
qRegisterMetaType<ServerStats>("ServerStats");
|
qRegisterMetaType<ServerStats>("ServerStats");
|
||||||
|
|||||||
Reference in New Issue
Block a user