2014-12-14 02:07:10 +08:00
|
|
|
# The first path is used when the source is being build by packagers (pbuilder/sbuild/etc)
|
|
|
|
# The second path is used when you manually run the configure script in the root folder (eg when using qt creator)
|
|
|
|
exists($$OUT_PWD/../conf.pri) {
|
|
|
|
include($$OUT_PWD/../conf.pri)
|
2018-12-21 18:31:49 +08:00
|
|
|
}
|
|
|
|
else {
|
2014-12-14 02:07:10 +08:00
|
|
|
include(conf.pri)
|
|
|
|
}
|
2010-11-21 01:21:40 +08:00
|
|
|
|
2021-01-04 20:07:23 +08:00
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14
|
|
|
|
|
2021-11-02 10:41:09 +08:00
|
|
|
DEFINES += _DARWIN_FEATURE_64_BIT_INODE
|
|
|
|
|
2017-08-11 13:37:06 +08:00
|
|
|
LIBS += -framework Carbon -framework IOKit -framework AppKit
|
2015-08-27 01:44:42 +08:00
|
|
|
|
2015-01-18 20:13:06 +08:00
|
|
|
QT_LANG_PATH = ../dist/qt-translations
|
|
|
|
DIST_PATH = ../dist/mac
|
|
|
|
|
2010-11-21 01:21:40 +08:00
|
|
|
document_icon.path = Contents/Resources
|
2015-01-18 20:13:06 +08:00
|
|
|
document_icon.files = $$DIST_PATH/qBitTorrentDocument.icns
|
2010-11-21 01:21:40 +08:00
|
|
|
QMAKE_BUNDLE_DATA += document_icon
|
2012-09-16 15:36:24 +08:00
|
|
|
|
|
|
|
qt_conf.path = Contents/Resources
|
2015-01-18 20:13:06 +08:00
|
|
|
qt_conf.files = $$DIST_PATH/qt.conf
|
2012-09-16 15:36:24 +08:00
|
|
|
QMAKE_BUNDLE_DATA += qt_conf
|
|
|
|
|
2015-01-30 06:57:08 +08:00
|
|
|
qt_translations.path = Contents/translations
|
2020-03-23 18:03:05 +08:00
|
|
|
qt_translations.files = $$files($$QT_LANG_PATH/qtbase_*.qm)
|
|
|
|
qt_translations.files += \
|
2020-03-08 02:02:21 +08:00
|
|
|
$$QT_LANG_PATH/qt_fa.qm \
|
|
|
|
$$QT_LANG_PATH/qt_gl.qm \
|
|
|
|
$$QT_LANG_PATH/qt_lt.qm \
|
|
|
|
$$QT_LANG_PATH/qt_pt.qm \
|
|
|
|
$$QT_LANG_PATH/qt_sl.qm \
|
|
|
|
$$QT_LANG_PATH/qt_sv.qm \
|
|
|
|
$$QT_LANG_PATH/qt_zh_CN.qm
|
2012-09-16 15:36:24 +08:00
|
|
|
QMAKE_BUNDLE_DATA += qt_translations
|
|
|
|
|
2015-01-18 20:13:06 +08:00
|
|
|
ICON = $$DIST_PATH/qbittorrent_mac.icns
|
|
|
|
QMAKE_INFO_PLIST = $$DIST_PATH/Info.plist
|