[libgnome-volume-control/wip/inigomartinez/meson: 3/8] build: Remove dependencies' variables



commit 9e98178a5decadad0c4d6f0e69a9715b06fcf731
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Sat Jan 27 08:41:56 2018 +0100

    build: Remove dependencies' variables
    
    A set of different variables are used to hold dependencies. However,
    no individual use of them is done.
    
    This patch removes these variables and holds their objects directly
    in the array of dependencies.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792948

 meson.build |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/meson.build b/meson.build
index ecc0f62..e7f2f45 100644
--- a/meson.build
+++ b/meson.build
@@ -12,11 +12,6 @@ gnome = import('gnome')
 pkglibdir = get_option('pkglibdir')
 pkgdatadir = get_option('pkgdatadir')
 
-gio = dependency('gio-2.0')
-gobject = dependency('gobject-2.0')
-libpulse = dependency('libpulse', version: '>= 2.0')
-libpulse_glib = dependency('libpulse-mainloop-glib')
-
 cdata = configuration_data()
 cdata.set_quoted('GETTEXT_PACKAGE', get_option('package_name'))
 cdata.set_quoted('PACKAGE_VERSION', get_option('package_version'))
@@ -55,10 +50,10 @@ libgvc_no_gir_sources = [
 ]
 
 libgvc_deps = [
-  gio,
-  gobject,
-  libpulse,
-  libpulse_glib
+  dependency('gio-2.0'),
+  dependency('gobject-2.0'),
+  dependency('libpulse', version: '>= 2.0'),
+  dependency('libpulse-mainloop-glib')
 ]
 
 enable_alsa = get_option('alsa')


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