forked from KDAB/android_openssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenssl.pri
86 lines (77 loc) · 3.43 KB
/
openssl.pri
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
!contains(QT.network_private.enabled_features, openssl-linked) {
CONFIG(release, debug|release): SSL_PATH = $$PWD
else: SSL_PATH = $$PWD/no-asm
if (!versionAtLeast(QT_VERSION, 5.12.4)) {
contains(ANDROID_TARGET_ARCH, armeabi-v7a) {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/Qt-5.12.3/arm/libcrypto.so \
$$SSL_PATH/Qt-5.12.3/arm/libssl.so
}
contains(ANDROID_TARGET_ARCH, arm64-v8a) {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/Qt-5.12.3/arm64/libcrypto.so \
$$SSL_PATH/Qt-5.12.3/arm64/libssl.so
}
contains(ANDROID_TARGET_ARCH, x86) {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/Qt-5.12.3/x86/libcrypto.so \
$$SSL_PATH/Qt-5.12.3/x86/libssl.so
}
} else {
if (equals(QT_VERSION, 5.12.4) || equals(QT_VERSION, 5.13.0)) {
contains(ANDROID_TARGET_ARCH, armeabi-v7a) {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/Qt-5.12.4_5.13.0/arm/libcrypto.so \
$$SSL_PATH/Qt-5.12.4_5.13.0/arm/libssl.so
}
contains(ANDROID_TARGET_ARCH, arm64-v8a) {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/Qt-5.12.4_5.13.0/arm64/libcrypto.so \
$$SSL_PATH/Qt-5.12.4_5.13.0/arm64/libssl.so
}
contains(ANDROID_TARGET_ARCH, x86) {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/Qt-5.12.4_5.13.0/x86/libcrypto.so \
$$SSL_PATH/Qt-5.12.4_5.13.0/x86/libssl.so
}
contains(ANDROID_TARGET_ARCH, x86_64) {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/Qt-5.12.4_5.13.0/x86_64/libcrypto.so \
$$SSL_PATH/Qt-5.12.4_5.13.0/x86_64/libssl.so
}
} else {
versionAtLeast(QT_VERSION, "5.14.0") {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/latest/arm/libcrypto_1_1.so \
$$SSL_PATH/latest/arm/libssl_1_1.so \
$$SSL_PATH/latest/arm64/libcrypto_1_1.so \
$$SSL_PATH/latest/arm64/libssl_1_1.so \
$$SSL_PATH/latest/x86/libcrypto_1_1.so \
$$SSL_PATH/latest/x86/libssl_1_1.so \
$$SSL_PATH/latest/x86_64/libcrypto_1_1.so \
$$SSL_PATH/latest/x86_64/libssl_1_1.so
} else {
equals(ANDROID_TARGET_ARCH, armeabi-v7a) {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/latest/arm/libcrypto_1_1.so \
$$SSL_PATH/latest/arm/libssl_1_1.so
}
equals(ANDROID_TARGET_ARCH, arm64-v8a) {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/latest/arm64/libcrypto_1_1.so \
$$SSL_PATH/latest/arm64/libssl_1_1.so
}
equals(ANDROID_TARGET_ARCH, x86) {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/latest/x86/libcrypto_1_1.so \
$$SSL_PATH/latest/x86/libssl_1_1.so
}
equals(ANDROID_TARGET_ARCH, x86_64) {
ANDROID_EXTRA_LIBS += \
$$SSL_PATH/latest/x86_64/libcrypto_1_1.so \
$$SSL_PATH/latest/x86_64/libssl_1_1.so
}
}
}
}
}