56183c3dbbada3bc88abd00a23a3d825ca714a92
[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', 'gstappsink.h' ]
8 install_headers(app_headers, subdir : 'gstreamer-1.0/gst/app/')
9
10 mkenums = find_program('app_mkenum.py')
11 gstapp_h = custom_target('gstappenum_h',
12   output : 'app-enumtypes.h',
13   input : app_mkenum_headers,
14   install : true,
15   install_dir : 'include/gstreamer-1.0/gst/app/',
16   command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
17
18 gstapp_c = custom_target('gstappenum_c',
19   output : 'app-enumtypes.c',
20   input : app_mkenum_headers,
21   depends : [gstapp_h],
22   command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
23 app_gen_sources = [gstapp_h]
24
25 gstapp = library('gstapp-@0@'.format(api_version),
26   app_sources, gstapp_h, gstapp_c,
27   c_args : gst_plugins_base_args,
28   include_directories: [configinc, libsinc],
29   version : libversion,
30   soversion : soversion,
31   install : true,
32   dependencies : [gst_base_dep],
33   vs_module_defs: vs_module_defs_dir + 'libgstapp.def',
34 )
35
36 if build_gir
37   gst_gir_extra_args = gir_init_section + [ '--c-include=gst/app/app.h' ]
38   app_gen_sources += [gnome.generate_gir(gstapp,
39     sources : app_sources + app_headers + [gstapp_c] + [gstapp_h],
40     namespace : 'GstApp',
41     nsversion : api_version,
42     identifier_prefix : 'Gst',
43     symbol_prefix : 'gst',
44     export_packages : 'gstreamer-app-1.0',
45     includes : ['Gst-1.0', 'GstBase-1.0'],
46     install : true,
47     extra_args : gst_gir_extra_args,
48     dependencies : [gst_dep, gst_base_dep]
49   )]
50 endif
51
52 app_dep = declare_dependency(link_with: gstapp,
53   include_directories : [libsinc],
54   dependencies : [gst_base_dep],
55   sources : app_gen_sources)