First implementation
It seems to work but I think the ticker value returned by the remote call is wrong. Maybe I'm calling the wrong endpoint ¯\_(ツ)_/¯ I don't know trying to work it out
This commit is contained in:
commit
1d61cc7f2f
21 changed files with 1474 additions and 0 deletions
38
subprojects/packagefiles/curlcpp/meson.build
Normal file
38
subprojects/packagefiles/curlcpp/meson.build
Normal file
|
@ -0,0 +1,38 @@
|
|||
project('curlcpp', 'cpp',
|
||||
version: '1.4',
|
||||
meson_version: '>=0.49.2',
|
||||
default_options: ['buildtype=release', 'cpp_std=c++11', 'b_ndebug=if-release'],
|
||||
license: 'MIT',
|
||||
)
|
||||
|
||||
curl_dep = dependency('libcurl', version: '>=7.28.0')
|
||||
public_incl = include_directories('include')
|
||||
subdir('src')
|
||||
|
||||
if not meson.is_subproject()
|
||||
install_headers(
|
||||
'include/cookie.h',
|
||||
'include/cookie_date.h',
|
||||
'include/cookie_datetime.h',
|
||||
'include/cookie_time.h',
|
||||
'include/curl_config.h',
|
||||
'include/curl_cookie.h',
|
||||
'include/curl_easy.h',
|
||||
'include/curl_easy_info.h',
|
||||
'include/curl_exception.h',
|
||||
'include/curl_form.h',
|
||||
'include/curl_global.h',
|
||||
'include/curl_header.h',
|
||||
'include/curl_info.h',
|
||||
'include/curl_interface.h',
|
||||
'include/curl_ios.h',
|
||||
'include/curl_multi.h',
|
||||
'include/curl_option.h',
|
||||
'include/curl_pair.h',
|
||||
'include/curl_receiver.h',
|
||||
'include/curl_sender.h',
|
||||
'include/curl_share.h',
|
||||
'include/curl_utility.h',
|
||||
subdir: meson.project_name(),
|
||||
)
|
||||
endif
|
24
subprojects/packagefiles/curlcpp/src/meson.build
Normal file
24
subprojects/packagefiles/curlcpp/src/meson.build
Normal file
|
@ -0,0 +1,24 @@
|
|||
curlcpp = library(meson.project_name(),
|
||||
'curl_easy.cpp',
|
||||
'curl_header.cpp',
|
||||
'curl_global.cpp',
|
||||
'curl_form.cpp',
|
||||
'curl_multi.cpp',
|
||||
'curl_share.cpp',
|
||||
'curl_info.cpp',
|
||||
'curl_cookie.cpp',
|
||||
'curl_exception.cpp',
|
||||
'cookie.cpp',
|
||||
'cookie_date.cpp',
|
||||
'cookie_time.cpp',
|
||||
'cookie_datetime.cpp',
|
||||
dependencies: [curl_dep],
|
||||
include_directories: public_incl,
|
||||
install: (not meson.is_subproject() or get_option('default_library')=='shared')
|
||||
)
|
||||
|
||||
curlcpp_dep = declare_dependency(
|
||||
link_with: curlcpp,
|
||||
include_directories: public_incl,
|
||||
dependencies: curl_dep.partial_dependency(includes: true),
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue