summaryrefslogtreecommitdiff
path: root/kelakon.pro
diff options
context:
space:
mode:
Diffstat (limited to 'kelakon.pro')
-rw-r--r--kelakon.pro31
1 files changed, 11 insertions, 20 deletions
diff --git a/kelakon.pro b/kelakon.pro
index fa19e07..a7f5c31 100644
--- a/kelakon.pro
+++ b/kelakon.pro
@@ -1,31 +1,23 @@
QT += quick
-
+DEFINES += \
+ SERVER_URL=\\\"$$SERVER_URL\\\" \
+ CA_BUNDLE=\\\"$$CA_BUNDLE\\\"
+debug: DEFINES += DEBUG
HEADERS += controller.hxx
-
SOURCES += \
controller.cxx \
main.cxx
-
RESOURCES += \
kelakon.qrc \
larva.qrc \
larva/material-design-icons.qrc
-
-LIBS += \
- -lcurl \
- -lrtclient
-
-!android {
- LIBS += -lqrtclient
-}
-
+LIBS += -lrtclient
android {
PREFIX = $$ANDROID_NDK_PATH/toolchains/llvm/prebuilt/$$ANDROID_NDK_HOST/sysroot/usr
TRIPLE = aarch64-linux-android
contains(ANDROID_TARGET_ARCH,armeabi-v7a): TRIPLE = arm-linux-androideabi
contains(ANDROID_TARGET_ARCH,x86): TRIPLE = i686-linux-android
contains(ANDROID_TARGET_ARCH,x86_64): TRIPLE = x86_64-linux-android
-
LIBS += \
-L$$PREFIX/lib/$$TRIPLE/$$API \
-L$$QT_ANDROID_LIBDIR \
@@ -36,16 +28,15 @@ android {
$$PREFIX/lib/$$TRIPLE/$$API/libcurl.so \
$$PREFIX/lib/$$TRIPLE/$$API/librtclient.so \
$$QT_ANDROID_LIBDIR/libqrtclient_$${ANDROID_TARGET_ARCH}.so
-
QT += svg
- certs.path = /assets/certs
- certs.files = /etc/ssl/certs/ca-certificates.crt
- INSTALLS += certs
+ assets.path = /assets
+ assets.files = $$CA_BUNDLE
+ INSTALLS += assets
}
-
+!android: LIBS += -lqrtclient
macx {
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib
}
-
-debug: DEFINES += DEBUG
+wasm: QMAKE_CXXFLAGS += -std=c++11
+!wasm: LIBS += -lcurl