[sushi] build: invoke add_project_arguments once with all arguments



commit 80415d336895eada319c1cf5ffebf8541935da2c
Author: Rasmus Thomsen <cogitri exherbo org>
Date:   Sun Aug 12 20:58:01 2018 +0100

    build: invoke add_project_arguments once with all arguments

 meson.build | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)
---
diff --git a/meson.build b/meson.build
index a76366e..7cc8284 100644
--- a/meson.build
+++ b/meson.build
@@ -31,26 +31,11 @@ libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
 
 add_project_arguments(
   '-DSUSHI_LIBDIR="' + libdir + '"',
-  language: 'c',
-)
-add_project_arguments(
   '-DSUSHI_DATADIR="' + datadir + '"',
-  language: 'c',
-)
-add_project_arguments(
   '-DSUSHI_PKGDATADIR="' + join_paths(datadir, 'sushi') + '"',
-  language: 'c',
-)
-add_project_arguments(
   '-DSUSHI_TOP_SRCDIR="' + meson.current_source_dir() + '"',
-  language: 'c',
-)
-add_project_arguments(
   '-DSUSHI_BUILDDIR="' + meson.current_build_dir() + '"',
-  language: 'c',
-)
-add_project_arguments(
-  '-DGETTEXT_PACKAGE="sushi"',
+  '-DGETTEXT_PACKAGE="' + meson.project_name() + '"',
   language: 'c',
 )
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]