Removed the version flag in favor of setting the project version

This commit is contained in:
Scoopta 2020-02-28 22:02:10 -08:00
parent 6a4b6aa390
commit 94526d5272
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
project('wofi', 'c', default_options : ['buildtype=release', 'warning_level=2'])
project('wofi', 'c', version : 'hg', default_options : ['buildtype=release', 'warning_level=2'])
cc = meson.get_compiler('c')
inc = include_directories('inc')
@ -9,7 +9,7 @@ dl = cc.find_library('dl')
hg = find_program('hg', native : true, required : false)
version = get_option('version')
version = meson.project_version()
if hg.found()
version = run_command(hg, 'identify').stdout().strip()

View File

@ -1,4 +1,3 @@
option('version', type : 'string', value : 'hg', description : 'The version to use if mercurial cannot be found')
option('enable_run', type : 'boolean', value : true, description : 'Whether run mode should be enabled')
option('enable_drun', type : 'boolean', value : true, description : 'Whether drun mode should be enabled')
option('enable_dmenu', type : 'boolean', value : true, description : 'Whether dmenu mode should be enabled')