Make date.h and cpp-httplib proper dependencies

They were previously embedded in the source tree, and are now proper
subprojects.
I've also moved rapidjson.h out of include/pistache/thirdparty since it
is part of Pistache - this is a breaking change.
parent 91510e35
This diff is collapsed.
......@@ -24,7 +24,11 @@ if get_option('b_coverage')
add_project_arguments(compiler.get_supported_arguments(['-fstack-protector-all', '--param=ssp-buffer-size=4']), language: 'cpp')
endif
deps_libpistache = [dependency('threads'), dependency('RapidJSON', fallback: ['rapidjson', 'rapidjson_dep'])]
deps_libpistache = [
dependency('threads'),
dependency('RapidJSON', fallback: ['rapidjson', 'rapidjson_dep']),
dependency('hinnant-date', fallback: ['hinnant-date', 'date_dep'])
]
# Check if -latomic is needed - https://github.com/llvm/llvm-project/blob/main/llvm/cmake/modules/CheckAtomic.cmake
compiler_id = compiler.get_id()
......
[wrap-file]
directory = cpp-httplib-0.8.9
source_url = https://github.com/yhirose/cpp-httplib/archive/v0.8.9.tar.gz
source_filename = cpp-httplib-0.8.9.tar.gz
source_hash = 3c5e0d6784d04b0b3d10f60fa2a26ef2a968fb80f434c4d117c2811f9e3a5ed7
patch_filename = cpp-httplib_0.8.9-2_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/cpp-httplib_0.8.9-2/get_patch
patch_hash = d9306eb0a049be9ddb10337405d1635c33d6f133d4c08769c4a61e7135d48874
[provide]
cpp-httplib = cpp_httplib_dep
[wrap-file]
source_url = https://github.com/HowardHinnant/date/archive/v3.0.0.tar.gz
source_filename = date-3.0.0.tar.gz
source_hash = 87bba2eaf0ebc7ec539e5e62fc317cb80671a337c1fb1b84cb9e4d42c6dbebe3
directory = date-3.0.0
patch_url = https://wrapdb.mesonbuild.com/v2/hinnant-date_3.0.0-1/get_patch
patch_filename = hinnant-date-3.0.0-1-wrap.zip
patch_hash = 6ccaf70732d8bdbd1b6d5fdf3e1b935c23bf269bda12fdfd0e561276f63432fe
This diff is collapsed.
curl_dep = dependency('libcurl')
gtest_main_dep = dependency('gtest', main: true, fallback: ['gtest', 'gtest_main_dep'])
cpp_httplib_dep = dependency('cpp-httplib', fallback: ['cpp-httplib', 'cpp_httplib_dep'])
pistache_test_files = [
'mime_test',
......@@ -43,7 +44,8 @@ foreach test_name : pistache_test_files
dependencies: [
pistache_dep,
gtest_main_dep,
curl_dep
curl_dep,
cpp_httplib_dep
]
),
timeout: 60,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment