blob: 911638b9d83f42248c76d8445dc7a178634b550c (
plain)
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
|
QT += quick
HEADERS += controller.hxx
SOURCES += \
controller.cxx \
main.cxx
RESOURCES += \
kelakon.qrc \
larva.qrc \
larva/material-design-icons.qrc
LIBS += \
-lcurl \
-lrtclient \
-lqrtclient
contains(ANDROID_TARGET_ARCH,arm64-v8a) {
LIBS += -L/usr/local/aarch64-linux-android/sysroot/usr/lib
ANDROID_EXTRA_LIBS += \
/usr/local/aarch64-linux-android/sysroot/usr/lib/libcrypto.so \
/usr/local/aarch64-linux-android/sysroot/usr/lib/libssl.so \
/usr/local/aarch64-linux-android/sysroot/usr/lib/libcurl.so \
/usr/local/aarch64-linux-android/sysroot/usr/lib/librtclient.so \
/opt/Qt5.14.2/5.14.2/android/lib/libqrtclient-arm64-v8a.so
}
contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
LIBS += -L/usr/local/arm-linux-androideabi/sysroot/usr/lib
ANDROID_EXTRA_LIBS += \
/usr/local/arm-linux-androideabi/sysroot/usr/lib/libcrypto.so \
/usr/local/arm-linux-androideabi/sysroot/usr/lib/libssl.so \
/usr/local/arm-linux-androideabi/sysroot/usr/lib/libcurl.so \
/usr/local/arm-linux-androideabi/sysroot/usr/lib/librtclient.so \
/opt/Qt5.14.2/5.14.2/android/lib/libqrtclient_armeabi-v7a.so
}
contains(ANDROID_TARGET_ARCH,x86) {
LIBS += -L/usr/local/i686-linux-android/sysroot/usr/lib
ANDROID_EXTRA_LIBS += \
/usr/local/i686-linux-android/sysroot/usr/lib/libcrypto.so \
/usr/local/i686-linux-android/sysroot/usr/lib/libssl.so \
/usr/local/i686-linux-android/sysroot/usr/lib/libcurl.so \
/usr/local/i686-linux-android/sysroot/usr/lib/librtclient.so \
/opt/Qt5.14.2/5.14.2/android/lib/libqrtclient_x86.so
}
contains(ANDROID_TARGET_ARCH,x86_64) {
LIBS += -L/usr/local/x86_64-linux-android/sysroot/usr/lib64
ANDROID_EXTRA_LIBS += \
/usr/local/x86_64-linux-android/sysroot/usr/lib64/libcrypto.so \
/usr/local/x86_64-linux-android/sysroot/usr/lib64/libssl.so \
/usr/local/x86_64-linux-android/sysroot/usr/lib64/libcurl.so \
/usr/local/x86_64-linux-android/sysroot/usr/lib64/librtclient.so \
/opt/Qt5.14.2/5.14.2/android/lib/libqrtclient_x86_64.so
}
android {
INCLUDEPATH += /opt/android-ndk-r19c/sources/cxx-stl/llvm-libc++/include
QT += svg
DISTFILES += android/AndroidManifest.xml
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
certs.path = /assets/certs
certs.files = /etc/ssl/certs/ca-certificates.crt
INSTALLS += certs
}
debug: DEFINES += DEBUG
|