meson: Pass --c-include accordingly to GIR builds

This commit is contained in:
Rico Tzschichholz 2017-04-12 16:06:45 +02:00 committed by Tim-Philipp Müller
parent 4246198fb3
commit 07a427b403
11 changed files with 22 additions and 11 deletions

View file

@ -19,6 +19,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,
sources : gst_allocators_sources + gst_allocators_headers,
namespace : 'GstAllocators',
@ -28,7 +29,7 @@ if build_gir
export_packages : 'gstreamer-allocators-1.0',
includes : ['Gst-1.0'],
install : true,
extra_args : gir_init_section,
extra_args : gst_gir_extra_args,
dependencies : [gst_dep]
)]
endif

View file

@ -34,6 +34,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,
sources : app_sources + app_headers + [gstapp_c] + [gstapp_h],
namespace : 'GstApp',
@ -43,7 +44,7 @@ if build_gir
export_packages : 'gstreamer-app-1.0',
includes : ['Gst-1.0', 'GstBase-1.0'],
install : true,
extra_args : gir_init_section,
extra_args : gst_gir_extra_args,
dependencies : [gst_dep, gst_base_dep]
)]
endif

View file

@ -146,6 +146,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,
sources : audio_src + audio_headers + [gstaudio_c] + [gstaudio_h],
namespace : 'GstAudio',
@ -155,7 +156,7 @@ if build_gir
export_packages : 'gstreamer-audio-1.0',
includes : ['Gst-1.0', 'GLib-2.0', 'GObject-2.0', 'GModule-2.0' ],
install : true,
extra_args : gir_init_section,
extra_args : gst_gir_extra_args,
dependencies : gstaudio_deps
)]
endif

View file

@ -37,6 +37,7 @@ gstfft = library('gstfft-@0@'.format(api_version),
fft_gen_sources = []
if build_gir
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/fft/fft.h' ]
fft_gen_sources += [gnome.generate_gir(gstfft,
sources : fft_sources + fft_headers,
namespace : 'GstFft',
@ -46,7 +47,7 @@ if build_gir
export_packages : 'gstreamer-fft-1.0',
includes : ['Gst-1.0'],
install : true,
extra_args : gir_init_section,
extra_args : gst_gir_extra_args,
dependencies : [gst_dep, libm]
)]
endif

View file

@ -65,6 +65,7 @@ pbutils = library('gstpbutils-@0@'.format(api_version),
pbutils_gen_sources = [gstpbutils_h]
if build_gir
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/pbutils/pbutils.h' ]
pbutils_gen_sources += [gnome.generate_gir(pbutils,
sources : pbutils_sources + pbutils_headers + [gstpbutils_h],
namespace : 'GstPbutils',
@ -74,7 +75,7 @@ if build_gir
export_packages : 'gstreamer-pbutils-1.0',
includes : ['Gst-1.0', 'GstBase-1.0'],
install : true,
extra_args : gir_init_section,
extra_args : gst_gir_extra_args,
dependencies : gstpbutils_deps
)]
endif

View file

@ -30,6 +30,7 @@ riff_gen_sources = []
# This library does not respect the type naming conventions required to be
# usable in binded languages.
# if build_gir
# gst_gir_extra_args = gir_init_section + [ '--c-include=gst/riff/riff.h' ]
# riff_gen_sources += [gnome.generate_gir(gstriff,
# sources : riff_sources + riff_headers,
# namespace : 'GstRiff',
@ -39,7 +40,7 @@ riff_gen_sources = []
# export_packages : 'gstreamer-riff-1.0',
# includes : ['Gst-1.0'],
# install : true,
# extra_args : gir_init_section,
# extra_args : gst_gir_extra_args,
# dependencies : riff_deps,
# )]
# endif

View file

@ -50,6 +50,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,
sources : rtp_sources + rtp_headers + [gstrtp_enum_c] + [gstrtp_enum_h],
namespace : 'GstRtp',
@ -59,7 +60,7 @@ if build_gir
export_packages : 'gstreamer-rtp-1.0',
includes : ['Gst-1.0', 'GstBase-1.0'],
install : true,
extra_args : gir_init_section,
extra_args : gst_gir_extra_args,
dependencies : gstrtp_deps
)]
endif

View file

@ -53,6 +53,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,
sources : rtsp_sources + rtsp_headers + [gstrtsp_c] + [gstrtsp_h],
namespace : 'GstRtsp',
@ -62,7 +63,7 @@ if build_gir
export_packages : 'gstreamer-rtsp-1.0',
includes : ['Gst-1.0', 'GstSdp-1.0', 'Gio-2.0'],
install : true,
extra_args : gir_init_section,
extra_args : gst_gir_extra_args,
dependencies : gstrtsp_deps + [sdp_dep]
)]
endif

View file

@ -21,6 +21,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,
sources : gst_sdp_sources + gst_sdp_headers,
namespace : 'GstSdp',
@ -30,7 +31,7 @@ if build_gir
export_packages : 'gstreamer-sdp-1.0',
includes : ['Gst-1.0'],
install : true,
extra_args : gir_init_section,
extra_args : gst_gir_extra_args,
dependencies : rtsp_deps
)]
endif

View file

@ -53,6 +53,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,
sources : tag_sources + tag_headers + [gsttag_h] + [gsttag_c],
namespace : 'GstTag',
@ -62,7 +63,7 @@ if build_gir
export_packages : 'gstreamer-tag-1.0',
includes : ['Gst-1.0'],
install : true,
extra_args : gir_init_section,
extra_args : gst_gir_extra_args,
dependencies : tag_deps
)]
endif

View file

@ -131,6 +131,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,
sources : video_sources + video_headers + [gstvideo_c] + [gstvideo_h],
namespace : 'GstVideo',
@ -140,7 +141,7 @@ if build_gir
export_packages : 'gstreamer-video-1.0',
includes : ['Gst-1.0', 'GLib-2.0', 'GObject-2.0', 'GModule-2.0' ],
install : true,
extra_args : gir_init_section,
extra_args : gst_gir_extra_args,
dependencies : gstvideo_deps
)]
endif