• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1gst_allocators_headers = files([
2  'allocators.h',
3  'allocators-prelude.h',
4  'gstfdmemory.h',
5  'gstphysmemory.h',
6  'gstdmabuf.h',
7])
8install_headers(gst_allocators_headers, subdir : 'gstreamer-1.0/gst/allocators/')
9
10gst_allocators_sources = files([ 'gstdmabuf.c', 'gstfdmemory.c', 'gstphysmemory.c'])
11gstallocators = library('gstallocators-@0@'.format(api_version),
12  gst_allocators_sources,
13  c_args : gst_plugins_base_args + ['-DBUILDING_GST_ALLOCATORS', '-DG_LOG_DOMAIN="GStreamer-Allocators"'],
14  include_directories: [configinc, libsinc],
15  version : libversion,
16  soversion : soversion,
17  darwin_versions : osxversion,
18  install : true,
19  dependencies : [gst_dep],
20)
21
22pkg_name = 'gstreamer-allocators-1.0'
23pkgconfig.generate(gstallocators,
24  libraries : [gst_dep],
25  variables : pkgconfig_variables,
26  subdirs : pkgconfig_subdirs,
27  name : pkg_name,
28  description : 'Allocators implementation',
29)
30
31library_def = {'lib': gstallocators}
32allocators_gen_sources  = []
33if build_gir
34  gst_gir_extra_args = gir_init_section + [ '--c-include=gst/allocators/allocators.h' ]
35  gir = {
36    'sources' : gst_allocators_sources + gst_allocators_headers,
37    'namespace' : 'GstAllocators',
38    'nsversion' : api_version,
39    'identifier_prefix' : 'Gst',
40    'symbol_prefix' : 'gst',
41    'export_packages' : pkg_name,
42    'includes' : ['Gst-1.0'],
43    'install' : true,
44    'extra_args' : gst_gir_extra_args,
45    'dependencies' : [gst_dep]
46  }
47  library_def += {'gir': [gir]}
48  if not static_build
49    allocators_gir = gnome.generate_gir(gstallocators, kwargs: gir)
50    allocators_gen_sources += allocators_gir
51  endif
52endif
53libraries += [[pkg_name, library_def]]
54
55allocators_dep = declare_dependency(link_with: gstallocators,
56  include_directories : [libsinc],
57  dependencies : [gst_dep],
58  sources : allocators_gen_sources)
59
60meson.override_dependency('gstreamer-allocators-1.0', allocators_dep)
61