diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-02-22 03:41:05 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-09 19:57:10 +0200 |
commit | bb5c4e81c5648c509acaef9df8a6a988a6474858 (patch) | |
tree | ba74e121b974b5c491f2e115d4fb768827ba6163 /platform/android | |
parent | e6024a2e020ce28f87a785522b99212f91ed3ce4 (diff) | |
download | qtlocation-mapboxgl-bb5c4e81c5648c509acaef9df8a6a988a6474858.tar.gz |
[build] Make curl for Android a vendor package
This will make it easier to add it as dependencies of different targets.
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/android.cmake | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/platform/android/android.cmake b/platform/android/android.cmake index 1fbe67836d..167f29c005 100644 --- a/platform/android/android.cmake +++ b/platform/android/android.cmake @@ -348,20 +348,16 @@ if(ANDROID_NATIVE_API_LEVEL VERSION_LESS 24) PRIVATE ${PROJECT_SOURCE_DIR}/platform/android/src/test/http_file_source_test_stub.cpp ) else() - set(CURL_DIR ${PROJECT_SOURCE_DIR}/vendor/curl-android-ios/prebuilt-with-ssl/android) - set(CURL_LIBRARY ${CURL_DIR}/${ANDROID_ABI}/libcurl.a) - target_sources( mbgl-test-runner PRIVATE ${PROJECT_SOURCE_DIR}/platform/default/src/mbgl/storage/http_file_source.cpp ) - target_include_directories( - mbgl-test-runner - PRIVATE ${CURL_DIR}/include - ) + + include(${PROJECT_SOURCE_DIR}/vendor/curl.cmake) + target_link_libraries( mbgl-test-runner - PRIVATE ${CURL_LIBRARY} + PRIVATE mbgl-vendor-curl ) endif() |