2018-10-19 14:22:02 +00:00
|
|
|
QT += quick widgets multimedia
|
|
|
|
|
|
|
|
unix:!mac {
|
|
|
|
QT += dbus
|
|
|
|
}
|
|
|
|
|
|
|
|
mac {
|
|
|
|
QT += macextras
|
|
|
|
}
|
|
|
|
|
2018-02-23 14:39:14 +00:00
|
|
|
CONFIG += c++14
|
2018-07-13 04:06:27 +00:00
|
|
|
CONFIG += object_parallel_to_source
|
2018-09-19 23:01:55 +00:00
|
|
|
CONFIG += link_pkgconfig
|
2018-09-04 06:58:41 +00:00
|
|
|
|
2018-09-17 13:01:02 +00:00
|
|
|
TARGET = spectral
|
2018-08-15 11:00:27 +00:00
|
|
|
|
2018-09-26 10:24:16 +00:00
|
|
|
isEmpty(USE_SYSTEM_SORTFILTERPROXYMODEL) {
|
|
|
|
USE_SYSTEM_SORTFILTERPROXYMODEL = false
|
|
|
|
}
|
|
|
|
isEmpty(USE_SYSTEM_QMATRIXCLIENT) {
|
|
|
|
USE_SYSTEM_QMATRIXCLIENT = false
|
|
|
|
}
|
|
|
|
|
|
|
|
$$USE_SYSTEM_QMATRIXCLIENT {
|
2018-09-13 00:22:41 +00:00
|
|
|
PKGCONFIG += QMatrixClient
|
|
|
|
} else {
|
2018-09-26 10:24:16 +00:00
|
|
|
message("Falling back to built-in libQMatrixClient.")
|
2018-09-13 00:22:41 +00:00
|
|
|
include(include/libqmatrixclient/libqmatrixclient.pri)
|
|
|
|
}
|
2018-09-26 10:24:16 +00:00
|
|
|
$$USE_SYSTEM_SORTFILTERPROXYMODEL {
|
2018-09-22 03:10:15 +00:00
|
|
|
PKGCONFIG += SortFilterProxyModel
|
|
|
|
} else {
|
2018-09-26 10:24:16 +00:00
|
|
|
message("Falling back to built-in SortFilterProxyModel.")
|
2018-09-22 03:10:15 +00:00
|
|
|
include(include/SortFilterProxyModel/SortFilterProxyModel.pri)
|
|
|
|
}
|
2018-02-23 14:39:14 +00:00
|
|
|
|
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
|
|
# any feature of Qt which as been marked deprecated (the exact warnings
|
|
|
|
# depend on your compiler). Please consult the documentation of the
|
|
|
|
# deprecated API in order to know how to port your code away from it.
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
|
|
# You can also make your code fail to compile if you use deprecated APIs.
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
|
|
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
res.qrc
|
|
|
|
|
|
|
|
# Additional import path used to resolve QML modules in Qt Creator's code model
|
2018-10-01 08:07:48 +00:00
|
|
|
QML_IMPORT_PATH += imports/
|
2018-02-23 14:39:14 +00:00
|
|
|
|
|
|
|
# Additional import path used to resolve QML modules just for Qt Quick Designer
|
2018-10-01 08:07:48 +00:00
|
|
|
QML_DESIGNER_IMPORT_PATH += imports/
|
2018-02-23 14:39:14 +00:00
|
|
|
|
|
|
|
# Default rules for deployment.
|
2018-08-15 11:00:27 +00:00
|
|
|
unix:!mac:isEmpty(PREFIX) {
|
|
|
|
message("Install PREFIX not set; using /usr/local. You can change this with 'qmake PREFIX=...'")
|
|
|
|
PREFIX = /usr/local
|
|
|
|
}
|
2018-10-24 13:45:58 +00:00
|
|
|
unix:!mac:isEmpty(BINDIR) {
|
2018-10-24 22:52:47 +00:00
|
|
|
message("Install BINDIR not set; using PREFIX/bin. You can change this with 'qmake BINDIR=...'")
|
2018-10-24 13:45:58 +00:00
|
|
|
BINDIR = $$PREFIX/bin
|
|
|
|
}
|
2018-10-24 23:22:07 +00:00
|
|
|
unix:!mac:target.path = $$BINDIR
|
|
|
|
mac:target.path = $$PREFIX/bin
|
2018-08-15 11:00:27 +00:00
|
|
|
win32:target.path = $$PREFIX
|
2018-02-23 14:39:14 +00:00
|
|
|
!isEmpty(target.path): INSTALLS += target
|
|
|
|
|
2018-08-19 12:45:40 +00:00
|
|
|
unix:!mac {
|
2018-09-17 13:01:02 +00:00
|
|
|
metainfo.files = $$PWD/org.eu.encom.spectral.appdata.xml
|
2018-08-19 12:45:40 +00:00
|
|
|
metainfo.path = $$PREFIX/share/metainfo
|
2018-09-17 13:01:02 +00:00
|
|
|
desktop.files = $$PWD/org.eu.encom.spectral.desktop
|
2018-08-19 12:45:40 +00:00
|
|
|
desktop.path = $$PREFIX/share/applications
|
2018-08-26 06:01:08 +00:00
|
|
|
icons.files = $$PWD/icons/hicolor/*
|
|
|
|
icons.path = $$PREFIX/share/icons/hicolor
|
2018-08-19 12:45:40 +00:00
|
|
|
INSTALLS += metainfo desktop icons
|
|
|
|
}
|
|
|
|
|
|
|
|
win32 {
|
2018-10-01 08:07:48 +00:00
|
|
|
RC_ICONS = assets/img/icon.ico
|
2018-08-19 12:45:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
mac {
|
2019-01-03 03:40:36 +00:00
|
|
|
QMAKE_TARGET_BUNDLE_PREFIX = org.eu.encom
|
2019-01-03 03:36:17 +00:00
|
|
|
|
|
|
|
VERSION = 0.0.0.$$system(git rev-list --count HEAD)
|
|
|
|
INFO_PLIST_PATH = $$shell_quote($${OUT_PWD}/$${TARGET}.app/Contents/Info.plist)
|
|
|
|
QMAKE_POST_LINK += /usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $${VERSION}\" $${INFO_PLIST_PATH}
|
|
|
|
QMAKE_POST_LINK += && /usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString $${VERSION}\" $${INFO_PLIST_PATH}
|
|
|
|
|
2018-10-01 08:07:48 +00:00
|
|
|
ICON = assets/img/icon.icns
|
2019-01-03 02:58:43 +00:00
|
|
|
QMAKE_INFO_PLIST = macOS/Info.plist
|
2018-08-19 12:45:40 +00:00
|
|
|
}
|
|
|
|
|
2018-02-27 05:10:08 +00:00
|
|
|
HEADERS += \
|
2018-10-19 14:02:12 +00:00
|
|
|
src/controller.h \
|
|
|
|
src/roomlistmodel.h \
|
|
|
|
src/imageprovider.h \
|
|
|
|
src/messageeventmodel.h \
|
|
|
|
src/emojimodel.h \
|
|
|
|
src/spectralroom.h \
|
|
|
|
src/userlistmodel.h \
|
|
|
|
src/imageitem.h \
|
|
|
|
src/accountlistmodel.h \
|
|
|
|
src/spectraluser.h \
|
2018-10-24 13:15:26 +00:00
|
|
|
src/notifications/manager.h \
|
2018-11-04 11:14:02 +00:00
|
|
|
src/utils.h \
|
|
|
|
src/paintable.h
|
2018-10-19 14:02:12 +00:00
|
|
|
|
|
|
|
SOURCES += src/main.cpp \
|
|
|
|
src/controller.cpp \
|
|
|
|
src/roomlistmodel.cpp \
|
|
|
|
src/imageprovider.cpp \
|
|
|
|
src/messageeventmodel.cpp \
|
|
|
|
src/emojimodel.cpp \
|
|
|
|
src/spectralroom.cpp \
|
|
|
|
src/userlistmodel.cpp \
|
|
|
|
src/imageitem.cpp \
|
|
|
|
src/accountlistmodel.cpp \
|
2018-10-24 13:15:26 +00:00
|
|
|
src/spectraluser.cpp \
|
2018-11-04 11:14:02 +00:00
|
|
|
src/utils.cpp \
|
|
|
|
src/paintable.cpp
|
2018-10-19 14:02:12 +00:00
|
|
|
|
|
|
|
unix:!mac {
|
|
|
|
SOURCES += src/notifications/managerlinux.cpp
|
|
|
|
}
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
HEADERS += src/notifications/wintoastlib.h
|
|
|
|
SOURCES += src/notifications/managerwin.cpp \
|
|
|
|
src/notifications/wintoastlib.cpp
|
|
|
|
}
|
|
|
|
|
|
|
|
mac {
|
2018-10-20 01:53:35 +00:00
|
|
|
QMAKE_LFLAGS += -framework Foundation -framework Cocoa
|
2018-10-19 14:02:12 +00:00
|
|
|
SOURCES += src/notifications/managermac.mm
|
|
|
|
}
|