summaryrefslogtreecommitdiff
path: root/kelakon.pro
blob: e98f40800cf17a309405c40a3c54dcff5faea83d (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
70
71
72
73
74
75
76
77
78
79
80
81
QT += quick

HEADERS += controller.hxx

SOURCES += \
	controller.cxx \
	main.cxx

RESOURCES += \
	kelakon.qrc \
	larva.qrc \
	larva/material-design-icons.qrc

LIBS += \
	-lcurl \
	-lrtclient

!android {
	LIBS += -lqrtclient
}

contains(ANDROID_TARGET_ARCH,arm64-v8a) {
	LIBS += \
		-L/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/aarch64-linux-android/21 \
		-lqrtclient_arm64-v8a
	ANDROID_EXTRA_LIBS += \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/aarch64-linux-android/21/libcrypto_1_1.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/aarch64-linux-android/21/libssl_1_1.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/aarch64-linux-android/21/libcurl.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/aarch64-linux-android/21/librtclient.so \
		/opt/Qt5.14.2/5.14.2/android/lib/libqrtclient-arm64-v8a.so
}

contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
	LIBS += \
		-L/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/arm-linux-androideabi/21 \
		-lqrtclient_armeabi-v7a
	ANDROID_EXTRA_LIBS += \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/arm-linux-androideabi/21/libcrypto_1_1.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/arm-linux-androideabi/21/libssl_1_1.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/arm-linux-androideabi/21/libcurl.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/arm-linux-androideabi/21/librtclient.so \
		/opt/Qt5.14.2/5.14.2/android/lib/libqrtclient_armeabi-v7a.so
}

contains(ANDROID_TARGET_ARCH,x86) {
	LIBS += \
		-L/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/i686-linux-android/21 \
		-lqrtclient_x86
	ANDROID_EXTRA_LIBS += \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/i686-linux-android/21/libcrypto_1_1.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/i686-linux-android/21/libssl_1_1.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/i686-linux-android/21/libcurl.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/i686-linux-android/21/librtclient.so \
		/opt/Qt5.14.2/5.14.2/android/lib/libqrtclient_x86.so
}

contains(ANDROID_TARGET_ARCH,x86_64) {
	LIBS += \
		-L/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/x86_64-linux-android/21 \
		-lqrtclient_x86_64
	ANDROID_EXTRA_LIBS += \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/x86_64-linux-android/21/libcrypto_1_1.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/x86_64-linux-android/21/libssl_1_1.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/x86_64-linux-android/21/libcurl.so \
		/opt/android-ndk-r19c/toolchains/llvm/prebuild/linux-x86_64/21/x86_64-linux-android/21/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
	LIBS +=	-L/opt/Qt5.14.2/5.14.2/android/lib
	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