niri: Gate behind a meson option

This commit is contained in:
Ivan Molodetskikh 2024-09-13 10:33:50 +03:00
parent fef0bb995c
commit 34bfefcd2e
2 changed files with 2 additions and 1 deletions

View File

@ -318,7 +318,7 @@ if true
)
endif
if true
if get_option('niri')
add_project_arguments('-DHAVE_NIRI', language: 'cpp')
src_files += files(
'src/modules/niri/backend.cpp',

View File

@ -19,3 +19,4 @@ option('experimental', type : 'boolean', value : false, description: 'Enable exp
option('jack', type: 'feature', value: 'auto', description: 'Enable support for JACK')
option('wireplumber', type: 'feature', value: 'auto', description: 'Enable support for WirePlumber')
option('cava', type: 'feature', value: 'auto', description: 'Enable support for Cava')
option('niri', type: 'boolean', description: 'Enable support for niri')