[libgit2-glib] meson: Use generators placeholders



commit 56c4b48c3d17c6bde947560ddef61057d40817b6
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Wed May 22 10:17:36 2019 +0200

    meson: Use generators placeholders
    
    Functions derived from generators as `configure_file`,
    `custom_target` and `i18n.merge_file` can use placeholders like
    `@BASENAME@` that removes the extension from the input filename
    string.
    
    The output string has been replaced by this placeholder that
    allows in some cases the use of less variables.

 libgit2-glib/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgit2-glib/meson.build b/libgit2-glib/meson.build
index dc893a1..f71fbe0 100644
--- a/libgit2-glib/meson.build
+++ b/libgit2-glib/meson.build
@@ -179,7 +179,7 @@ ggit_h = 'ggit.h'
 
 sources += configure_file(
   input: ggit_h + '.in',
-  output: ggit_h,
+  output: '@BASENAME@',
   configuration: ggit_h_conf,
   install_dir: libgit2_glib_includedir / libgit2_glib_include_subdir,
 )


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