98ded453f934a5d926957807e25bc7b093f1f307
[platform/upstream/gstreamer.git] / gst-libs / gst / app / meson.build
1 app_sources = ['gstappsrc.c', 'gstappsink.c']
2
3 app_mkenum_headers = [
4   'gstappsrc.h',
5 ]
6
7 app_headers = app_mkenum_headers + [ 'app.h', 'app-prelude.h', 'gstappsink.h' ]
8 install_headers(app_headers, subdir : 'gstreamer-1.0/gst/app/')
9
10 app_enums = gnome.mkenums_simple('app-enumtypes',
11   sources : app_mkenum_headers,
12   header_prefix : '#include <gst/app/app-prelude.h>',
13   decorator : 'GST_APP_API',
14   install_header: true,
15   install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/app'))
16 gstapp_c = app_enums[0]
17 gstapp_h = app_enums[1]
18
19 app_gen_sources = [gstapp_h]
20
21 gstapp = library('gstapp-@0@'.format(api_version),
22   app_sources, gstapp_h, gstapp_c,
23   c_args : gst_plugins_base_args,
24   include_directories: [configinc, libsinc],
25   version : libversion,
26   soversion : soversion,
27   darwin_versions : osxversion,
28   install : true,
29   dependencies : [gst_base_dep],
30 )
31
32 if build_gir
33   gst_gir_extra_args = gir_init_section + [ '--c-include=gst/app/app.h' ]
34   app_gen_sources += [gnome.generate_gir(gstapp,
35     sources : app_sources + app_headers + [gstapp_c] + [gstapp_h],
36     namespace : 'GstApp',
37     nsversion : api_version,
38     identifier_prefix : 'Gst',
39     symbol_prefix : 'gst',
40     export_packages : 'gstreamer-app-1.0',
41     includes : ['Gst-1.0', 'GstBase-1.0'],
42     install : true,
43     extra_args : gst_gir_extra_args,
44     dependencies : [gst_dep, gst_base_dep]
45   )]
46 endif
47
48 app_dep = declare_dependency(link_with: gstapp,
49   include_directories : [libsinc],
50   dependencies : [gst_base_dep],
51   sources : app_gen_sources)