Mac OS X improvements - Application icon; 'make install' installs to /Applications; Ostinato is able to find drone at startup (as long as both bundles are present together)
This commit is contained in:
parent
716f5fb8f3
commit
9b1dbfb1e6
@ -4,6 +4,8 @@ syntax: glob
|
|||||||
*.o
|
*.o
|
||||||
*.a
|
*.a
|
||||||
*.exe
|
*.exe
|
||||||
|
drone.app
|
||||||
|
ostinato.app
|
||||||
|
|
||||||
# Qt generated files
|
# Qt generated files
|
||||||
ui_*.h
|
ui_*.h
|
||||||
@ -23,6 +25,7 @@ version.cpp
|
|||||||
|
|
||||||
# vim swap files
|
# vim swap files
|
||||||
*.swp
|
*.swp
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
# ctags
|
# ctags
|
||||||
tags
|
tags
|
||||||
|
BIN
client/icons/logo.icns
Normal file
BIN
client/icons/logo.icns
Normal file
Binary file not shown.
@ -42,6 +42,11 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
{
|
{
|
||||||
QString serverApp = QCoreApplication::applicationDirPath();
|
QString serverApp = QCoreApplication::applicationDirPath();
|
||||||
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
// applicationDirPath() does not return bundle, but executable inside bundle
|
||||||
|
serverApp.replace("ostinato.app", "drone.app");
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
serverApp.append("/drone.exe");
|
serverApp.append("/drone.exe");
|
||||||
#else
|
#else
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
CONFIG += qt
|
CONFIG += qt
|
||||||
RC_FILE = ostinato.rc
|
win32:RC_FILE = ostinato.rc
|
||||||
|
macx:ICON = icons/logo.icns
|
||||||
QT += network script
|
QT += network script
|
||||||
INCLUDEPATH += "../rpc/" "../common/"
|
INCLUDEPATH += "../rpc/" "../common/"
|
||||||
LIBS += -lprotobuf
|
LIBS += -lprotobuf
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
# to qmake; if one is not provided, we use the below defaults -
|
# to qmake; if one is not provided, we use the below defaults -
|
||||||
isEmpty(PREFIX) {
|
isEmpty(PREFIX) {
|
||||||
unix:PREFIX = "/usr/local/"
|
unix:PREFIX = "/usr/local/"
|
||||||
|
macx:PREFIX = "/Applications/"
|
||||||
win32:PREFIX = "../"
|
win32:PREFIX = "../"
|
||||||
}
|
}
|
||||||
target.path = $$PREFIX/bin
|
macx {
|
||||||
|
target.path = $$PREFIX/Ostinato
|
||||||
|
} else {
|
||||||
|
target.path = $$PREFIX/bin
|
||||||
|
}
|
||||||
|
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
|
Loading…
Reference in New Issue
Block a user