diff options
author | Quentin Glidic <sardemff7+git@sardemff7.net> | 2019-03-26 12:10:09 +0100 |
---|---|---|
committer | Quentin Glidic <sardemff7+git@sardemff7.net> | 2019-03-26 12:10:09 +0100 |
commit | 16c77ea3cef5d4c38ec0ad40eea1551682595863 (patch) | |
tree | e6cdc0c2b73015bfb881ea7665690110e8e0dd2c | |
parent | 0657107fd588fda8320d97a8960f7aa75753190e (diff) |
meson: Drop enable- prefix for options
This is the preferred way for Meson projects
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
-rw-r--r-- | meson.build | 8 | ||||
-rw-r--r-- | meson_options.txt | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/meson.build b/meson.build index d628f31f..a4461b53 100644 --- a/meson.build +++ b/meson.build @@ -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'))) diff --git a/meson_options.txt b/meson_options.txt index 4534df7b..03b5ace9 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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') |