[eog: 19/21] build: Remove one time use variables



commit a7ee27e229b6177a050e41bec80d457c5e281679
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Fri Jun 28 10:44:12 2019 +0200

    build: Remove one time use variables
    
    There are three "one time" use variables involved in GIR generation.
    These have been moved directly to the parameters avoiding the
    creation of such variables.

 src/meson.build | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index 9abe83ed..7416a208 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -209,19 +209,14 @@ eog = executable(
 )
 
 if enable_introspection
-  gir_sources = sources + headers
-
-  gir_dir = eog_pkgdatadir / 'gir-' + eog_gir_version
-  typelib_dir = eog_pkglibdir / 'girepository-' + eog_gir_version
-
   gnome.generate_gir(
     libeog,
-    sources: gir_sources,
+    sources: sources + headers,
     nsversion: eog_api_version,
     namespace: eog_gir_ns,
     includes: 'Gtk-3.0',
     install: true,
-    install_dir_gir: gir_dir,
-    install_dir_typelib: typelib_dir,
+    install_dir_gir: eog_pkgdatadir / 'gir-' + eog_gir_version,
+    install_dir_typelib: eog_pkglibdir / 'girepository-' + eog_gir_version,
   )
 endif


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