2018-08-17 07:58:08 +00:00
|
|
|
QT += quick widgets multimedia
|
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-04 06:58:41 +00:00
|
|
|
|
|
|
|
# Enable this to use QtQuick Compiler.
|
|
|
|
#CONFIG += qtquickcompiler
|
2018-02-23 14:39:14 +00:00
|
|
|
|
2018-08-15 11:00:27 +00:00
|
|
|
TARGET = matrique
|
|
|
|
|
2018-09-13 00:22:41 +00:00
|
|
|
packagesExist(QMatrixClient) {
|
|
|
|
message("Found libQMatrixClient via pkg-config.")
|
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
PKGCONFIG += QMatrixClient
|
|
|
|
} else {
|
|
|
|
include(include/libqmatrixclient/libqmatrixclient.pri)
|
|
|
|
}
|
2018-07-15 04:47:18 +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
|
|
|
|
|
2018-07-13 04:06:27 +00:00
|
|
|
SOURCES += src/main.cpp \
|
|
|
|
src/controller.cpp \
|
|
|
|
src/roomlistmodel.cpp \
|
|
|
|
src/imageprovider.cpp \
|
|
|
|
src/messageeventmodel.cpp \
|
2018-08-18 08:02:47 +00:00
|
|
|
src/emojimodel.cpp \
|
2018-08-26 05:17:12 +00:00
|
|
|
src/matriqueroom.cpp \
|
2018-09-06 08:22:00 +00:00
|
|
|
src/userlistmodel.cpp \
|
2018-09-09 02:12:45 +00:00
|
|
|
src/imageitem.cpp \
|
2018-09-10 01:51:02 +00:00
|
|
|
src/accountlistmodel.cpp \
|
|
|
|
src/matriqueuser.cpp
|
2018-02-23 14:39:14 +00:00
|
|
|
|
|
|
|
RESOURCES += \
|
|
|
|
res.qrc
|
|
|
|
|
|
|
|
# Additional import path used to resolve QML modules in Qt Creator's code model
|
2018-08-24 05:25:41 +00:00
|
|
|
QML_IMPORT_PATH =
|
2018-02-23 14:39:14 +00:00
|
|
|
|
|
|
|
# Additional import path used to resolve QML modules just for Qt Quick Designer
|
|
|
|
QML_DESIGNER_IMPORT_PATH =
|
|
|
|
|
|
|
|
# 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
|
|
|
|
}
|
|
|
|
unix:target.path = $$PREFIX/bin
|
|
|
|
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 {
|
|
|
|
metainfo.files = $$PWD/org.eu.encom.matrique.appdata.xml
|
|
|
|
metainfo.path = $$PREFIX/share/metainfo
|
|
|
|
desktop.files = $$PWD/org.eu.encom.matrique.desktop
|
|
|
|
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 {
|
|
|
|
RC_ICONS = asset/img/icon.ico
|
|
|
|
}
|
|
|
|
|
|
|
|
mac {
|
|
|
|
ICON = asset/img/icon.icns
|
|
|
|
}
|
|
|
|
|
2018-09-10 08:22:45 +00:00
|
|
|
#DISTFILES += \
|
|
|
|
# ChatForm.qml \
|
|
|
|
# LoginForm.qml \
|
|
|
|
# main.qml \
|
|
|
|
# Home.qml \
|
|
|
|
# Login.qml \
|
|
|
|
# ImageStatus.qml \
|
|
|
|
# ButtonDelegate.qml \
|
|
|
|
# SideNav.qml \
|
|
|
|
# RoomListForm.qml \
|
|
|
|
# Room.qml \
|
|
|
|
# Setting.qml \
|
|
|
|
# qml/js/md.js \
|
2018-02-27 05:10:08 +00:00
|
|
|
|
|
|
|
HEADERS += \
|
2018-07-13 04:06:27 +00:00
|
|
|
src/controller.h \
|
|
|
|
src/roomlistmodel.h \
|
|
|
|
src/imageprovider.h \
|
|
|
|
src/messageeventmodel.h \
|
2018-08-18 08:02:47 +00:00
|
|
|
src/emojimodel.h \
|
2018-08-26 05:17:12 +00:00
|
|
|
src/matriqueroom.h \
|
2018-09-06 08:22:00 +00:00
|
|
|
src/userlistmodel.h \
|
2018-09-09 02:12:45 +00:00
|
|
|
src/imageitem.h \
|
2018-09-10 01:51:02 +00:00
|
|
|
src/accountlistmodel.h \
|
|
|
|
src/matriqueuser.h
|