The executable name is no longer hardcoded. Instead meson.project_name() is used
This commit is contained in:
parent
a40a8be7f5
commit
0498174d35
@ -1,4 +1,4 @@
|
||||
project('wofi', 'c', version : 'v1.0', default_options : ['buildtype=release', 'warning_level=2'])
|
||||
project('wofi', 'c', version : run_command('hg', 'identify').stdout().strip(), default_options : ['buildtype=release', 'warning_level=2'])
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
inc = include_directories('inc')
|
||||
@ -11,7 +11,7 @@ dl = cc.find_library('dl')
|
||||
add_project_arguments('-D_GNU_SOURCE', '-DVERSION="' + meson.project_version() + '"', language : 'c')
|
||||
add_project_link_arguments('-rdynamic', language : 'c')
|
||||
|
||||
executable('wofi',
|
||||
executable(meson.project_name(),
|
||||
'src/config.c',
|
||||
'src/main.c',
|
||||
'src/map.c',
|
||||
|
Loading…
Reference in New Issue
Block a user