meson.build 2.16 KB
Newer Older
1 2
gst_base_sources = [
  'gstadapter.c',
3
  'gstaggregator.c',
4 5 6 7 8
  'gstbaseparse.c',
  'gstbasesink.c',
  'gstbasesrc.c',
  'gstbasetransform.c',
  'gstbitreader.c',
9
  'gstbitwriter.c',
10 11 12 13 14 15 16 17 18 19 20 21
  'gstbytereader.c',
  'gstbytewriter.c',
  'gstcollectpads.c',
  'gstdataqueue.c',
  'gstflowcombiner.c',
  'gstpushsrc.c',
  'gstqueuearray.c',
  'gsttypefindhelper.c',
]

gst_base_headers = [
  'base.h',
22
  'base-prelude.h',
23
  'gstadapter.h',
24
  'gstaggregator.h',
25 26 27 28 29
  'gstbaseparse.h',
  'gstbasesink.h',
  'gstbasesrc.h',
  'gstbasetransform.h',
  'gstbitreader.h',
30
  'gstbitwriter.h',
31 32 33 34 35 36 37 38 39 40
  'gstbytereader.h',
  'gstbytewriter.h',
  'gstcollectpads.h',
  'gstdataqueue.h',
  'gstflowcombiner.h',
  'gstpushsrc.h',
  'gstqueuearray.h',
  'gsttypefindhelper.h',
]

41 42
gst_base_gen_sources = []

43 44 45 46 47
gst_base = library('gstbase-@0@'.format(apiversion),
  gst_base_sources,
  c_args : gst_c_args,
  version : libversion,
  soversion : soversion,
48
  darwin_versions : osxversion,
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
  install : true,
  include_directories : [configinc, libsinc],
  dependencies : [gobject_dep, glib_dep, gst_dep],
)

if build_gir
  gst_gir_extra_args = gir_init_section + [ '--c-include=gst/base/base.h' ]
  gst_base_gen_sources += [gnome.generate_gir(gst_base,
    sources : gst_base_sources + gst_base_headers,
    namespace : 'GstBase',
    nsversion : apiversion,
    identifier_prefix : 'Gst',
    symbol_prefix : 'gst',
    export_packages : 'gstreamer-base-1.0',
    dependencies : [gst_dep],
    include_directories : [configinc, libsinc, privinc],
    includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0', 'Gst-1.0'],
66
    install : true,
67 68
    extra_args : gst_gir_extra_args,
  )]
69 70 71 72
endif

gst_base_dep = declare_dependency(link_with : gst_base,
  include_directories : [libsinc],
73 74
  dependencies : [gst_dep],
  sources : gst_base_gen_sources)
75 76

install_headers('base.h',
77
  'base-prelude.h',
78
  'gstadapter.h',
79
  'gstaggregator.h',
80 81 82 83 84
  'gstbaseparse.h',
  'gstbasesink.h',
  'gstbasesrc.h',
  'gstbasetransform.h',
  'gstbitreader.h',
85
  'gstbitwriter.h',
86 87 88 89 90 91 92 93 94 95
  'gstbytereader.h',
  'gstbytewriter.h',
  'gstcollectpads.h',
  'gstdataqueue.h',
  'gstflowcombiner.h',
  'gstpushsrc.h',
  'gstqueuearray.h',
  'gsttypefindhelper.h',
  subdir : 'gstreamer-1.0/gst/base',
)