2020-08-10 15:17:29 +03:00
|
|
|
# NOTICE:
|
|
|
|
#
|
|
|
|
# Application name defined in TARGET has a corresponding QML filename.
|
|
|
|
# If name defined in TARGET is changed, the following needs to be done
|
|
|
|
# to match new name:
|
|
|
|
# - corresponding QML filename must be changed
|
|
|
|
# - desktop icon filename must be changed
|
|
|
|
# - desktop filename must be changed
|
|
|
|
# - icon definition filename in desktop file must be changed
|
|
|
|
# - translation filenames have to be changed
|
|
|
|
|
|
|
|
# The name of your application
|
|
|
|
TARGET = harbour-fernschreiber
|
|
|
|
|
|
|
|
CONFIG += sailfishapp sailfishapp_i18n
|
|
|
|
|
2020-11-20 22:39:23 +03:00
|
|
|
PKGCONFIG += nemonotifications-qt5 zlib
|
2020-09-04 00:20:46 +03:00
|
|
|
|
2020-10-18 19:57:01 +03:00
|
|
|
QT += core dbus sql
|
2020-08-28 11:41:18 +03:00
|
|
|
|
2020-11-09 04:32:26 +03:00
|
|
|
DEFINES += QT_STATICPLUGIN
|
|
|
|
|
2020-08-10 15:17:29 +03:00
|
|
|
SOURCES += src/harbour-fernschreiber.cpp \
|
2020-10-06 04:40:12 +03:00
|
|
|
src/appsettings.cpp \
|
2020-08-19 10:55:13 +03:00
|
|
|
src/chatlistmodel.cpp \
|
2020-08-22 18:30:02 +03:00
|
|
|
src/chatmodel.cpp \
|
2020-11-24 18:13:16 +03:00
|
|
|
src/contactsmodel.cpp \
|
2020-09-15 00:43:21 +03:00
|
|
|
src/dbusadaptor.cpp \
|
|
|
|
src/dbusinterface.cpp \
|
2020-10-18 19:57:01 +03:00
|
|
|
src/emojisearchworker.cpp \
|
2020-10-03 23:58:45 +03:00
|
|
|
src/fernschreiberutils.cpp \
|
2020-11-29 01:00:10 +03:00
|
|
|
src/knownusersmodel.cpp \
|
2020-11-23 01:32:00 +03:00
|
|
|
src/mceinterface.cpp \
|
2020-12-05 20:31:34 +03:00
|
|
|
src/namedaction.cpp \
|
2020-09-02 23:49:15 +03:00
|
|
|
src/notificationmanager.cpp \
|
2020-09-28 23:58:11 +03:00
|
|
|
src/processlauncher.cpp \
|
2020-10-12 23:44:21 +03:00
|
|
|
src/stickermanager.cpp \
|
2020-11-08 07:00:13 +03:00
|
|
|
src/tdlibfile.cpp \
|
2020-08-10 21:17:13 +03:00
|
|
|
src/tdlibreceiver.cpp \
|
2020-11-09 04:32:26 +03:00
|
|
|
src/tdlibwrapper.cpp \
|
|
|
|
src/tgsplugin.cpp
|
2020-08-10 15:17:29 +03:00
|
|
|
|
|
|
|
DISTFILES += qml/harbour-fernschreiber.qml \
|
2020-08-28 15:14:05 +03:00
|
|
|
qml/components/AudioPreview.qml \
|
2020-10-26 17:15:53 +03:00
|
|
|
qml/components/BackgroundImage.qml \
|
2020-10-19 13:20:02 +03:00
|
|
|
qml/components/ChatListViewItem.qml \
|
2020-08-28 17:18:33 +03:00
|
|
|
qml/components/DocumentPreview.qml \
|
2020-08-25 00:02:08 +03:00
|
|
|
qml/components/ImagePreview.qml \
|
2020-08-28 18:40:25 +03:00
|
|
|
qml/components/InReplyToRow.qml \
|
2020-09-28 23:58:11 +03:00
|
|
|
qml/components/LocationPreview.qml \
|
2020-11-05 16:05:33 +03:00
|
|
|
qml/components/MessageListViewItem.qml \
|
|
|
|
qml/components/MessageListViewItemSimple.qml \
|
2020-11-17 14:18:46 +03:00
|
|
|
qml/components/MessageOverlayFlickable.qml \
|
2020-12-24 06:42:41 +03:00
|
|
|
qml/components/MultilineEmojiLabel.qml \
|
2020-11-16 23:39:11 +03:00
|
|
|
qml/components/PinnedMessageItem.qml \
|
2020-10-23 11:29:50 +03:00
|
|
|
qml/components/PollPreview.qml \
|
2020-12-04 22:29:31 +03:00
|
|
|
qml/components/PressEffect.qml \
|
2020-12-27 02:01:59 +03:00
|
|
|
qml/components/ReplyMarkupButtons.qml \
|
2020-10-15 00:25:56 +03:00
|
|
|
qml/components/StickerPicker.qml \
|
2020-10-19 13:20:02 +03:00
|
|
|
qml/components/PhotoTextsListItem.qml \
|
2020-08-29 16:51:48 +03:00
|
|
|
qml/components/WebPagePreview.qml \
|
2020-10-19 13:20:02 +03:00
|
|
|
qml/components/chatInformationPage/ChatInformationEditArea.qml \
|
2020-11-16 23:38:55 +03:00
|
|
|
qml/components/chatInformationPage/ChatInformationPageContent.qml \
|
2020-10-19 13:20:02 +03:00
|
|
|
qml/components/chatInformationPage/ChatInformationProfilePicture.qml \
|
|
|
|
qml/components/chatInformationPage/ChatInformationProfilePictureList.qml \
|
|
|
|
qml/components/chatInformationPage/ChatInformationTabItemBase.qml \
|
|
|
|
qml/components/chatInformationPage/ChatInformationTabItemDebug.qml \
|
|
|
|
qml/components/chatInformationPage/ChatInformationTabItemMembersGroups.qml \
|
|
|
|
qml/components/chatInformationPage/ChatInformationTabItemSettings.qml \
|
|
|
|
qml/components/chatInformationPage/ChatInformationTabView.qml \
|
|
|
|
qml/components/chatInformationPage/ChatInformationTextItem.qml \
|
|
|
|
qml/components/chatInformationPage/EditGroupChatPermissionsColumn.qml \
|
|
|
|
qml/components/chatInformationPage/EditSuperGroupSlowModeColumn.qml \
|
2020-11-20 23:58:26 +03:00
|
|
|
qml/js/debug.js \
|
2020-08-19 17:47:59 +03:00
|
|
|
qml/js/functions.js \
|
2020-10-19 13:20:02 +03:00
|
|
|
qml/pages/ChatInformationPage.qml \
|
2020-08-21 15:26:56 +03:00
|
|
|
qml/pages/ChatPage.qml \
|
2020-11-15 01:50:12 +03:00
|
|
|
qml/pages/ChatSelectionPage.qml \
|
2020-08-10 15:17:29 +03:00
|
|
|
qml/pages/CoverPage.qml \
|
2020-12-04 23:21:53 +03:00
|
|
|
qml/pages/DebugPage.qml \
|
2020-08-13 11:15:26 +03:00
|
|
|
qml/pages/InitializationPage.qml \
|
2020-11-20 20:30:33 +03:00
|
|
|
qml/pages/NewChatPage.qml \
|
2020-08-10 15:17:29 +03:00
|
|
|
qml/pages/OverviewPage.qml \
|
|
|
|
qml/pages/AboutPage.qml \
|
2020-10-23 11:29:50 +03:00
|
|
|
qml/pages/PollCreationPage.qml \
|
|
|
|
qml/pages/PollResultsPage.qml \
|
2020-09-16 23:04:02 +03:00
|
|
|
qml/pages/SettingsPage.qml \
|
2020-08-28 12:43:51 +03:00
|
|
|
qml/pages/VideoPage.qml \
|
2020-11-02 23:18:21 +03:00
|
|
|
rpm/harbour-fernschreiber.changes \
|
2020-08-10 15:17:29 +03:00
|
|
|
rpm/harbour-fernschreiber.spec \
|
|
|
|
rpm/harbour-fernschreiber.yaml \
|
|
|
|
translations/*.ts \
|
|
|
|
harbour-fernschreiber.desktop
|
|
|
|
|
|
|
|
SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172 256x256
|
|
|
|
|
2020-09-21 23:10:03 +03:00
|
|
|
TRANSLATIONS += translations/harbour-fernschreiber-de.ts \
|
|
|
|
translations/harbour-fernschreiber-es.ts \
|
2020-10-04 22:24:24 +03:00
|
|
|
translations/harbour-fernschreiber-fi.ts \
|
2020-09-23 22:49:27 +03:00
|
|
|
translations/harbour-fernschreiber-hu.ts \
|
2020-10-12 23:50:40 +03:00
|
|
|
translations/harbour-fernschreiber-it.ts \
|
2020-09-22 21:32:35 +03:00
|
|
|
translations/harbour-fernschreiber-pl.ts \
|
2020-10-04 15:34:02 +03:00
|
|
|
translations/harbour-fernschreiber-ru.ts \
|
2020-10-21 10:23:07 +03:00
|
|
|
translations/harbour-fernschreiber-sv.ts \
|
2020-11-15 02:37:20 +03:00
|
|
|
translations/harbour-fernschreiber-en.ts \
|
2020-09-21 23:10:03 +03:00
|
|
|
translations/harbour-fernschreiber-zh_CN.ts
|
2020-08-10 15:17:29 +03:00
|
|
|
|
2020-10-01 14:22:12 +03:00
|
|
|
contains(QT_ARCH, arm) {
|
|
|
|
TARGET_ARCHITECTURE = armv7hl
|
|
|
|
} else {
|
|
|
|
TARGET_ARCHITECTURE = i486
|
|
|
|
}
|
2020-08-10 15:17:29 +03:00
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/tdlib/include
|
|
|
|
DEPENDPATH += $$PWD/tdlib/include
|
2020-09-26 16:53:47 +03:00
|
|
|
LIBS += -L$$PWD/tdlib/$${TARGET_ARCHITECTURE}/lib/ -ltdjson
|
|
|
|
telegram.files = $$PWD/tdlib/$${TARGET_ARCHITECTURE}/lib
|
2020-08-10 15:17:29 +03:00
|
|
|
telegram.path = /usr/share/$${TARGET}
|
|
|
|
|
|
|
|
gui.files = qml
|
|
|
|
gui.path = /usr/share/$${TARGET}
|
|
|
|
|
|
|
|
images.files = images
|
|
|
|
images.path = /usr/share/$${TARGET}
|
|
|
|
|
|
|
|
ICONPATH = /usr/share/icons/hicolor
|
|
|
|
|
|
|
|
86.png.path = $${ICONPATH}/86x86/apps/
|
|
|
|
86.png.files += icons/86x86/harbour-fernschreiber.png
|
|
|
|
|
|
|
|
108.png.path = $${ICONPATH}/108x108/apps/
|
|
|
|
108.png.files += icons/108x108/harbour-fernschreiber.png
|
|
|
|
|
|
|
|
128.png.path = $${ICONPATH}/128x128/apps/
|
|
|
|
128.png.files += icons/128x128/harbour-fernschreiber.png
|
|
|
|
|
|
|
|
172.png.path = $${ICONPATH}/172x172/apps/
|
|
|
|
172.png.files += icons/172x172/harbour-fernschreiber.png
|
|
|
|
|
|
|
|
256.png.path = $${ICONPATH}/256x256/apps/
|
|
|
|
256.png.files += icons/256x256/harbour-fernschreiber.png
|
|
|
|
|
|
|
|
fernschreiber.desktop.path = /usr/share/applications/
|
|
|
|
fernschreiber.desktop.files = harbour-fernschreiber.desktop
|
|
|
|
|
2020-10-18 19:57:01 +03:00
|
|
|
database.files = db
|
|
|
|
database.path = /usr/share/$${TARGET}
|
|
|
|
|
2020-08-10 15:17:29 +03:00
|
|
|
INSTALLS += telegram 86.png 108.png 128.png 172.png 256.png \
|
2020-10-18 19:57:01 +03:00
|
|
|
fernschreiber.desktop gui images database
|
2020-08-10 15:17:29 +03:00
|
|
|
|
|
|
|
HEADERS += \
|
2020-10-06 04:40:12 +03:00
|
|
|
src/appsettings.h \
|
2020-08-19 10:55:13 +03:00
|
|
|
src/chatlistmodel.h \
|
2020-08-22 18:30:02 +03:00
|
|
|
src/chatmodel.h \
|
2020-11-24 18:13:16 +03:00
|
|
|
src/contactsmodel.h \
|
2020-09-15 00:43:21 +03:00
|
|
|
src/dbusadaptor.h \
|
|
|
|
src/dbusinterface.h \
|
2020-11-22 06:58:47 +03:00
|
|
|
src/debuglog.h \
|
2020-11-20 23:58:26 +03:00
|
|
|
src/debuglogjs.h \
|
2020-10-18 19:57:01 +03:00
|
|
|
src/emojisearchworker.h \
|
2020-10-03 23:58:45 +03:00
|
|
|
src/fernschreiberutils.h \
|
2020-11-29 01:00:10 +03:00
|
|
|
src/knownusersmodel.h \
|
2020-11-23 01:32:00 +03:00
|
|
|
src/mceinterface.h \
|
2020-12-05 20:31:34 +03:00
|
|
|
src/namedaction.h \
|
2020-09-02 23:49:15 +03:00
|
|
|
src/notificationmanager.h \
|
2020-09-28 23:58:11 +03:00
|
|
|
src/processlauncher.h \
|
2020-10-12 23:44:21 +03:00
|
|
|
src/stickermanager.h \
|
2020-11-08 07:00:13 +03:00
|
|
|
src/tdlibfile.h \
|
2020-08-10 21:17:13 +03:00
|
|
|
src/tdlibreceiver.h \
|
2020-08-10 15:17:29 +03:00
|
|
|
src/tdlibsecrets.h \
|
2020-11-09 04:32:26 +03:00
|
|
|
src/tdlibwrapper.h \
|
|
|
|
src/tgsplugin.h
|
2020-11-11 02:49:04 +03:00
|
|
|
|
|
|
|
# https://github.com/Samsung/rlottie.git
|
|
|
|
|
|
|
|
RLOTTIE_CONFIG = $${PWD}/rlottie/src/vector/config.h
|
|
|
|
PRE_TARGETDEPS += $${RLOTTIE_CONFIG}
|
|
|
|
QMAKE_EXTRA_TARGETS += rlottie_config
|
|
|
|
|
|
|
|
rlottie_config.target = $${RLOTTIE_CONFIG}
|
|
|
|
rlottie_config.commands = touch $${RLOTTIE_CONFIG} # Empty config is fine
|
|
|
|
|
|
|
|
DEFINES += LOTTIE_THREAD_SUPPORT
|
|
|
|
|
|
|
|
INCLUDEPATH += \
|
|
|
|
rlottie/inc \
|
|
|
|
rlottie/src/vector \
|
|
|
|
rlottie/src/vector/freetype
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
rlottie/src/lottie/lottieanimation.cpp \
|
|
|
|
rlottie/src/lottie/lottieitem.cpp \
|
|
|
|
rlottie/src/lottie/lottieitem_capi.cpp \
|
|
|
|
rlottie/src/lottie/lottiekeypath.cpp \
|
|
|
|
rlottie/src/lottie/lottieloader.cpp \
|
|
|
|
rlottie/src/lottie/lottiemodel.cpp \
|
|
|
|
rlottie/src/lottie/lottieparser.cpp
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
rlottie/src/vector/freetype/v_ft_math.cpp \
|
|
|
|
rlottie/src/vector/freetype/v_ft_raster.cpp \
|
|
|
|
rlottie/src/vector/freetype/v_ft_stroker.cpp \
|
|
|
|
rlottie/src/vector/stb/stb_image.cpp \
|
|
|
|
rlottie/src/vector/varenaalloc.cpp \
|
|
|
|
rlottie/src/vector/vbezier.cpp \
|
|
|
|
rlottie/src/vector/vbitmap.cpp \
|
|
|
|
rlottie/src/vector/vbrush.cpp \
|
|
|
|
rlottie/src/vector/vdasher.cpp \
|
|
|
|
rlottie/src/vector/vdrawable.cpp \
|
|
|
|
rlottie/src/vector/vdrawhelper.cpp \
|
|
|
|
rlottie/src/vector/vdrawhelper_common.cpp \
|
|
|
|
rlottie/src/vector/vdrawhelper_neon.cpp \
|
|
|
|
rlottie/src/vector/vdrawhelper_sse2.cpp \
|
|
|
|
rlottie/src/vector/vmatrix.cpp \
|
|
|
|
rlottie/src/vector/vimageloader.cpp \
|
|
|
|
rlottie/src/vector/vinterpolator.cpp \
|
|
|
|
rlottie/src/vector/vpainter.cpp \
|
|
|
|
rlottie/src/vector/vpath.cpp \
|
|
|
|
rlottie/src/vector/vpathmesure.cpp \
|
|
|
|
rlottie/src/vector/vraster.cpp \
|
|
|
|
rlottie/src/vector/vrle.cpp
|
|
|
|
|
|
|
|
NEON = $$system(g++ -dM -E -x c++ - < /dev/null | grep __ARM_NEON__)
|
|
|
|
SSE2 = $$system(g++ -dM -E -x c++ - < /dev/null | grep __SSE2__)
|
|
|
|
|
|
|
|
!isEmpty(NEON) {
|
|
|
|
message(Using NEON render functions)
|
|
|
|
SOURCES += rlottie/src/vector/pixman/pixman-arm-neon-asm.S
|
|
|
|
} else {
|
|
|
|
!isEmpty(SSE2) {
|
|
|
|
message(Using SSE2 render functions)
|
|
|
|
SOURCES += rlottie/src/vector/vdrawhelper_sse2.cpp
|
|
|
|
} else {
|
|
|
|
message(Using default render functions)
|
|
|
|
}
|
|
|
|
}
|