|
Packit |
971217 |
rtp_sources = [
|
|
Packit |
971217 |
'gstrtpbuffer.c',
|
|
Packit |
971217 |
'gstrtcpbuffer.c',
|
|
Packit |
971217 |
'gstrtppayloads.c',
|
|
Packit |
971217 |
'gstrtphdrext.c',
|
|
Packit |
971217 |
'gstrtpbaseaudiopayload.c',
|
|
Packit |
971217 |
'gstrtpbasepayload.c',
|
|
Packit |
971217 |
'gstrtpbasedepayload.c'
|
|
Packit |
971217 |
]
|
|
Packit |
971217 |
|
|
Packit |
971217 |
rtp_headers = [
|
|
Packit |
971217 |
'gstrtcpbuffer.h',
|
|
Packit |
971217 |
'gstrtpbaseaudiopayload.h',
|
|
Packit |
971217 |
'gstrtpbasedepayload.h',
|
|
Packit |
971217 |
'gstrtpbasepayload.h',
|
|
Packit |
971217 |
'gstrtpbuffer.h',
|
|
Packit |
971217 |
'gstrtpdefs.h',
|
|
Packit |
971217 |
'gstrtphdrext.h',
|
|
Packit |
971217 |
'gstrtppayloads.h',
|
|
Packit |
971217 |
'rtp-prelude.h',
|
|
Packit |
971217 |
'rtp.h',
|
|
Packit |
971217 |
]
|
|
Packit |
971217 |
install_headers(rtp_headers, subdir : 'gstreamer-1.0/gst/rtp/')
|
|
Packit |
971217 |
|
|
Packit |
971217 |
mkenums = find_program('rtp_mkenum.py')
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gstrtp_enum_h = custom_target('gstrtp_enum_h',
|
|
Packit |
971217 |
output : 'gstrtp-enumtypes.h',
|
|
Packit |
971217 |
input : rtp_headers,
|
|
Packit |
971217 |
install : true,
|
|
Packit |
971217 |
install_dir : 'include/gstreamer-1.0/gst/rtp/',
|
|
Packit |
971217 |
command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gstrtp_enum_c = custom_target('gstrtp_enum_c',
|
|
Packit |
971217 |
output : 'gstrtp-enumtypes.c',
|
|
Packit |
971217 |
input : rtp_headers,
|
|
Packit |
971217 |
depends : [gstaudio_h, gstrtp_enum_h],
|
|
Packit |
971217 |
command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
|
|
Packit |
971217 |
|
|
Packit |
971217 |
gstrtp_deps = [audio_dep, gst_base_dep]
|
|
Packit |
971217 |
gst_rtp = library('gstrtp-@0@'.format(api_version),
|
|
Packit |
971217 |
rtp_sources, gstrtp_enum_c, gstrtp_enum_h,
|
|
Packit |
971217 |
c_args : gst_plugins_base_args,
|
|
Packit |
971217 |
include_directories: [configinc, libsinc],
|
|
Packit |
971217 |
version : libversion,
|
|
Packit |
971217 |
soversion : soversion,
|
|
Packit |
971217 |
install : true,
|
|
Packit |
971217 |
dependencies : gstrtp_deps,
|
|
Packit |
971217 |
)
|
|
Packit |
971217 |
|
|
Packit |
971217 |
rtp_gen_sources = [gstrtp_enum_h]
|
|
Packit |
971217 |
if build_gir
|
|
Packit |
971217 |
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtp/rtp.h' ]
|
|
Packit |
971217 |
rtp_gen_sources += [gnome.generate_gir(gst_rtp,
|
|
Packit |
971217 |
sources : rtp_sources + rtp_headers + [gstrtp_enum_c] + [gstrtp_enum_h],
|
|
Packit |
971217 |
namespace : 'GstRtp',
|
|
Packit |
971217 |
nsversion : api_version,
|
|
Packit |
971217 |
identifier_prefix : 'Gst',
|
|
Packit |
971217 |
symbol_prefix : 'gst',
|
|
Packit |
971217 |
export_packages : 'gstreamer-rtp-1.0',
|
|
Packit |
971217 |
includes : ['Gst-1.0', 'GstBase-1.0'],
|
|
Packit |
971217 |
install : true,
|
|
Packit |
971217 |
extra_args : gst_gir_extra_args,
|
|
Packit |
971217 |
dependencies : gstrtp_deps
|
|
Packit |
971217 |
)]
|
|
Packit |
971217 |
endif
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
rtp_dep = declare_dependency(link_with : gst_rtp,
|
|
Packit |
971217 |
include_directories : [libsinc],
|
|
Packit |
971217 |
dependencies : gstrtp_deps,
|
|
Packit |
971217 |
sources : rtp_gen_sources)
|