Skip to content

Commit

Permalink
build: make libmanette support explicit
Browse files Browse the repository at this point in the history
(cherry picked from commit 81064bb)
  • Loading branch information
rawoul authored and aperezdc committed Aug 28, 2024
1 parent f2bbcbf commit e0f2386
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
8 changes: 8 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e0f2386

Please sign in to comment.