From e0f238636347e3ab1da10eb766a3f5411bfa2962 Mon Sep 17 00:00:00 2001 From: Arnaud Vrac Date: Fri, 5 Apr 2024 23:58:42 +0200 Subject: [PATCH] build: make libmanette support explicit (cherry picked from commit 81064bba861b483beb7dc0f92f3f6ebbf354209e) --- meson.build | 2 +- meson_options.txt | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 42a0fe0a..c3f9ffb7 100644 --- a/meson.build +++ b/meson.build @@ -151,7 +151,7 @@ if cog_launcher_system_bus endif wpe_dep = dependency('wpe-1.0') -manette_dep = dependency('manette-0.2', version: '>=0.2.4', required: false) +manette_dep = dependency('manette-0.2', version: '>=0.2.4', required: get_option('libmanette')) subdir('core') diff --git a/meson_options.txt b/meson_options.txt index 07bbaa51..959960fe 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -24,6 +24,14 @@ option( description: 'WPE WebKit API to target (1.0 = soup2, 1.1/2.0 = soup3)' ) +# Features supported in more than one platform +option( + 'libmanette', + type: 'feature', + value: 'auto', + description: 'Use libmanette to support gamepads' +) + # Wayland platform-specific features option( 'wayland_weston_direct_display',