gstreamer/subprojects/gst-plugins-base/ext/libvisual/meson.build
Tim-Philipp Müller f1bb2c76c6 meson: update for dep.get_pkgconfig_variable() deprecation
... in favour of dep.get_variable('foo', ..) which in some
cases allows for further cleanups in future since we can
extract variables from pkg-config dependencies as well as
internal dependencies using this mechanism.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1183>
2021-10-20 11:20:44 +00:00

22 lines
739 B
Meson

libvisual_sources = [
'visual.c',
'plugin.c',
]
libvisual_dep = dependency('libvisual-0.4', version : '>= 0.4.0',
required : get_option('libvisual'))
if libvisual_dep.found()
core_conf.set_quoted('LIBVISUAL_PLUGINSBASEDIR',
libvisual_dep.get_variable('pluginsbasedir'))
gstlibvisual = library('gstlibvisual',
libvisual_sources,
c_args : gst_plugins_base_args,
include_directories: [configinc, libsinc],
dependencies : glib_deps + [libvisual_dep, audio_dep, video_dep, pbutils_dep, gst_dep, gst_base_dep],
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstlibvisual, install_dir : plugins_pkgconfig_install_dir)
plugins += [gstlibvisual]
endif