-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommunicator.pro
92 lines (67 loc) · 2.03 KB
/
communicator.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
QT += qml
QT += quick
QT += sql
QT += concurrent
CONFIG += ordered
CONFIG += c++17
TARGET = contacts
TEMPLATE = app
VERSION_MAJOR = 1
VERSION_MINOR = 1
VERSION_BUILD = 1
VERSION = $${VERSION_MAJOR}.$${VERSION_MINOR}.$${VERSION_BUILD}
DEFINES += CONTACTS_VERSION_STRING=\\\"$$VERSION\\\"
linux:unix:!android {
message(Building for Linux KDE)
QT += KService KNotifications KNotifications KI18n KContacts
QT += KIOCore KIOFileWidgets KIOWidgets KNTLM
LIBS += -lMauiKit
# SOURCES += src/interfaces/kcontactsinterface.cpp
# HEADERS += src/interfaces/kcontactsinterface.h
} else:android {
message(Building helpers for Android)
QMAKE_LINK += -nostdlib++
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android_files
DISTFILES += \
$$PWD/android_files/AndroidManifest.xml
QT += androidextras
DEFINES *= \
COMPONENT_FM \
COMPONENT_ACCOUNTS \
COMPONENT_TAGGING \
COMPONENT_EDITOR \
MAUIKIT_STYLE \
ANDROID_OPENSSL
include($$PWD/3rdparty/kirigami/kirigami.pri)
include($$PWD/3rdparty/mauikit/mauikit.pri)
DEFINES += STATIC_KIRIGAMI
} else {
message("Unknown configuration")
}
DEPENDPATH += \
$$PWD/src/interfaces \
$$PWD/src/models \
$$PWD/src/models/contacts
INCLUDEPATH += \
$$PWD/src/interfaces \
$$PWD/src/models \
$$PWD/src/models/contacts
SOURCES += \
$$PWD/src/main.cpp \
$$PWD/src/interfaces/androidinterface.cpp \
$$PWD/src/interfaces/contactimage.cpp \
$$PWD/src/models/contacts/calllogs.cpp \
$$PWD/src/models/contacts/contactsmodel.cpp \
RESOURCES += \
$$PWD/src/qml.qrc \
$$PWD/assets/contacts_assets.qrc
HEADERS += \
$$PWD/src/union.h \
$$PWD/src/interfaces/androidinterface.h \
$$PWD/src/models/contacts/contactsmodel.h \
$$PWD/src/models/contacts/calllogs.h \
$$PWD/src/interfaces/abstractinterface.h \
$$PWD/src/interfaces/contactimage.h
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target