summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Prabowo Kamal <erik@darapsa.co.id>2019-08-23 17:47:20 +0800
committerErik Prabowo Kamal <erik@darapsa.co.id>2019-08-23 17:47:20 +0800
commit356fa9d29a53aa0dba28016b932f8042f8d3970a (patch)
tree28bc7ac9d8dcdbd7f275d7f1fe1983ae41cc2218
parentf14878b05ee885f1747feab256011b4da72ae778 (diff)
Started using cURL on Android
There's a quirk since Clang. It seems the Android search path setting messes up the standard library compilation. So for now, what you do is remove the android-* setting to make Qt compile, even though it would say it cannot find libcurl, and then put the setting back again to link with libcurl.
-rw-r--r--kelakon.pro7
1 files changed, 7 insertions, 0 deletions
diff --git a/kelakon.pro b/kelakon.pro
index e0e0d89..8f1240f 100644
--- a/kelakon.pro
+++ b/kelakon.pro
@@ -11,5 +11,12 @@ SOURCES += \
RESOURCES += kelakon.qrc
+android-* {
+ INCLUDEPATH += $$(ANDROID_STANDALONE_TOOLCHAIN)/usr/include
+ LIBS += -L$$(ANDROID_STANDALONE_TOOLCHAIN)/usr/lib
+ ANDROID_EXTRA_LIBS += \
+ $$(ANDROID_STANDALONE_TOOLCHAIN)/usr/lib/libcurl.so
+}
+
LIBS += \
-lcurl