[gnome-bluetooth: 12/14] build: Use generators placeholders



commit aaafb400b7ef6dc204383761e59e86c583ef3fe7
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Fri Dec 21 11:37:32 2018 +0100

    build: 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.

 docs/reference/libgnome-bluetooth/meson.build | 6 ++----
 sendto/meson.build                            | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/docs/reference/libgnome-bluetooth/meson.build b/docs/reference/libgnome-bluetooth/meson.build
index b31eb181..728c24d7 100644
--- a/docs/reference/libgnome-bluetooth/meson.build
+++ b/docs/reference/libgnome-bluetooth/meson.build
@@ -12,11 +12,9 @@ private_headers = [
 version_conf = configuration_data()
 version_conf.set('VERSION', gnomebt_version)
 
-version_xml = 'version.xml'
-
 configure_file(
-  input: version_xml + '.in',
-  output: version_xml,
+  input: 'version.xml.in',
+  output: '@BASENAME@',
   configuration: version_conf,
 )
 
diff --git a/sendto/meson.build b/sendto/meson.build
index d7604e97..24a4e394 100644
--- a/sendto/meson.build
+++ b/sendto/meson.build
@@ -17,7 +17,7 @@ desktop = name + '.desktop'
 
 desktop_in = configure_file(
   input: desktop + '.in.in',
-  output: desktop + '.in',
+  output: '@BASENAME@',
   configuration: desktop_conf,
 )
 


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