mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
meson: Add GstBase-1.0.gir to gst_base_dep
Without this, GIR generators can't find and use it
This commit is contained in:
parent
bce5d0fc55
commit
accd0b4129
1 changed files with 6 additions and 3 deletions
|
@ -44,6 +44,8 @@ if libtype != 'shared'
|
||||||
gst_base = gst_base_static
|
gst_base = gst_base_static
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
gst_base_gen_sources = []
|
||||||
|
|
||||||
if libtype != 'static'
|
if libtype != 'static'
|
||||||
gst_base_shared = shared_library('gstbase-@0@'.format(apiversion),
|
gst_base_shared = shared_library('gstbase-@0@'.format(apiversion),
|
||||||
gst_base_sources,
|
gst_base_sources,
|
||||||
|
@ -57,7 +59,7 @@ if libtype != 'static'
|
||||||
)
|
)
|
||||||
gst_base = gst_base_shared
|
gst_base = gst_base_shared
|
||||||
if build_gir
|
if build_gir
|
||||||
gnome.generate_gir(gst_base_shared,
|
gst_base_gen_sources += [gnome.generate_gir(gst_base_shared,
|
||||||
sources : gst_base_sources + gst_base_headers,
|
sources : gst_base_sources + gst_base_headers,
|
||||||
namespace : 'GstBase',
|
namespace : 'GstBase',
|
||||||
nsversion : apiversion,
|
nsversion : apiversion,
|
||||||
|
@ -69,13 +71,14 @@ if libtype != 'static'
|
||||||
includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0', 'Gst-1.0'],
|
includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0', 'Gst-1.0'],
|
||||||
install : true,
|
install : true,
|
||||||
extra_args : gir_init_section,
|
extra_args : gir_init_section,
|
||||||
)
|
)]
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
gst_base_dep = declare_dependency(link_with : gst_base,
|
gst_base_dep = declare_dependency(link_with : gst_base,
|
||||||
include_directories : [libsinc],
|
include_directories : [libsinc],
|
||||||
dependencies : [gst_dep])
|
dependencies : [gst_dep],
|
||||||
|
sources : gst_base_gen_sources)
|
||||||
|
|
||||||
install_headers('base.h',
|
install_headers('base.h',
|
||||||
'gstadapter.h',
|
'gstadapter.h',
|
||||||
|
|
Loading…
Reference in a new issue