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
This commit is contained in:
Iñigo Martínez 2018-01-27 08:41:56 +01:00
parent b4854a80a9
commit 68b7fccda8

View File

@ -12,11 +12,6 @@ gnome = import('gnome')
pkglibdir = get_option('pkglibdir') pkglibdir = get_option('pkglibdir')
pkgdatadir = get_option('pkgdatadir') 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 = configuration_data()
cdata.set_quoted('GETTEXT_PACKAGE', get_option('package_name')) cdata.set_quoted('GETTEXT_PACKAGE', get_option('package_name'))
cdata.set_quoted('PACKAGE_VERSION', get_option('package_version')) cdata.set_quoted('PACKAGE_VERSION', get_option('package_version'))
@ -55,10 +50,10 @@ libgvc_no_gir_sources = [
] ]
libgvc_deps = [ libgvc_deps = [
gio, dependency('gio-2.0'),
gobject, dependency('gobject-2.0'),
libpulse, dependency('libpulse', version: '>= 2.0'),
libpulse_glib dependency('libpulse-mainloop-glib')
] ]
enable_alsa = get_option('alsa') enable_alsa = get_option('alsa')