• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1codecs_sources = files(
2  'gsth264decoder.c',
3  'gsth264picture.c',
4  'gsth265decoder.c',
5  'gsth265picture.c',
6  'gstvp9decoder.c',
7  'gstvp9picture.c',
8  'gstvp8decoder.c',
9  'gstvp8picture.c',
10  'gstmpeg2decoder.c',
11  'gstmpeg2picture.c',
12  'gstav1decoder.c',
13  'gstav1picture.c',
14  'gstvp9statefulparser.c',
15)
16
17codecs_headers = files(
18  'gsth264decoder.h',
19  'gsth264picture.h',
20  'gsth265decoder.h',
21  'gsth265picture.h',
22  'gstvp9decoder.h',
23  'gstvp9picture.h',
24  'gstvp8decoder.h',
25  'gstvp8picture.h',
26  'gstmpeg2decoder.h',
27  'gstmpeg2picture.h',
28  'gstav1decoder.h',
29  'gstav1picture.h',
30  'gstvp9statefulparser.h',
31)
32
33cp_args = [
34  '-DGST_USE_UNSTABLE_API',
35  '-DBUILDING_GST_CODECS',
36  '-DG_LOG_DOMAIN="GStreamer-Codecs"'
37]
38
39gstcodecs = library('gstcodecs-' + api_version,
40  codecs_sources,
41  c_args : gst_plugins_bad_args + cp_args,
42  include_directories : [configinc, libsinc],
43  version : libversion,
44  soversion : soversion,
45  darwin_versions : osxversion,
46  install : true,
47  dependencies : [gstvideo_dep, gstcodecparsers_dep],
48)
49
50library_def = {'lib': gstcodecs}
51pkg_name = 'gstreamer-codecs-1.0'
52gen_sources = []
53if build_gir
54  gir = {
55    'sources' : codecs_sources + codecs_headers,
56    'namespace' : 'GstCodecs',
57    'nsversion' : api_version,
58    'identifier_prefix' : 'Gst',
59    'symbol_prefix' : 'gst',
60    'export_packages' : pkg_name,
61    'includes' : ['Gst-1.0', 'GstVideo-1.0'],
62    'install' : true,
63    'extra_args' : gir_init_section + ['-DGST_USE_UNSTABLE_API'] +
64      ['--c-include=gst/codecs/gsth264decoder.h',
65      '--c-include=gst/codecs/gsth265decoder.h',
66      '--c-include=gst/codecs/gstvp9decoder.h',
67      '--c-include=gst/codecs/gstvp8decoder.h',
68      '--c-include=gst/codecs/gstmpeg2decoder.h',
69      ],
70    'dependencies' : [gstvideo_dep, gstcodecparsers_dep]
71  }
72  library_def += {'gir': [gir]}
73  if not static_build
74    codecs_gir = gnome.generate_gir(gstcodecs, kwargs: gir)
75    gen_sources += codecs_gir
76  endif
77endif
78libraries += [[pkg_name, library_def]]
79
80gstcodecs_dep = declare_dependency(link_with : gstcodecs,
81  include_directories : [libsinc],
82  sources: gen_sources,
83  dependencies : [gstvideo_dep, gstcodecparsers_dep])
84meson.override_dependency(pkg_name, gstcodecs_dep)