Skip to content

Commit

Permalink
build: make libmanette support explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
rawoul authored and aperezdc committed Aug 28, 2024
1 parent edafaa0 commit 81064bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ if cog_launcher_system_bus
endif

wpe_dep = dependency('wpe-1.0', version: '>=1.14.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')
subdir('platform')
Expand Down
7 changes: 7 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ option(
description: 'Use libportal to provide file picker dialogs'
)

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 81064bb

Please sign in to comment.