Files
pilotclient/samples/hotkey/samplehotkey.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

31 lines
539 B
Prolog

load(common_pre)
QT += core gui dbus network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = samplehotkey
TEMPLATE = app
CONFIG += blackmisc blackinput blackcore blackgui
DEPENDPATH += . $$SourceRoot/src
INCLUDEPATH += . $$SourceRoot/src
HEADERS += *.h
SOURCES += *.cpp
DESTDIR = $$DestRoot/bin
target.path = $$PREFIX/bin
INSTALLS += target
macx {
# Modifies plugin path
qtconf.path = $$PREFIX/bin/samplehotkey.app/Contents/Resources
qtconf.files = qt.conf
INSTALLS += qtconf
}
load(common_post)