Merge remote-tracking branch 'WagicProject/master'

This commit is contained in:
Anthony Calosa
2015-08-15 22:23:00 +08:00
14 changed files with 322 additions and 231 deletions

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleGetInfoString</key>
<string>Created by Qt/QMake</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleExecutable</key>
<string>wagic.launcher</string>
<key>CFBundleIdentifier</key>
<string>wagic.wagic</string>
<key>NOTE</key>
<string>This file was generated by Qt/QMake.</string>
</dict>
</plist>

Binary file not shown.

View File

@@ -0,0 +1,5 @@
#!/bin/bash
cd ${0%/*/*}/Resources
#cd ../Resources
exec ../MacOS/wagic -platformpluginpath ../PlugIns >> ../logs/out.log 2> ../logs/err.log

View File

@@ -12,6 +12,10 @@ CONFIG(console, graphics|console){
CONFIG += console
CONFIG -= app_bundle
DEFINES += TESTSUITE
QMAKE_CXXFLAGS += -g -fprofile-arcs -ftest-coverage
QMAKE_LDFLAGS += -g -fprofile-arcs -ftest-coverage
LIBS += -lgcov
}
else:CONFIG(graphics, graphics|console){
folder_01.source = qml/QmlWagic
@@ -19,13 +23,8 @@ else:CONFIG(graphics, graphics|console){
DEPLOYMENTFOLDERS = folder_01
QT += core gui opengl network multimedia
QT -= declarative quick qml
#maemo5:DEFINES += QT_WIDGET
DEFINES += QT_WIDGET
unix:!symbian:INCLUDEPATH += /usr/include/GL
# Please do not modify the following two lines. Required for deployment.
# !maemo5:include(qml/qmlapplicationviewer/qmlapplicationviewer.pri)
# !maemo5:qtcAddDeployment()
}
#!android:!symbian:QT += phonon
@@ -134,6 +133,28 @@ maemo5: {
USERDIR = /sdcard/Wagic/Res
DEFINES += RESDIR=\\\"$$RESDIR\\\"
DEFINES += USERDIR=\\\"$$USERDIR\\\"
} else:macx {
# Copy the custom Info.plist to the app bundle
QMAKE_INFO_PLIST = MacOS/Info.plist
# Icon is mandatory for submission
ICON = MacOS/wagic.icns
#Move resource file
res.commands = cd $$_PRO_FILE_PWD_/bin/Res; python createResourceZip.py;
res.depends = all
QMAKE_EXTRA_TARGETS += res
# Create a dmg file
dmg.commands = mkdir wagic.app/Contents/logs; mkdir wagic.app/Contents/Resources/Res; mv $$_PRO_FILE_PWD_/bin/Res/core*.zip wagic.app/Contents/Resources/Res; cp $$_PRO_FILE_PWD_/MacOS/wagic.launcher wagic.app/Contents/MacOS; $$dirname(QMAKE_QMAKE)/macdeployqt wagic.app -dmg
dmg.depends = res
QMAKE_EXTRA_TARGETS += dmg
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
QMAKE_MAC_SDK = macosx
# Only Intel binaries are accepted so force this
CONFIG += x86
} else:unix {
# Variables
BINDIR = /usr/bin