meson.build 1.22 KB
Newer Older
1
2
3
gst_allocators_headers = [
  'allocators.h',
  'gstfdmemory.h',
4
  'gstphysmemory.h',
5
6
7
8
  'gstdmabuf.h',
]
install_headers(gst_allocators_headers, subdir : 'gstreamer-1.0/gst/allocators/')

9
gst_allocators_sources = [ 'gstdmabuf.c', 'gstfdmemory.c', 'gstphysmemory.c']
10
gstallocators = library('gstallocators-@0@'.format(api_version),
Thibault Saunier's avatar
Thibault Saunier committed
11
  gst_allocators_sources,
12
13
14
15
16
17
18
  c_args : gst_plugins_base_args,
  include_directories: [configinc, libsinc],
  version : libversion,
  soversion : soversion,
  install : true,
  dependencies : [gst_dep],
)
Thibault Saunier's avatar
Thibault Saunier committed
19
20
21

allocators_gen_sources  = []
if build_gir
22
  gst_gir_extra_args = gir_init_section + [ '--c-include=gst/allocators/allocators.h' ]
Thibault Saunier's avatar
Thibault Saunier committed
23
24
25
26
27
28
29
30
31
  allocators_gen_sources += [gnome.generate_gir(gstallocators,
    sources : gst_allocators_sources + gst_allocators_headers,
    namespace : 'GstAllocators',
    nsversion : api_version,
    identifier_prefix : 'Gst',
    symbol_prefix : 'gst',
    export_packages : 'gstreamer-allocators-1.0',
    includes : ['Gst-1.0'],
    install : true,
32
    extra_args : gst_gir_extra_args,
Thibault Saunier's avatar
Thibault Saunier committed
33
34
35
    dependencies : [gst_dep]
  )]
endif
36
37
38

allocators_dep = declare_dependency(link_with: gstallocators,
  include_directories : [libsinc],
Thibault Saunier's avatar
Thibault Saunier committed
39
40
  dependencies : [gst_dep],
  sources : allocators_gen_sources)