-
Notifications
You must be signed in to change notification settings - Fork 264
cpr: update to 1.13.0 #2499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
cpr: update to 1.13.0 #2499
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -653,6 +653,7 @@ | |
| "cpr" | ||
| ], | ||
| "versions": [ | ||
| "1.13.0-1", | ||
| "1.12.0-1", | ||
| "1.11.2-1", | ||
| "1.11.1-1", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| [wrap-file] | ||
| directory = cpr-1.12.0 | ||
| source_url = https://github.com/libcpr/cpr/archive/1.12.0.tar.gz | ||
| source_filename = cpr-1.12.0.tar.gz | ||
| source_hash = f64b501de66e163d6a278fbb6a95f395ee873b7a66c905dd785eae107266a709 | ||
| directory = cpr-1.13.0 | ||
| source_url = https://github.com/libcpr/cpr/archive/1.13.0.tar.gz | ||
| source_filename = cpr-1.13.0.tar.gz | ||
| source_hash = c55d805300c224f099cad74ad9c68799f23d005d09ba2df76ead975a3e50e09d | ||
| patch_directory = cpr | ||
|
|
||
| [provide] | ||
| cpr = cpr_dep | ||
| dependency_names = cpr |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,31 +1,40 @@ | ||
| project( | ||
|
Check warning on line 1 in subprojects/packagefiles/cpr/meson.build
|
||
| 'cpr', | ||
| 'cpp', | ||
| version: '1.12.0', | ||
| version: '1.13.0', | ||
| license: 'MIT', | ||
| default_options: 'cpp_std=c++17', | ||
| ) | ||
|
|
||
| curl_dep = dependency( | ||
| 'libcurl', | ||
| version: '>=7.64.0', | ||
| version: '>=7.71.0', | ||
| ) | ||
| thread_dep = dependency('threads') | ||
|
|
||
| includes = include_directories('.', 'include') | ||
| subdir('cpr') | ||
|
|
||
| includes = include_directories('include') | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think You should install If you do that, and invoke |
||
| install_subdir( | ||
| 'include/cpr', | ||
| install_dir: get_option('includedir'), | ||
| ) | ||
|
|
||
| cpr_lib = library( | ||
| 'cpr', | ||
| include_directories: includes, | ||
| sources: cpr_src, | ||
| dependencies: [curl_dep, thread_dep], | ||
| version: meson.project_version(), | ||
| install: true, | ||
| ) | ||
|
|
||
| cpr_dep = declare_dependency( | ||
| include_directories: includes, | ||
| link_with: cpr_lib, | ||
| dependencies: [curl_dep, thread_dep], | ||
| ) | ||
| meson.override_dependency('cpr', cpr_dep) | ||
|
|
||
| subdir('test') | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also add
meson_version: '>=0.63.0'while we're here. (Alternatively0.54.0if you movecpp_stdtooverride_optionson thelibrary()andexecutable()calls, preferably via an intermediate variable.)