From 5d257268a42b49701f0c268f3754b34db22ee653 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 1 Jun 2025 22:37:45 +0200 Subject: [PATCH] Remove system-asio build option Asio has been shipping with `pkg-config` support since version 1.23, so this is no longer needed. --- CHANGELOG.md | 5 +++++ meson.build | 22 +--------------------- meson_options.txt | 12 ------------ 3 files changed, 6 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 262ee298..525adc67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,11 @@ Versioning](https://semver.org/spec/v2.0.0.html). - Fixed a regression that caused `yabridgectl set --path-auto` to no longer work. +### Packaging notes + +- The `system-asio` build option has been removed since `asio` added + `pkg-config` support three years ago in version 1.23. + ## [5.1.1] - 2024-12-23 ### Fixed diff --git a/meson.build b/meson.build index 0e6dd0a7..12ecb974 100644 --- a/meson.build +++ b/meson.build @@ -22,7 +22,6 @@ project( is_64bit_system = build_machine.cpu_family() not in ['x86', 'arm'] with_bitbridge = get_option('bitbridge') with_clap = get_option('clap') -with_system_asio = get_option('system-asio') with_winedbg = get_option('winedbg') with_vst3 = get_option('vst3') @@ -225,26 +224,7 @@ endif # These are all headers-only libraries, and thus won't require separate 32-bit # and 64-bit versions -# NOTE: The standalone asio library does not come with a pkgconfig or CMake -# build definition, and Meson thus also won't be able to detect it this -# way. As a workaround for distro packaging, configuring the project with -# `-Dsystem-asio=true` will use `` from the standard include -# directories instead. -if with_system_asio - if not meson.get_compiler('cpp', native : true).check_header('asio.hpp') - error('The \'system-asio\' build option was set, but was not found') - endif - - asio_version = meson.get_compiler('cpp', native : true).get_define('ASIO_VERSION', prefix : '#include ') - if asio_version.to_int() < 102800 - error('Expected version 1.28.0 of the asio library or higher, found @0@ (MMmmrr)'.format(asio_version)) - endif - - # This is a dummy dependency, since the library is only accessible implicitly through the system include path - asio_dep = declare_dependency() -else - asio_dep = dependency('asio', version : '>=1.28.0') -endif +asio_dep = dependency('asio', version : '>=1.28.0') if meson.version().version_compare('>=0.60') # Bitsery's CMake build definition is capitalized for some reason diff --git a/meson_options.txt b/meson_options.txt index f2c28f2a..376ea366 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -12,18 +12,6 @@ option( description : 'Whether to build the CLAP version of yabridge.' ) -option( - 'system-asio', - type : 'boolean', - value : false, - description : '''If set to true, then from the standard include - directories will be used in place of a pkgconfig definition, - CMake dependency, or subproject wrap. The asio library does - not come with any build definitions Meson can use to detect - its installed version and location, so this behavior is - behind an option as it's only relevant for distro packaging.''' -) - option( 'vst3', type : 'boolean',