From 0498174d3572b13c1545896ea244760d9cdae167 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Fri, 27 Dec 2019 13:22:08 -0800 Subject: [PATCH] The executable name is no longer hardcoded. Instead meson.project_name() is used --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 5212346..aeb283f 100644 --- a/meson.build +++ b/meson.build @@ -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',