diff options
author | Erik Prabowo Kamal <erik@darapsa.co.id> | 2019-08-23 17:47:20 +0800 |
---|---|---|
committer | Erik Prabowo Kamal <erik@darapsa.co.id> | 2019-08-23 17:47:20 +0800 |
commit | 356fa9d29a53aa0dba28016b932f8042f8d3970a (patch) | |
tree | 28bc7ac9d8dcdbd7f275d7f1fe1983ae41cc2218 /kelakon.pro | |
parent | f14878b05ee885f1747feab256011b4da72ae778 (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.
Diffstat (limited to 'kelakon.pro')
-rw-r--r-- | kelakon.pro | 7 |
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 |