mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
meson: use dep.get_pkgconfig_variable()
instead of calling pkg-config ourselves.
This commit is contained in:
parent
16b8851440
commit
e774d1ca4b
2 changed files with 8 additions and 18 deletions
|
@ -5,13 +5,9 @@ libvisual_sources = [
|
|||
|
||||
libvisual_dep = dependency('libvisual-0.4', version : '>= 0.4.0', required : false)
|
||||
if libvisual_dep.found()
|
||||
runcmd = run_command('pkg-config', '--variable=pluginsbasedir', 'libvisual-0.4')
|
||||
if runcmd.returncode() == 0
|
||||
core_conf.set('LIBVISUAL_PLUGINSBASEDIR', '"@0@"'.format(runcmd.stdout().strip()))
|
||||
endif
|
||||
endif
|
||||
core_conf.set_quoted('LIBVISUAL_PLUGINSBASEDIR',
|
||||
libvisual_dep.get_pkgconfig_variable('pluginsbasedir'))
|
||||
|
||||
if libvisual_dep.found()
|
||||
gstlibvisual = library('gstlibvisual',
|
||||
libvisual_sources,
|
||||
c_args : gst_plugins_base_args,
|
||||
|
|
18
meson.build
18
meson.build
|
@ -143,18 +143,12 @@ gio_dep = dependency('gio-2.0', version : glib_req)
|
|||
core_conf.set('HAVE_X', x11_dep.found())
|
||||
core_conf.set('HAVE_GIO_UNIX_2_0', giounix_dep.found())
|
||||
|
||||
runcmd = run_command('pkg-config', '--variable=giomoduledir', 'gio-2.0')
|
||||
if runcmd.returncode() == 0
|
||||
core_conf.set('GIO_MODULE_DIR', '"@0@"'.format(runcmd.stdout().strip()))
|
||||
endif
|
||||
runcmd = run_command('pkg-config', '--variable=libdir', 'gio-2.0')
|
||||
if runcmd.returncode() == 0
|
||||
core_conf.set('GIO_LIBDIR', '"@0@"'.format(runcmd.stdout().strip()))
|
||||
endif
|
||||
runcmd = run_command('pkg-config', '--variable=prefix', 'gio-2.0')
|
||||
if runcmd.returncode() == 0
|
||||
core_conf.set('GIO_PREFIX', '"@0@"'.format(runcmd.stdout().strip()))
|
||||
endif
|
||||
core_conf.set_quoted('GIO_MODULE_DIR',
|
||||
gio_dep.get_pkgconfig_variable('giomoduledir'))
|
||||
core_conf.set_quoted('GIO_LIBDIR',
|
||||
gio_dep.get_pkgconfig_variable('libdir'))
|
||||
core_conf.set_quoted('GIO_PREFIX',
|
||||
gio_dep.get_pkgconfig_variable('prefix'))
|
||||
|
||||
configinc = include_directories('.')
|
||||
libsinc = include_directories('gst-libs')
|
||||
|
|
Loading…
Reference in a new issue