mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
meson: Add variables for gir files
And flatten list of sources for dependencies
This commit is contained in:
parent
f9de1b9214
commit
685731e989
9 changed files with 30 additions and 18 deletions
|
@ -22,7 +22,7 @@ gstallocators = library('gstallocators-@0@'.format(api_version),
|
|||
allocators_gen_sources = []
|
||||
if build_gir
|
||||
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/allocators/allocators.h' ]
|
||||
allocators_gen_sources += [gnome.generate_gir(gstallocators,
|
||||
allocators_gir = gnome.generate_gir(gstallocators,
|
||||
sources : gst_allocators_sources + gst_allocators_headers,
|
||||
namespace : 'GstAllocators',
|
||||
nsversion : api_version,
|
||||
|
@ -33,7 +33,8 @@ if build_gir
|
|||
install : true,
|
||||
extra_args : gst_gir_extra_args,
|
||||
dependencies : [gst_dep]
|
||||
)]
|
||||
)
|
||||
allocators_gen_sources += allocators_gir
|
||||
endif
|
||||
|
||||
allocators_dep = declare_dependency(link_with: gstallocators,
|
||||
|
|
|
@ -32,7 +32,7 @@ gstapp = library('gstapp-@0@'.format(api_version),
|
|||
|
||||
if build_gir
|
||||
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/app/app.h' ]
|
||||
app_gen_sources += [gnome.generate_gir(gstapp,
|
||||
app_gir = gnome.generate_gir(gstapp,
|
||||
sources : app_sources + app_headers + [gstapp_c] + [gstapp_h],
|
||||
namespace : 'GstApp',
|
||||
nsversion : api_version,
|
||||
|
@ -43,7 +43,9 @@ if build_gir
|
|||
install : true,
|
||||
extra_args : gst_gir_extra_args,
|
||||
dependencies : [gst_dep, gst_base_dep]
|
||||
)]
|
||||
)
|
||||
|
||||
app_gen_sources += app_gir
|
||||
endif
|
||||
|
||||
app_dep = declare_dependency(link_with: gstapp,
|
||||
|
|
|
@ -153,7 +153,7 @@ gstaudio = library('gstaudio-@0@'.format(api_version),
|
|||
|
||||
if build_gir
|
||||
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/audio/audio.h' ]
|
||||
audio_gen_sources += [gnome.generate_gir(gstaudio,
|
||||
audio_gir = gnome.generate_gir(gstaudio,
|
||||
sources : audio_src + audio_headers + [gstaudio_c] + [gstaudio_h],
|
||||
namespace : 'GstAudio',
|
||||
nsversion : api_version,
|
||||
|
@ -164,7 +164,8 @@ if build_gir
|
|||
install : true,
|
||||
extra_args : gst_gir_extra_args,
|
||||
dependencies : gstaudio_deps
|
||||
)]
|
||||
)
|
||||
audio_gen_sources += [audio_gir]
|
||||
endif
|
||||
|
||||
audio_dep = declare_dependency(link_with : gstaudio,
|
||||
|
|
|
@ -63,7 +63,7 @@ pbutils = library('gstpbutils-@0@'.format(api_version),
|
|||
pbutils_gen_sources = [gstpbutils_h, gst_pbutils_version_h]
|
||||
if build_gir
|
||||
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/pbutils/pbutils.h' ]
|
||||
pbutils_gen_sources += [gnome.generate_gir(pbutils,
|
||||
pbutils_gir = gnome.generate_gir(pbutils,
|
||||
sources : pbutils_sources + pbutils_headers + [gstpbutils_h, gst_pbutils_version_h],
|
||||
namespace : 'GstPbutils',
|
||||
nsversion : api_version,
|
||||
|
@ -74,7 +74,8 @@ if build_gir
|
|||
install : true,
|
||||
extra_args : gst_gir_extra_args,
|
||||
dependencies : gstpbutils_deps
|
||||
)]
|
||||
)
|
||||
pbutils_gen_sources += [pbutils_gir]
|
||||
endif
|
||||
|
||||
pbutils_dep = declare_dependency(link_with : pbutils,
|
||||
|
|
|
@ -49,7 +49,7 @@ gst_rtp = library('gstrtp-@0@'.format(api_version),
|
|||
rtp_gen_sources = [gstrtp_enum_h]
|
||||
if build_gir
|
||||
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtp/rtp.h' ]
|
||||
rtp_gen_sources += [gnome.generate_gir(gst_rtp,
|
||||
rtp_gir = gnome.generate_gir(gst_rtp,
|
||||
sources : rtp_sources + rtp_headers + [gstrtp_enum_c] + [gstrtp_enum_h],
|
||||
namespace : 'GstRtp',
|
||||
nsversion : api_version,
|
||||
|
@ -60,7 +60,9 @@ if build_gir
|
|||
install : true,
|
||||
extra_args : gst_gir_extra_args,
|
||||
dependencies : gstrtp_deps
|
||||
)]
|
||||
)
|
||||
|
||||
rtp_gen_sources += [rtp_gir]
|
||||
endif
|
||||
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ gst_rtsp = library('gstrtsp-@0@'.format(api_version),
|
|||
rtsp_gen_sources = [gstrtsp_h]
|
||||
if build_gir
|
||||
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtsp/rtsp.h' ]
|
||||
rtsp_gen_sources += [gnome.generate_gir(gst_rtsp,
|
||||
rtsp_gir = gnome.generate_gir(gst_rtsp,
|
||||
sources : rtsp_sources + rtsp_headers + [gstrtsp_c] + [gstrtsp_h],
|
||||
namespace : 'GstRtsp',
|
||||
nsversion : api_version,
|
||||
|
@ -65,7 +65,8 @@ if build_gir
|
|||
install : true,
|
||||
extra_args : gst_gir_extra_args,
|
||||
dependencies : gstrtsp_deps + [sdp_dep]
|
||||
)]
|
||||
)
|
||||
rtsp_gen_sources += [rtsp_gir]
|
||||
endif
|
||||
|
||||
rtsp_dep = declare_dependency(link_with : gst_rtsp,
|
||||
|
|
|
@ -23,7 +23,7 @@ gstsdp = library('gstsdp-@0@'.format(api_version),
|
|||
sdp_gen_sources = []
|
||||
if build_gir
|
||||
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/sdp/sdp.h' ]
|
||||
sdp_gen_sources += [gnome.generate_gir(gstsdp,
|
||||
sdp_gir = gnome.generate_gir(gstsdp,
|
||||
sources : gst_sdp_sources + gst_sdp_headers,
|
||||
namespace : 'GstSdp',
|
||||
nsversion : api_version,
|
||||
|
@ -34,7 +34,9 @@ if build_gir
|
|||
install : true,
|
||||
extra_args : gst_gir_extra_args,
|
||||
dependencies : rtsp_deps
|
||||
)]
|
||||
)
|
||||
|
||||
sdp_gen_sources += [sdp_gir]
|
||||
endif
|
||||
|
||||
sdp_dep = declare_dependency(link_with: gstsdp,
|
||||
|
|
|
@ -93,7 +93,7 @@ gsttag = library('gsttag-@0@'.format(api_version),
|
|||
|
||||
if build_gir
|
||||
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/tag/tag.h' ]
|
||||
tag_gen_sources += [gnome.generate_gir(gsttag,
|
||||
tag_gir = gnome.generate_gir(gsttag,
|
||||
sources : tag_sources + tag_headers + [gsttag_h] + [gsttag_c],
|
||||
namespace : 'GstTag',
|
||||
nsversion : api_version,
|
||||
|
@ -104,7 +104,8 @@ if build_gir
|
|||
install : true,
|
||||
extra_args : gst_gir_extra_args,
|
||||
dependencies : tag_deps
|
||||
)]
|
||||
)
|
||||
tag_gen_sources += [tag_gir]
|
||||
endif
|
||||
|
||||
tag_dep = declare_dependency(link_with: gsttag,
|
||||
|
|
|
@ -138,7 +138,7 @@ gstvideo = library('gstvideo-@0@'.format(api_version),
|
|||
|
||||
if build_gir
|
||||
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/video/video.h' ]
|
||||
video_gen_sources += [gnome.generate_gir(gstvideo,
|
||||
video_gir = gnome.generate_gir(gstvideo,
|
||||
sources : video_sources + video_headers + [gstvideo_c] + [gstvideo_h],
|
||||
namespace : 'GstVideo',
|
||||
nsversion : api_version,
|
||||
|
@ -149,7 +149,8 @@ if build_gir
|
|||
install : true,
|
||||
extra_args : gst_gir_extra_args,
|
||||
dependencies : gstvideo_deps
|
||||
)]
|
||||
)
|
||||
video_gen_sources += [video_gir]
|
||||
endif
|
||||
|
||||
video_dep = declare_dependency(link_with : gstvideo,
|
||||
|
|
Loading…
Reference in a new issue