gst-full: declare dependency

Declare the gstreamer-full dependency which can be used
later by 3rd party applications.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/203>
This commit is contained in:
Stéphane Cerveau 2020-07-15 16:57:47 +02:00
parent 30ea94f40c
commit b4256c219d

View file

@ -1,6 +1,6 @@
project('All GStreamer modules', 'c', project('All GStreamer modules', 'c',
version : '1.19.0.1', version : '1.19.0.1',
meson_version : '>= 0.52.0', meson_version : '>= 0.54.0',
default_options : ['buildtype=debugoptimized']) default_options : ['buildtype=debugoptimized'])
gst_version = '>= @0@'.format(meson.project_version()) gst_version = '>= @0@'.format(meson.project_version())
@ -311,9 +311,15 @@ if get_option('default_library') == 'static'
link_depends : link_deps, link_depends : link_deps,
install : true, install : true,
) )
gst_full_dep = declare_dependency(link_with: gstfull.get_shared_lib(),
dependencies : gst_dep,
include_directories: include_directories('.')
)
pkgconfig.generate(gstfull, pkgconfig.generate(gstfull,
requires: requires, requires: requires,
subdirs : 'gstreamer-1.0') subdirs : 'gstreamer-1.0')
meson.override_dependency('gstreamer-full-1.0', gst_full_dep)
endif endif
foreach custom_subproj: get_option('custom_subprojects').split(',') foreach custom_subproj: get_option('custom_subprojects').split(',')