forked from XTRABYTES/XCITE.OLD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xcite.pro
229 lines (194 loc) · 7.89 KB
/
xcite.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
#
# Filename: xcite.pro
#
# XCITE is a secure platform utilizing the XTRABYTES Proof of Signature
# blockchain protocol to host decentralized applications
#
# Copyright (c) 2017-2018 Zoltan Szabo & XTRABYTES developers
#
# This file is part of an XTRABYTES Ltd. project.
#
VERSION_MAJOR=0
VERSION_MINOR=3
VERSION_BUILD=0
VERSION = $${VERSION_MAJOR}.$${VERSION_MINOR}.$${VERSION_BUILD}
QT += core gui xml quick svg charts sql mqtt
CONFIG += c++11 qzxing_multimedia qzxing_qml
CONFIG += resources_big
CONFIG += static
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += "VERSION_MAJOR=$$VERSION_MAJOR" \
"VERSION_MINOR=$$VERSION_MINOR" \
"VERSION_BUILD=$$VERSION_BUILD"
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = xcite
TEMPLATE = app
CONFIG(debug, debug|release) {
DESTDIR = build/debug
}
CONFIG(release, debug|release) {
DESTDIR = build/release
}
OBJECTS_DIR = $$DESTDIR/.obj
MOC_DIR = $$DESTDIR/.moc
RCC_DIR = $$DESTDIR/.qrc
UI_DIR = $$DESTDIR/.u
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =
include(backend/support/QZXing/QZXing.pri)
include(frontend/support/SortFilterProxyModel/SortFilterProxyModel.pri)
SOURCES += main/main.cpp \
backend/xchat/xchat.cpp \
backend/xchat/xchataiml.cpp \
backend/staticnet/staticnet.cpp \
backend/xutility/xutility.cpp \
backend/xutility/crypto/ctools.cpp \
backend/xutility/transaction/transaction.cpp \
backend/p2p/p2p.cpp \
backend/xchat/xchatconversationmodel.cpp \
backend/XCITE/nodes/nodetransaction.cpp \
backend/testnet/testnet.cpp \
backend/testnet/transactionmodel.cpp \
backend/addressbook/addressbookmodel.cpp \
backend/support/ClipboardProxy.cpp \
backend/support/globaleventfilter.cpp \
backend/testnet/xchattestnetclient.cpp \
backend/integrations/MarketValue.cpp \
backend/integrations/Explorer.cpp \
backend/support/ReleaseChecker.cpp \
backend/support/FileDownloader.cpp \
backend/support/Settings.cpp \
backend/support/qaesencryption.cpp \
backend/integrations/xutility_integration.cpp \
backend/integrations/staticnet_integration.cpp
RESOURCES += resources/resources.qrc
RESOURCES += frontend/frontend.qrc
HEADERS += backend/xchat/xchat.hpp \
backend/xchat/xchataiml.hpp \
backend/xutility/crypto/allocators.h \
backend/xutility/crypto/ctools.h \
backend/xutility/crypto/numbers.h \
backend/xutility/transaction/transaction.h \
backend/xutility/transaction/serialize.h \
backend/p2p/p2p.hpp \
backend/xchat/xchatconversationmodel.hpp \
backend/XCITE/nodes/nodetransaction.h \
backend/staticnet/staticnet.hpp \
backend/xutility/xutility.hpp \
backend/testnet/testnet.hpp \
backend/testnet/transactionmodel.hpp \
backend/addressbook/addressbookmodel.hpp \
backend/support/ClipboardProxy.hpp \
backend/support/globaleventfilter.hpp \
backend/testnet/xchattestnetclient.hpp \
backend/integrations/MarketValue.hpp \
backend/support/ReleaseChecker.hpp \
backend/support/FileDownloader.hpp \
backend/support/Settings.hpp \
backend/integrations/MarketValue.hpp \
backend/integrations/Explorer.hpp \
backend/support/qaesencryption.h \
backend/integrations/xutility_integration.hpp \
backend/integrations/staticnet_integration.hpp
DISTFILES += \
xcite.ico \
packages/global.xtrabytes.xcite/meta/package.xml \
config/config.xml \
packages/global.xtrabytes.xcite/meta/installscript.qs \
packages/global.xtrabytes.xcite/meta/license.txt \
config/banner.png \
config/logo.png \
dev-db/xtrabytes \
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 \
qml/qmlchart/* \
android/res/drawable-mdpi/icon.png \
android/res/drawable-mdpi/splash.png \
android/res/drawable-ldpi/icon.png \
android/res/drawable-ldpi/splash.png \
android/res/drawable-hdpi/icon.png \
android/res/drawable-hdpi/splash.png \
android/res/drawable-xhdpi/splash.png \
android/res/drawable-xxhdpi/splash.png \
android/res/drawable-xxxhdpi/splash.png \
resources/ios/xcite.icns \
resources/ios/xcite152px.png \
resources/ios/xcite120px.png \
resources/ios/xcite180px.png
RC_ICONS = xcite.ico
CONFIG(debug, debug|release) {
DESTDIR = $$PWD/build/debug
} else {
DESTDIR = $$PWD/build/release
}
win32 {
# Copy OpenSSL DDLs into the build dir on Windows
DESTDIR_WIN = $${DESTDIR}
DESTDIR_WIN ~= s,/,\\,g
PWD_WIN = $${PWD}
PWD_WIN ~= s,/,\\,g
QMAKE_POST_LINK += $$quote(cmd /c copy /y \"$${PWD_WIN}\\support\\*.dll\" \"$${DESTDIR_WIN}\")
LIBS += -L$$PWD/dependencies/windows/openssl/lib/ -llibssl -llibcrypto
INCLUDEPATH += $$PWD/dependencies/windows/openssl/include
LIBS += -L$$PWD/dependencies/windows/qtmqtt/lib/ -lQt5Mqtt
INCLUDEPATH += $$PWD/dependencies/windows/qtmqtt/include
LIBS += -L$$PWD/dependencies/windows/boost/lib/ -llibboost_system-vc140-mt-1_60
INCLUDEPATH += $$PWD/dependencies/windows/boost/include
}
ios {
QT += multimedia
xcode_product_bundle_identifier_setting.value = "global.xtrabytes.xcite"
QMAKE_INFO_PLIST = resources/ios/Info.plist
app_launch_images.files = resources/ios/LaunchScreen.storyboard resources/backgrounds/launchScreen-logo_01.png
QMAKE_BUNDLE_DATA += app_launch_images
INCLUDEPATH += $$PWD/dependencies/ios/arm64-v8a/openssl/include
INCLUDEPATH += $$PWD/dependencies/android/armeabi-v7a/boost/include
LIBS += -L$$PWD/dependencies/ios/arm64-v8a/openssl/lib -lssl -lcrypto
QMAKE_ASSET_CATALOGS = $$PWD/resources/ios/Images.xcassets
QMAKE_ASSET_CATALOGS_APP_ICON = "AppIcon"
}
mac {
ICON = $$PWD/resources/ios/xcite.icns
mac!ios {
}
ios {
QT += multimedia
xcode_product_bundle_identifier_setting.value = "global.xtrabytes.xcite"
QMAKE_INFO_PLIST = resources/ios/Info.plist
app_launch_images.files = resources/ios/LaunchScreen.storyboard resources/backgrounds/launchScreen-logo_01.png
QMAKE_BUNDLE_DATA += app_launch_images
INCLUDEPATH += $$PWD/dependencies/ios/x86_64/openssl/include
INCLUDEPATH += $$PWD/dependencies/android/armeabi-v7a/boost/include
LIBS += -L$$PWD/dependencies/ios/x86_64/openssl/lib -lssl -lcrypto
QMAKE_ASSET_CATALOGS = $$PWD/resources/ios/Images.xcassets
QMAKE_ASSET_CATALOGS_APP_ICON = "AppIcon"
}
}
linux:!android {
LIBS += -lssl -lcrypto
LIBS += -lboost_system
}
android {
CONFIG += static
QT += multimedia androidextras
INCLUDEPATH += $$PWD/dependencies/android/armeabi-v7a/openssl/include
INCLUDEPATH += $$PWD/dependencies/android/armeabi-v7a/boost/include
LIBS += -L$$PWD/dependencies/android/armeabi-v7a/openssl/lib -lssl -lcrypto
LIBS += -L$$PWD/dependencies/android/armeabi-v7a/boost/lib/ -lboost_system
}
FORMS += \
packages/global.xtrabytes.xcite/meta/feedbackpage.ui
contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
ANDROID_PACKAGE_SOURCE_DIR = \
$$PWD/android
ANDROID_EXTRA_LIBS = \
$$PWD/dependencies/android/armeabi-v7a/openssl/lib/libcrypto.so \
$$PWD/dependencies/android/armeabi-v7a/openssl/lib/libssl.so
}