-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkutegramquick.pro
132 lines (109 loc) · 4.03 KB
/
kutegramquick.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
TARGET = Kutegram
APPNAME = Kutegram
VERSION = 1.2.0
PKG_VERSION = $$replace(VERSION, ".", ",")
DEFINES += VERSION=\\\"$$VERSION\\\"
#DATE = $$system(date /t)
#DEFINES += BUILDDATE=\"\\\"$$DATE\\\"\"
#COMMIT_SHA = $$system(git log --pretty=format:%h -n 1);
#DEFINES += COMMIT_SHA=\"\\\"$$COMMIT_SHA\\\"\"
greaterThan(QT_MAJOR_VERSION, 4) {
QT += core widgets qml quick network xml
win32:!winrt:QT += winextras
}
!greaterThan(QT_MAJOR_VERSION, 4) {
QT += core declarative gui network xml
}
winrt {
WINRT_MANIFEST.background = lightSkyBlue
WINRT_MANIFEST.description = "An unofficial Telegram client, written in Qt Quick and C++."
WINRT_MANIFEST.logo_large = wpassets/logo_150x150.png
WINRT_MANIFEST.logo_medium = wpassets/logo_71x71.png
WINRT_MANIFEST.logo_small = wpassets/logo_44x44.png
WINRT_MANIFEST.logo_splash = wpassets/logo_480x800.png
WINRT_MANIFEST.logo_store = wpassets/logo_store.png
WINRT_MANIFEST.logo_wide = wpassets/logo_310x150.png
WINRT_MANIFEST.publisherid = "CN=curoviyxru"
WINRT_MANIFEST.identity = "1dcfeda8-9772-4658-8c54-853732753c6f"
WINRT_MANIFEST.publisher = "curoviyxru"
WINRT_MANIFEST.version = $$VERSION".0"
}
DEFINES += QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT KG_NO_DEBUG KG_NO_INFO
QML_IMPORT_PATH =
win32:RC_FILE = kutegramquick.rc
macx:ICON = kutegramquick.icns
symbian {
LIBS += -lavkon -lapgrfx -lcone -leikcore -lapmime
contains(SYMBIAN_VERSION, Symbian3) {
DEFINES += SYMBIAN3_READY=1
include(pigler/qt-library/pigler.pri)
}
ICON = kutegramquick.svg
TARGET.UID3 = 0xE0713D51
DEFINES += SYMBIAN_UID=$$TARGET.UID3
TARGET.CAPABILITY += ReadUserData WriteUserData UserEnvironment NetworkServices LocalServices SwEvent
#TARGET.EPOCHEAPSIZE = 0x400000 0x4000000
#TARGET.EPOCSTACKSIZE = 0x14000
supported_platforms = \
"[0x1028315F],0,0,0,{\"S60ProductID\"}" \ # Symbian^1
"[0x20022E6D],0,0,0,{\"S60ProductID\"}" \ # Symbian^3
"[0x102032BE],0,0,0,{\"S60ProductID\"}" \ # Symbian 9.2
"[0x102752AE],0,0,0,{\"S60ProductID\"}" \ # Symbian 9.3
"[0x2003A678],0,0,0,{\"S60ProductID\"}" # Symbian Belle
default_deployment.pkg_prerules -= pkg_platform_dependencies
supported_platforms_deployment.pkg_prerules += supported_platforms
DEPLOYMENT += supported_platforms_deployment
vendor_info = \
" " \
"; Localised Vendor name" \
"%{\"curoviyxru\"}" \
" " \
"; Unique Vendor name" \
":\"curoviyxru\"" \
" "
package.pkg_prerules += vendor_info
header = "$${LITERAL_HASH}{\"Kutegram\"},(0xE0713D51),$$PKG_VERSION,TYPE=SA,RU"
package.pkg_prerules += header
DEPLOYMENT += package
DEPLOYMENT.installer_header = "$${LITERAL_HASH}{\"Kutegram Installer\"},(0xE5E0AFB2),$$PKG_VERSION"
}
INCLUDEPATH += src
SOURCES += \
src/main.cpp \
src/dialogsmodel.cpp \
src/messagesmodel.cpp \
src/avatardownloader.cpp \
src/foldersmodel.cpp \
src/currentuserinfo.cpp \
src/messageutil.cpp \
src/platformutils.cpp
HEADERS += \
src/dialogsmodel.h \
src/messagesmodel.h \
src/avatardownloader.h \
src/foldersmodel.h \
src/currentuserinfo.h \
src/messageutil.h \
src/platformutils.h
OTHER_FILES += \
qtc_packaging/debian_harmattan/rules \
qtc_packaging/debian_harmattan/README \
qtc_packaging/debian_harmattan/copyright \
qtc_packaging/debian_harmattan/control \
qtc_packaging/debian_harmattan/compat \
qtc_packaging/debian_harmattan/changelog
RESOURCES += \
resources.qrc
include(libkg/libkg.pri)
include(qmlapplicationviewer/qmlapplicationviewer.pri)
qtcAddDeployment()
DISTFILES += \
android/AndroidManifest.xml \
android/gradle/wrapper/gradle-wrapper.jar \
android/gradlew \
android/res/values/libs.xml \
android/build.gradle \
android/gradle/wrapper/gradle-wrapper.properties \
android/gradlew.bat
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android