-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v5.6.0' into 'master'
Release v5.6.0 See merge request megachat/MEGAchat!1967
- Loading branch information
Showing
20 changed files
with
200 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,3 +169,6 @@ UseCRLF: false | |
UseTab: Never | ||
#WhitespaceSensitiveMacros: | ||
... | ||
--- | ||
Language: ObjC | ||
DisableFormat: true |
10 changes: 7 additions & 3 deletions
10
contrib/cmake/vcpkg_overlay_ports/curl/0012-fix-dependency-idn2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
contrib/cmake/vcpkg_overlay_ports/curl/0020-fix-pc-file.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index bb5fba9..9919fd3 100644 | ||
index 3b83a7f..0ceaf5b 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1624,7 +1624,9 @@ set(includedir "\${prefix}/include") | ||
set(LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}") | ||
set(LIBCURL_LIBS "") | ||
set(libdir "${CMAKE_INSTALL_PREFIX}/lib") | ||
-foreach(_lib ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${CURL_LIBS}) | ||
+set(CURL_LIBS_FLAT "") | ||
+vcpkg_curl_flatten(CURL_LIBS CURL_LIBS_FLAT) | ||
+foreach(_lib ${CURL_LIBS_FLAT}) | ||
if(TARGET "${_lib}") | ||
set(_libname "${_lib}") | ||
get_target_property(_imported "${_libname}" IMPORTED) | ||
@@ -1652,7 +1652,9 @@ if(NOT CURL_DISABLE_INSTALL) | ||
set(LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}") | ||
set(LIBCURL_LIBS "") | ||
set(libdir "${CMAKE_INSTALL_PREFIX}/lib") | ||
- foreach(_lib ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${CURL_LIBS}) | ||
+ set(CURL_LIBS_FLAT "") | ||
+ vcpkg_curl_flatten(CURL_LIBS CURL_LIBS_FLAT) | ||
+ foreach(_lib ${CURL_LIBS_FLAT}) | ||
if(TARGET "${_lib}") | ||
set(_libname "${_lib}") | ||
get_target_property(_imported "${_libname}" IMPORTED) |
18 changes: 9 additions & 9 deletions
18
contrib/cmake/vcpkg_overlay_ports/curl/0022-deduplicate-libs.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 9919fd3..7e513f6 100644 | ||
index 0ceaf5b..ec714a5 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1654,6 +1654,7 @@ if(BUILD_SHARED_LIBS) | ||
else() | ||
set(ENABLE_SHARED "no") | ||
set(LIBCURL_NO_SHARED "${LIBCURL_LIBS}") | ||
+ set(LIBCURL_LIBS "") | ||
set(CPPFLAG_CURL_STATICLIB "-DCURL_STATICLIB") | ||
endif() | ||
if(BUILD_STATIC_LIBS) | ||
@@ -1682,6 +1682,7 @@ if(NOT CURL_DISABLE_INSTALL) | ||
else() | ||
set(ENABLE_SHARED "no") | ||
set(LIBCURL_NO_SHARED "${LIBCURL_LIBS}") | ||
+ set(LIBCURL_LIBS "") | ||
set(CPPFLAG_CURL_STATICLIB "-DCURL_STATICLIB") | ||
endif() | ||
if(BUILD_STATIC_LIBS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
diff --git a/CMake/curl-config.cmake.in b/CMake/curl-config.cmake.in | ||
index c89c686..2f39949 100644 | ||
index a013adf..2f39949 100644 | ||
--- a/CMake/curl-config.cmake.in | ||
+++ b/CMake/curl-config.cmake.in | ||
@@ -45,4 +45,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
check_required_components("@PROJECT_NAME@") | ||
@@ -46,5 +46,6 @@ check_required_components("@PROJECT_NAME@") | ||
|
||
# Alias for either shared or static library | ||
-add_library(@PROJECT_NAME@::libcurl ALIAS @PROJECT_NAME@::@LIB_SELECTED@) | ||
+if(NOT TARGET @PROJECT_NAME@::libcurl) | ||
if(NOT TARGET @PROJECT_NAME@::libcurl) | ||
- add_library(@PROJECT_NAME@::libcurl ALIAS @PROJECT_NAME@::@LIB_SELECTED@) | ||
+ add_library(@PROJECT_NAME@::libcurl INTERFACE IMPORTED) | ||
+ set_target_properties(@PROJECT_NAME@::libcurl PROPERTIES INTERFACE_LINK_LIBRARIES @PROJECT_NAME@::@LIB_SELECTED@) | ||
+endif() | ||
endif() |
5 changes: 5 additions & 0 deletions
5
contrib/cmake/vcpkg_overlay_ports/curl/cmake-project-include.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 19 additions & 18 deletions
37
contrib/cmake/vcpkg_overlay_ports/curl/export-components.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 7e513f6..049ac34 100644 | ||
index ec714a5..478527e 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1727,8 +1727,17 @@ if(CURL_ENABLE_EXPORT_TARGET) | ||
) | ||
endif() | ||
@@ -1754,9 +1754,18 @@ if(NOT CURL_DISABLE_INSTALL) | ||
DESTINATION ${CURL_INSTALL_CMAKE_DIR} | ||
) | ||
endif() | ||
+ | ||
+ set(components_file "${CMAKE_CURRENT_BINARY_DIR}/CURLConfigComponents.cmake") | ||
+ file(CONFIGURE OUTPUT "${components_file}" CONTENT [[ | ||
+ foreach(z_vcpkg_curl_component IN ITEMS @SUPPORT_FEATURES@ @SUPPORT_PROTOCOLS@) | ||
+ if(z_vcpkg_curl_component MATCHES "^[-_a-zA-Z0-9]*$") | ||
+ set(CURL_${z_vcpkg_curl_component}_FOUND TRUE) | ||
+ endif() | ||
+ endforeach() | ||
+ ]] @ONLY) | ||
|
||
+set(components_file "${CMAKE_CURRENT_BINARY_DIR}/CURLConfigComponents.cmake") | ||
+file(CONFIGURE OUTPUT "${components_file}" CONTENT [[ | ||
+foreach(z_vcpkg_curl_component IN ITEMS @SUPPORT_FEATURES@ @SUPPORT_PROTOCOLS@) | ||
+ if(z_vcpkg_curl_component MATCHES "^[-_a-zA-Z0-9]*$") | ||
+ set(CURL_${z_vcpkg_curl_component}_FOUND TRUE) | ||
+ endif() | ||
+endforeach() | ||
+]] @ONLY) | ||
+ | ||
install( | ||
- FILES ${version_config} ${project_config} | ||
+ FILES ${version_config} ${project_config} ${components_file} | ||
DESTINATION ${CURL_INSTALL_CMAKE_DIR} | ||
) | ||
install( | ||
- FILES ${version_config} ${project_config} | ||
+ FILES ${version_config} ${project_config} ${components_file} | ||
DESTINATION ${CURL_INSTALL_CMAKE_DIR} | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.