• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1rtp_sources = files([
2  'gstrtpbuffer.c',
3  'gstrtcpbuffer.c',
4  'gstrtppayloads.c',
5  'gstrtphdrext.c',
6  'gstrtpmeta.c',
7  'gstrtpbaseaudiopayload.c',
8  'gstrtpbasepayload.c',
9  'gstrtpbasedepayload.c'
10  ])
11
12rtp_headers = files([
13  'gstrtcpbuffer.h',
14  'gstrtpbaseaudiopayload.h',
15  'gstrtpbasedepayload.h',
16  'gstrtpbasepayload.h',
17  'gstrtpbuffer.h',
18  'gstrtpdefs.h',
19  'gstrtphdrext.h',
20  'gstrtpmeta.h',
21  'gstrtppayloads.h',
22  'rtp-prelude.h',
23  'rtp.h',
24])
25install_headers(rtp_headers, subdir : 'gstreamer-1.0/gst/rtp/')
26
27rtp_enums = gnome.mkenums_simple('gstrtp-enumtypes',
28  sources : rtp_headers,
29  body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
30  header_prefix : '#include <gst/rtp/rtp-prelude.h>',
31  decorator : 'GST_RTP_API',
32  install_header: true,
33  install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/rtp'))
34gstrtp_enum_c = rtp_enums[0]
35gstrtp_enum_h = rtp_enums[1]
36
37gstrtp_deps = [audio_dep, gst_base_dep]
38gst_rtp = library('gstrtp-@0@'.format(api_version),
39  rtp_sources, gstrtp_enum_c, gstrtp_enum_h,
40  c_args : gst_plugins_base_args + ['-DBUILDING_GST_RTP', '-DG_LOG_DOMAIN="GStreamer-RTP"'],
41  include_directories: [configinc, libsinc],
42  version : libversion,
43  soversion : soversion,
44  darwin_versions : osxversion,
45  install : true,
46  dependencies : gstrtp_deps,
47)
48
49library_def = {'lib': gst_rtp}
50pkg_name = 'gstreamer-rtp-1.0'
51pkgconfig.generate(gst_rtp,
52  libraries : [gst_dep, gst_base_dep],
53  variables : pkgconfig_variables,
54  subdirs : pkgconfig_subdirs,
55  name : pkg_name,
56  description : 'RTP base classes and helper functions',
57)
58
59rtp_gen_sources = [gstrtp_enum_h]
60if build_gir
61  gst_gir_extra_args = gir_init_section + [ '--c-include=gst/rtp/rtp.h' ]
62  gir = {
63    'sources' : rtp_sources + rtp_headers + [gstrtp_enum_c] + [gstrtp_enum_h],
64    'namespace' : 'GstRtp',
65    'nsversion' : api_version,
66    'identifier_prefix' : 'Gst',
67    'symbol_prefix' : 'gst',
68    'export_packages' : pkg_name,
69    'includes' : ['Gst-1.0', 'GstBase-1.0'],
70    'install' : true,
71    'extra_args' : gst_gir_extra_args,
72    'dependencies' : gstrtp_deps
73  }
74  library_def = {'lib': library_def['lib'], 'gir': [gir]}
75  if not static_build
76    rtp_gir = gnome.generate_gir(gst_rtp, kwargs: gir)
77    rtp_gen_sources += [rtp_gir]
78  endif
79endif
80libraries += [[pkg_name, library_def]]
81
82rtp_dep = declare_dependency(link_with : gst_rtp,
83  include_directories : [libsinc],
84  dependencies : gstrtp_deps,
85  sources : rtp_gen_sources)
86
87meson.override_dependency(pkg_name, rtp_dep)
88