mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
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
41 lines
892 B
Prolog
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)
|