mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-24 06:52:24 +08:00
dc5f12e92d
Disable `-Werror` due to deps warnings Use of subprocess barebones implementation
40 lines
936 B
Meson
40 lines
936 B
Meson
project('cpr', 'cpp',
|
|
version: '1.7.0',
|
|
license : 'MIT',
|
|
default_options: ['cpp_std=c++11']
|
|
)
|
|
|
|
curl_dep = dependency('libcurl', required : true)
|
|
|
|
src_inc = include_directories('.')
|
|
cpr_inc = include_directories('include')
|
|
cpr_lib = static_library('cpr',
|
|
sources : [
|
|
'cpr/auth.cpp',
|
|
'cpr/bearer.cpp',
|
|
'cpr/cookies.cpp',
|
|
'cpr/cprtypes.cpp',
|
|
'cpr/curl_container.cpp',
|
|
'cpr/curlholder.cpp',
|
|
'cpr/error.cpp',
|
|
'cpr/multipart.cpp',
|
|
'cpr/parameters.cpp',
|
|
'cpr/payload.cpp',
|
|
'cpr/proxies.cpp',
|
|
'cpr/proxyauth.cpp',
|
|
'cpr/session.cpp',
|
|
'cpr/timeout.cpp',
|
|
'cpr/unix_socket.cpp',
|
|
'cpr/util.cpp',
|
|
'cpr/response.cpp',
|
|
'cpr/redirect.cpp'
|
|
],
|
|
include_directories : [cpr_inc, src_inc],
|
|
dependencies : [curl_dep]
|
|
)
|
|
|
|
cpr_dep = declare_dependency(
|
|
include_directories : [cpr_inc, src_inc],
|
|
link_with : [cpr_lib]
|
|
)
|