Removed the version flag in favor of setting the project version
This commit is contained in:
parent
6a4b6aa390
commit
94526d5272
@ -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')
|
cc = meson.get_compiler('c')
|
||||||
|
|
||||||
inc = include_directories('inc')
|
inc = include_directories('inc')
|
||||||
@ -9,7 +9,7 @@ dl = cc.find_library('dl')
|
|||||||
|
|
||||||
hg = find_program('hg', native : true, required : false)
|
hg = find_program('hg', native : true, required : false)
|
||||||
|
|
||||||
version = get_option('version')
|
version = meson.project_version()
|
||||||
|
|
||||||
if hg.found()
|
if hg.found()
|
||||||
version = run_command(hg, 'identify').stdout().strip()
|
version = run_command(hg, 'identify').stdout().strip()
|
||||||
|
@ -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_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_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')
|
option('enable_dmenu', type : 'boolean', value : true, description : 'Whether dmenu mode should be enabled')
|
Loading…
Reference in New Issue
Block a user