• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1sources = files(['gsttranscoder.c', 'gsttranscoder-signal-adapter.c'])
2headers = files(['gsttranscoder.h', 'transcoder-prelude.h', 'gsttranscoder-signal-adapter.h'])
3
4install_headers(headers, subdir : 'gstreamer-' + api_version + '/gst/transcoder')
5
6transcoder_enums = gnome.mkenums_simple('transcoder-enumtypes',
7  sources : headers,
8  body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
9  header_prefix : '#include <gst/transcoder/transcoder-prelude.h>',
10  decorator: 'GST_TRANSCODER_API',
11  install_header: true,
12  install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/transcoder'))
13
14gsttranscoder_c = transcoder_enums[0]
15gsttranscoder_h = transcoder_enums[1]
16
17transcoder_gen_sources = [gsttranscoder_h]
18
19gst_transcoder = library('gsttranscoder-' + api_version,
20  sources + [gsttranscoder_c]  + transcoder_gen_sources,
21  install: true,
22  include_directories : [configinc, libsinc],
23  dependencies: [gst_dep, gstpbutils_dep],
24  c_args: gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_TRANSCODER', '-DG_LOG_DOMAIN="GStreamer-Transcoder"'],
25  soversion : soversion,
26)
27
28library_def = {'lib': gst_transcoder}
29pkg_name = 'gstreamer-transcoder-1.0'
30pkgconfig.generate(gst_transcoder,
31  libraries : [gst_dep, gstbase_dep],
32  variables : pkgconfig_variables,
33  subdirs : pkgconfig_subdirs,
34  name : pkg_name,
35  description : 'High level API for transcoding using GStreamer',
36)
37
38if build_gir
39  gir = {
40    'sources' : sources + headers  + [gsttranscoder_h],
41    'nsversion' : api_version,
42    'namespace' : 'GstTranscoder',
43    'identifier_prefix' : 'Gst',
44    'symbol_prefix' : 'gst_',
45    'includes' : ['GObject-2.0',
46                'Gst-' + api_version,
47                'GstPbutils-' + api_version],
48    'dependencies' : [gst_dep, gstpbutils_dep],
49    'export_packages' : pkg_name,
50    'install' : true,
51    'extra_args' : gir_init_section
52  }
53  library_def += { 'gir': [gir]}
54  if not static_build
55    transcoder_gir = gnome.generate_gir(gst_transcoder, kwargs: gir)
56    transcoder_gen_sources += transcoder_gir
57  endif
58endif
59libraries += [[pkg_name, library_def]]
60
61gst_transcoder_dep = declare_dependency(link_with: gst_transcoder,
62  dependencies : [gst_dep, gstpbutils_dep],
63  sources: transcoder_gen_sources,
64  include_directories : [libsinc]
65)
66meson.override_dependency(pkg_name, gst_transcoder_dep)
67