From 1103d841c6595d8e5f412ab4c048a686fc3ee060 Mon Sep 17 00:00:00 2001 From: Andrea Pappacoda Date: Tue, 17 Sep 2024 15:07:28 +0200 Subject: [PATCH] build(meson): bump minimum version to 0.62.0 This allows making some minor cleanups --- meson.build | 10 ++++------ test/meson.build | 6 +++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/meson.build b/meson.build index e82ae84..9fa1919 100644 --- a/meson.build +++ b/meson.build @@ -13,7 +13,7 @@ project( 'b_lto=true', 'warning_level=3' ], - meson_version: '>=0.47.0' + meson_version: '>=0.62.0' ) # Check just in case downstream decides to edit the source @@ -98,20 +98,18 @@ if get_option('cpp-httplib_compile') ) else install_headers('httplib.h') - cpp_httplib_dep = declare_dependency(compile_args: args, dependencies: deps, include_directories: include_directories('.')) + cpp_httplib_dep = declare_dependency(compile_args: args, dependencies: deps, include_directories: '.') import('pkgconfig').generate( name: 'cpp-httplib', description: 'A C++ HTTP/HTTPS server and client library', - install_dir: join_paths(get_option('datadir'), 'pkgconfig'), + install_dir: get_option('datadir')/'pkgconfig', url: 'https://github.com/yhirose/cpp-httplib', version: version ) endif -if meson.version().version_compare('>=0.54.0') - meson.override_dependency('cpp-httplib', cpp_httplib_dep) -endif +meson.override_dependency('cpp-httplib', cpp_httplib_dep) if get_option('cpp-httplib_test') subdir('test') diff --git a/test/meson.build b/test/meson.build index be9ca2b..de391a0 100644 --- a/test/meson.build +++ b/test/meson.build @@ -103,9 +103,9 @@ client_encrypted_cert_pem = custom_target( # Copy test files to the build directory configure_file(input: 'ca-bundle.crt', output: 'ca-bundle.crt', copy: true) configure_file(input: 'image.jpg', output: 'image.jpg', copy: true) -subdir(join_paths('www', 'dir')) -subdir(join_paths('www2', 'dir')) -subdir(join_paths('www3', 'dir')) +subdir('www' /'dir') +subdir('www2'/'dir') +subdir('www3'/'dir') # GoogleTest 1.13.0 requires C++14 test_options = []