meson: Drop enable- prefix for options

This is the preferred way for Meson projects

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2019-03-26 12:10:09 +01:00
parent 0657107fd5
commit 16c77ea3ce
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
2 changed files with 8 additions and 8 deletions

View File

@ -58,7 +58,7 @@ deps += [
dependency('libstartup-notification-1.0'),
]
check = dependency('check', version: '>= 0.11.0', required: get_option('enable-check'))
check = dependency('check', version: '>= 0.11.0', required: get_option('check'))
header_conf = configuration_data()
header_conf.set_quoted('PACKAGE_NAME', meson.project_name())
@ -73,9 +73,9 @@ header_conf.set('_GNU_SOURCE', true)
header_conf.set('USE_NK_GIT_VERSION', true)
header_conf.set('ENABLE_DRUN', get_option('enable-drun'))
header_conf.set('WINDOW_MODE', get_option('enable-window'))
header_conf.set('TIMINGS', get_option('enable-timings'))
header_conf.set('ENABLE_DRUN', get_option('drun'))
header_conf.set('WINDOW_MODE', get_option('window'))
header_conf.set('TIMINGS', get_option('timings'))
header_conf.set_quoted('MANPAGE_PATH', join_paths(get_option('prefix'), get_option('mandir')))
header_conf.set_quoted('SYSCONFDIR', join_paths(get_option('prefix'), get_option('sysconfdir')))

View File

@ -1,4 +1,4 @@
option('enable-drun', type: 'boolean', value: true, description: 'Desktop file mode')
option('enable-window', type: 'boolean', value: true, description: 'Window switcher mode')
option('enable-timings', type: 'boolean', value: false, description: 'Timings output')
option('enable-check', type: 'boolean', value: true, description: 'Build and run libcheck-based tests')
option('drun', type: 'boolean', value: true, description: 'Desktop file mode')
option('window', type: 'boolean', value: true, description: 'Window switcher mode')
option('timings', type: 'boolean', value: false, description: 'Timings output')
option('check', type: 'boolean', value: true, description: 'Build and run libcheck-based tests')