add an option to enable/disable libliftoff

instead of always using it if found
This commit is contained in:
Leonardo Hernández Hernández 2024-06-05 22:33:05 -06:00
parent a4e1184712
commit 385c9ade5f
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
3 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@ libliftoff = dependency(
'libliftoff',
version: '>=0.4.0',
fallback: 'libliftoff',
required: false,
required: get_option('libliftoff'),
)
if not (hwdata.found() and libdisplay_info.found() and features['session'])

View File

@ -99,6 +99,7 @@ features = {
internal_features = {
'xcb-errors': false,
'egl': false,
'libliftoff': false,
}
internal_config = configuration_data()

View File

@ -8,3 +8,4 @@ option('allocators', type: 'array', choices: ['auto', 'gbm'], value: ['auto'],
description: 'Select built-in allocators')
option('session', type: 'feature', value: 'auto', description: 'Enable session support')
option('color-management', type: 'feature', value: 'auto', description: 'Enable support for color management')
option('libliftoff', type: 'feature', value: 'auto', description: 'Enable support for libliftoff')