mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-08 00:59:48 +00:00
meson: libs: Add gir to the source list of the dependency
This commit is contained in:
parent
a87b4551a6
commit
5ef7a20687
2 changed files with 9 additions and 2 deletions
|
@ -31,6 +31,8 @@ if libtype != 'shared'
|
|||
gst_controller = gst_controller_static
|
||||
endif
|
||||
|
||||
|
||||
gst_controller_gen_sources = []
|
||||
if libtype != 'static'
|
||||
gst_controller_shared = shared_library('gstcontroller-@0@'.format(apiversion),
|
||||
gst_controller_sources,
|
||||
|
@ -44,7 +46,7 @@ if libtype != 'static'
|
|||
)
|
||||
gst_controller = gst_controller_shared
|
||||
if build_gir
|
||||
gnome.generate_gir(gst_controller_shared,
|
||||
gst_controller_gir = gnome.generate_gir(gst_controller_shared,
|
||||
sources : gst_controller_sources + gst_controller_headers,
|
||||
namespace : 'GstController',
|
||||
nsversion : apiversion,
|
||||
|
@ -57,9 +59,11 @@ if libtype != 'static'
|
|||
install : true,
|
||||
extra_args : gir_init_section,
|
||||
)
|
||||
gst_controller_gen_sources += [gst_controller_gir]
|
||||
endif
|
||||
endif
|
||||
|
||||
gst_controller_dep = declare_dependency(link_with : gst_controller,
|
||||
include_directories : [libsinc],
|
||||
sources: gst_controller_gen_sources,
|
||||
dependencies : [gst_dep])
|
||||
|
|
|
@ -31,6 +31,7 @@ if libtype != 'shared'
|
|||
gst_net = gst_net_static
|
||||
endif
|
||||
|
||||
gst_net_gen_sources = []
|
||||
if libtype != 'static'
|
||||
gst_net_shared = shared_library('gstnet-@0@'.format(apiversion),
|
||||
gst_net_sources,
|
||||
|
@ -44,7 +45,7 @@ if libtype != 'static'
|
|||
)
|
||||
gst_net = gst_net_shared
|
||||
if build_gir
|
||||
gnome.generate_gir(gst_net_shared,
|
||||
gst_net_gir = gnome.generate_gir(gst_net_shared,
|
||||
sources : gst_net_sources + gst_net_headers,
|
||||
namespace : 'GstNet',
|
||||
nsversion : apiversion,
|
||||
|
@ -57,9 +58,11 @@ if libtype != 'static'
|
|||
install : true,
|
||||
extra_args : gir_init_section,
|
||||
)
|
||||
gst_net_gen_sources += [gst_net_gir]
|
||||
endif
|
||||
endif
|
||||
|
||||
gst_net_dep = declare_dependency(link_with : gst_net,
|
||||
include_directories : [libsinc],
|
||||
sources: gst_net_gen_sources,
|
||||
dependencies : [gst_base_dep])
|
||||
|
|
Loading…
Reference in a new issue