-
Notifications
You must be signed in to change notification settings - Fork 3
/
nextload-client.pro
126 lines (99 loc) · 3.96 KB
/
nextload-client.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
QT += qml quick quickcontrols2
android{
Qt += androidextras
}
#LOCAL, TEST, PRODUCTION
_EXECUTIONTARGET_ = "PRODUCTION"
QT_executiontarget = "$${LITERAL_HASH}ifndef __EXECUTIONTARGET__H__"
QT_executiontarget += "$${LITERAL_HASH}define __EXECUTIONTARGET__H__"
QT_executiontarget += "$${LITERAL_HASH}define EXECUTIONTARGET ExcecutionTarget::$$_EXECUTIONTARGET_"
QT_executiontarget += "$${LITERAL_HASH}endif"
write_file($$PWD/source/cpp/executiontarget.h, QT_executiontarget)
include (./ext/quicknative/quicknative.pri)
CONFIG += c++11
CONFIG += resources_big #otherwise compiling failes with "compiler is out of heap space"
CONFIG += qtquickcompiler
SOURCES += \
source/cpp/main.cpp \
source/cpp/rest/httpsrequestworker.cpp \
source/cpp/rest/settings.cpp \
source/cpp/misc/uid.cpp \
source/cpp/rest/requests/sslrequest.cpp \
source/cpp/rest/requests/basicrequest.cpp \
source/cpp/misc/imageprocessor.cpp \
source/cpp/misc/file.cpp \
source/cpp/misc/base64imageprovider.cpp \
source/cpp/rest/requests/upload.cpp \
source/cpp/rest/requests/listfoldercontentsrequest.cpp
RESOURCES += qml.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
INCLUDEPATH += .
# 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
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
HEADERS += \
source/cpp/rest/httpsrequestworker.h \
source/cpp/rest/settings.h \
source/cpp/misc/uid.h \
source/cpp/executiontarget.h \
source/cpp/executiontargetdef.h \
source/cpp/main.h \
source/cpp/rest/requests/sslrequest.h \
source/cpp/rest/requests/basicrequest.h \
source/cpp/misc/imageprocessor.h \
source/cpp/misc/file.h \
source/cpp/misc/base64imageprovider.h \
source/cpp/misc/keychaininterface.h \
source/cpp/rest/requests/upload.h \
source/cpp/rest/requests/listfoldercontentsrequest.h
android{
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
ANDROID_JAVA_SOURCES.path = /src/com/liftingcoder/nextload
ANDROID_JAVA_SOURCES.files = $$files($$PWD/source/java/*.java)
INSTALLS += ANDROID_JAVA_SOURCES
HEADERS += source/cpp/misc/android/keychain.h
SOURCES += source/cpp/misc/android/keychain.cpp
}
ios {
HEADERS += source/cpp/misc/ios/keychain.h \
source/cpp/misc/ios/keychainimpl.h
OBJECTIVE_SOURCES += source/cpp/misc/ios/keychain.mm \
source/cpp/misc/ios/keychainimpl.mm
}
osx{
HEADERS += source/cpp/misc/osx/keychain.h
SOURCES += source/cpp/misc/osx/keychain.cpp
}
windows{
HEADERS += source/cpp/misc/windows/keychain.h
SOURCES += source/cpp/misc/windows/keychain.cpp
}
contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
ANDROID_EXTRA_LIBS = \
$$PWD/ext/libraries/android/openssl/openssl1.0.2q/libcrypto.so \
$$PWD/ext/libraries/android/openssl/openssl1.0.2q/libssl.so
}
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 \
source/qml/items/LoginItem.qml \
source/qml/items/CameraItem.qml \
source/qml/items/CameraItem.qml \
source/qml/items/CameraItem.qml \
source/qml/screens/SetupScreen.qml