The executable name is no longer hardcoded. Instead meson.project_name() is used

This commit is contained in:
Scoopta 2019-12-27 13:22:08 -08:00
parent a40a8be7f5
commit 0498174d35

View File

@ -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') cc = meson.get_compiler('c')
inc = include_directories('inc') 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_arguments('-D_GNU_SOURCE', '-DVERSION="' + meson.project_version() + '"', language : 'c')
add_project_link_arguments('-rdynamic', language : 'c') add_project_link_arguments('-rdynamic', language : 'c')
executable('wofi', executable(meson.project_name(),
'src/config.c', 'src/config.c',
'src/main.c', 'src/main.c',
'src/map.c', 'src/map.c',