mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
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:
parent
0657107fd5
commit
16c77ea3ce
2 changed files with 8 additions and 8 deletions
|
@ -58,7 +58,7 @@ deps += [
|
||||||
dependency('libstartup-notification-1.0'),
|
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 = configuration_data()
|
||||||
header_conf.set_quoted('PACKAGE_NAME', meson.project_name())
|
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('USE_NK_GIT_VERSION', true)
|
||||||
|
|
||||||
header_conf.set('ENABLE_DRUN', get_option('enable-drun'))
|
header_conf.set('ENABLE_DRUN', get_option('drun'))
|
||||||
header_conf.set('WINDOW_MODE', get_option('enable-window'))
|
header_conf.set('WINDOW_MODE', get_option('window'))
|
||||||
header_conf.set('TIMINGS', get_option('enable-timings'))
|
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('MANPAGE_PATH', join_paths(get_option('prefix'), get_option('mandir')))
|
||||||
header_conf.set_quoted('SYSCONFDIR', join_paths(get_option('prefix'), get_option('sysconfdir')))
|
header_conf.set_quoted('SYSCONFDIR', join_paths(get_option('prefix'), get_option('sysconfdir')))
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
option('enable-drun', type: 'boolean', value: true, description: 'Desktop file mode')
|
option('drun', type: 'boolean', value: true, description: 'Desktop file mode')
|
||||||
option('enable-window', type: 'boolean', value: true, description: 'Window switcher mode')
|
option('window', type: 'boolean', value: true, description: 'Window switcher mode')
|
||||||
option('enable-timings', type: 'boolean', value: false, description: 'Timings output')
|
option('timings', type: 'boolean', value: false, description: 'Timings output')
|
||||||
option('enable-check', type: 'boolean', value: true, description: 'Build and run libcheck-based tests')
|
option('check', type: 'boolean', value: true, description: 'Build and run libcheck-based tests')
|
||||||
|
|
Loading…
Reference in a new issue