Skip to content

Commit e8f878d

Browse files
committed
Add curl license and notices
1 parent c50352d commit e8f878d

File tree

4 files changed

+64
-12
lines changed

4 files changed

+64
-12
lines changed

NOTICE.txt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,35 @@ SOFTWARE.
7171
=========================================
7272
END OF CMakeRC NOTICES, INFORMATION, AND LICENSE
7373

74+
curl
75+
76+
%% curl NOTICES, INFORMATION, AND LICENSE BEGIN HERE
77+
=========================================
78+
COPYRIGHT AND PERMISSION NOTICE
79+
80+
Copyright (C) Daniel Stenberg, <[email protected]>, and many
81+
contributors, see the THANKS file.
82+
83+
All rights reserved.
84+
85+
Permission to use, copy, modify, and distribute this software for any purpose
86+
with or without fee is hereby granted, provided that the above copyright
87+
notice and this permission notice appear in all copies.
88+
89+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
90+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
91+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
92+
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
93+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
94+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
95+
OR OTHER DEALINGS IN THE SOFTWARE.
96+
97+
Except as contained in this notice, the name of a copyright holder shall not
98+
be used in advertising or otherwise to promote the sale, use or other dealings
99+
in this Software without prior written authorization of the copyright holder.
100+
=========================================
101+
END OF curl NOTICES, INFORMATION, AND LICENSE
102+
74103
The following third party software is incorporated into vcpkg-artifacts:
75104

76105
---------------------------------------------------------

cgmanifest.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@
3737
},
3838
"DevelopmentDependency": false,
3939
"DependencyRoots": []
40+
},
41+
{
42+
"Component": {
43+
"Type": "other",
44+
"other": {
45+
"name": "curl",
46+
"version": "8.17.0",
47+
"downloadUrl": "https://github.com/curl/curl/archive/refs/tags/curl-8_17_0.tar.gz",
48+
"hash": "88ab4b7aac12b26a6ad32fb0e1a9675288a45894438cb031102ef5d4ab6b33c2bc99cae0c70b71bdfa12eb49762827e2490555114c5eb4a6876b95e1f2a4eb74"
49+
}
50+
},
51+
"DevelopmentDependency": false,
52+
"DependencyRoots": []
4053
}
4154
]
4255
}

cmake/FindLibCURL.cmake

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ endif()
1818
# Note that the SHA512 is the same, so vcpkg-tool contributors need not be concerned that we built
1919
# with different content.
2020
if(NOT VCPKG_LIBCURL_URL)
21-
set(VCPKG_LIBCURL_URL "https://github.com/curl/curl/archive/refs/tags/curl-8_8_0.tar.gz")
21+
set(VCPKG_LIBCURL_URL "https://github.com/curl/curl/releases/download/curl-8_17_0/curl-8.17.0.tar.gz")
2222
endif()
2323

2424
include(FetchContent)
2525
FetchContent_Declare(
2626
LibCURL
2727
URL "${VCPKG_LIBCURL_URL}"
28-
URL_HASH "SHA512=e66cbf9bd3ae7b9b031475210b80b883b6a133042fbbc7cf2413f399d1b38aa54ab7322626abd3c6f1af56e0d540221f618aa903bd6b463ac8324f2c4e92dfa8"
28+
URL_HASH "SHA512=88ab4b7aac12b26a6ad32fb0e1a9675288a45894438cb031102ef5d4ab6b33c2bc99cae0c70b71bdfa12eb49762827e2490555114c5eb4a6876b95e1f2a4eb74"
2929
)
3030

3131
if(NOT LibCURL_FIND_REQUIRED)
@@ -34,36 +34,46 @@ endif()
3434

3535
# This is in function() so no need to backup the variables
3636
function(get_libcurl)
37-
set(BUILD_SHARED_LIBS OFF)
3837
set(BUILD_CURL_EXE OFF)
39-
set(CURL_ENABLE_EXPORT_TARGET OFF)
40-
set(ENABLE_UNICODE ON)
4138
set(BUILD_LIBCURL_DOCS OFF)
4239
set(BUILD_MISC_DOCS OFF)
40+
set(BUILD_SHARED_LIBS OFF)
41+
set(CURL_ENABLE_EXPORT_TARGET OFF)
42+
set(CURL_USE_LIBSSH2 OFF)
43+
set(CURL_USE_LIBPSL OFF)
44+
if (WIN32)
45+
set(CURL_USE_SCHANNEL ON)
46+
endif()
4347
set(ENABLE_CURL_MANUAL OFF)
48+
set(ENABLE_UNICODE ON)
4449
set(PICKY_COMPILER OFF)
50+
set(USE_NGHTTP2 OFF)
51+
set(USE_LIBIDN2 OFF)
4552
set(CMAKE_DISABLE_FIND_PACKAGE_Perl ON)
4653
set(CMAKE_DISABLE_FIND_PACKAGE_ZLIB ON)
4754
set(CMAKE_DISABLE_FIND_PACKAGE_LibPSL ON)
4855
set(CMAKE_DISABLE_FIND_PACKAGE_LibSSH2 ON)
56+
set(CMAKE_DISABLE_FIND_PACKAGE_Brotli ON)
57+
set(CMAKE_DISABLE_FIND_PACKAGE_Zstd ON)
58+
set(CMAKE_DISABLE_FIND_PACKAGE_NGHTTP2 ON)
59+
set(CMAKE_DISABLE_FIND_PACKAGE_Libidn2 ON)
4960
if(MSVC)
5061
string(APPEND CMAKE_C_FLAGS " /wd6101")
5162
string(APPEND CMAKE_C_FLAGS " /wd6011")
5263
string(APPEND CMAKE_C_FLAGS " /wd6054")
53-
string(APPEND CMAKE_C_FLAGS " /wd6240")
54-
string(APPEND CMAKE_C_FLAGS " /wd6239")
64+
#string(APPEND CMAKE_C_FLAGS " /wd6240")
65+
#string(APPEND CMAKE_C_FLAGS " /wd6239")
66+
string(APPEND CMAKE_C_FLAGS " /wd6287")
5567
string(APPEND CMAKE_C_FLAGS " /wd6323")
68+
string(APPEND CMAKE_C_FLAGS " /wd6385")
5669
string(APPEND CMAKE_C_FLAGS " /wd6387")
5770
string(APPEND CMAKE_C_FLAGS " /wd28182")
58-
string(APPEND CMAKE_C_FLAGS " /wd28183")
71+
#string(APPEND CMAKE_C_FLAGS " /wd28183")
5972
string(APPEND CMAKE_C_FLAGS " /wd28251")
6073
string(APPEND CMAKE_C_FLAGS " /wd28301")
6174
else()
6275
string(APPEND CMAKE_C_FLAGS " -Wno-error")
6376
endif()
64-
if (WIN32)
65-
set(CURL_USE_SCHANNEL ON)
66-
endif()
6777
FetchContent_MakeAvailable(LibCURL)
6878
endfunction()
6979

src/vcpkg/base/downloads.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ namespace vcpkg
145145
auto machine_readable_progress = static_cast<MessageSink*>(clientp);
146146
if (dltotal && machine_readable_progress)
147147
{
148-
double percentage = (static_cast<double>(dlnow) / static_cast<double>(dltotal)) * 100.0;
148+
double percentage = static_cast<double>(dlnow) / static_cast<double>(dltotal) * 100.0;
149149
machine_readable_progress->println(LocalizedString::from_raw(fmt::format("{:.2f}%", percentage)));
150150
}
151151
return 0;

0 commit comments

Comments
 (0)