Files
pilotclient/src/swiftdata/swiftdata.pro
Roland Winklmeier cf2c0d0f35 Use qt.conf to override plugin path on Mac OS
Summary:
QCoreApplication::addLibraryPath is called before QCoreApplication
was constructed and this caused the returned string to be different
depending from which working directory it was called and not always
the intended binary path.
Using qt.conf has a fixed prefix relative to the binary path
inside the application bundle and therefore is easier to be used
with a relative path.

Reviewers: kbasan, msutcliffe

Reviewed By: msutcliffe

Differential Revision: https://dev.swift-project.org/D18
2017-05-05 23:08:40 +01:00

41 lines
892 B
Prolog

load(common_pre)
QT += core dbus network xml multimedia gui svg
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = swiftdata
TEMPLATE = app
SOURCES += *.cpp
HEADERS += *.h
FORMS += *.ui
CONFIG += blackconfig blackmisc blacksound blackinput blackcore blackgui
DEPENDPATH += . $$SourceRoot/src/blackmisc \
$$SourceRoot/src/blacksound \
$$SourceRoot/src/blackcore \
$$SourceRoot/src/blackgui \
$$SourceRoot/src/blackinput
INCLUDEPATH += . $$SourceRoot/src
OTHER_FILES += *.qss *.ico *.rc *.icns
RC_FILE = swiftdata.rc
DISTFILES += swiftdata.rc
ICON = swiftdata.icns
DESTDIR = $$DestRoot/bin
target.path = $$PREFIX/bin
INSTALLS += target
macx {
# Modifies plugin path
qtconf.path = $$PREFIX/bin/swiftdata.app/Contents/Resources
qtconf.files = qt.conf
INSTALLS += qtconf
}
load(common_post)