summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-02-22 03:41:05 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-09 19:57:10 +0200
commitbb5c4e81c5648c509acaef9df8a6a988a6474858 (patch)
treeba74e121b974b5c491f2e115d4fb768827ba6163 /vendor
parente6024a2e020ce28f87a785522b99212f91ed3ce4 (diff)
downloadqtlocation-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 'vendor')
-rw-r--r--vendor/curl.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/curl.cmake b/vendor/curl.cmake
new file mode 100644
index 0000000000..fde112b9ec
--- /dev/null
+++ b/vendor/curl.cmake
@@ -0,0 +1,17 @@
+if(TARGET mbgl-vendor-curl)
+ return()
+endif()
+
+add_library(
+ mbgl-vendor-curl INTERFACE
+)
+
+target_link_libraries(
+ mbgl-vendor-curl
+ INTERFACE $<$<PLATFORM_ID:Android>:${CMAKE_CURRENT_LIST_DIR}/curl-android-ios/prebuilt-with-ssl/android/${ANDROID_ABI}/libcurl.a>
+)
+
+target_include_directories(
+ mbgl-vendor-curl SYSTEM
+ INTERFACE ${CMAKE_CURRENT_LIST_DIR}/curl-android-ios/curl/include
+)