1 app_sources = files(['gstappsrc.c', 'gstappsink.c'])
3 app_mkenum_headers = files([
7 app_headers = app_mkenum_headers + files([ 'app.h', 'app-prelude.h', 'gstappsrc.h', 'gstappsink.h' ])
8 install_headers(app_headers, subdir : 'gstreamer-1.0/gst/app/')
10 app_enums = gnome.mkenums_simple('app-enumtypes',
11 sources : app_mkenum_headers,
12 body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
13 header_prefix : '#include <gst/app/app-prelude.h>',
14 decorator : 'GST_APP_API',
16 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/app'))
17 gstapp_c = app_enums[0]
18 gstapp_h = app_enums[1]
20 app_gen_sources = [gstapp_h]
22 gstapp = library('gstapp-@0@'.format(api_version),
23 app_sources, gstapp_h, gstapp_c,
24 c_args : gst_plugins_base_args + ['-DBUILDING_GST_APP', '-DG_LOG_DOMAIN="GStreamer-App"'],
25 include_directories: [configinc, libsinc],
27 soversion : soversion,
28 darwin_versions : osxversion,
30 dependencies : [gst_base_dep],
33 pkg_name = 'gstreamer-app-1.0'
34 pkgconfig.generate(gstapp,
35 libraries : [gst_dep, gst_base_dep],
36 variables : pkgconfig_variables,
37 subdirs : pkgconfig_subdirs,
39 description : 'Helper functions and base classes for application integration',
42 library_def = {'lib': gstapp}
44 gst_gir_extra_args = gir_init_section + [ '--c-include=gst/app/app.h' ]
46 'sources' : app_sources + app_headers + [gstapp_c] + [gstapp_h],
47 'namespace' : 'GstApp',
48 'nsversion' : api_version,
49 'identifier_prefix' : 'Gst',
50 'symbol_prefix' : 'gst',
51 'export_packages' : pkg_name,
52 'includes' : ['Gst-1.0', 'GstBase-1.0'],
54 'extra_args' : gst_gir_extra_args,
55 'dependencies' : [gst_dep, gst_base_dep]
57 library_def += {'gir': [gir]}
59 app_gir = gnome.generate_gir(gstapp, kwargs: gir)
60 app_gen_sources += app_gir
63 gst_libraries += [[pkg_name, library_def]]
65 app_dep = declare_dependency(link_with: gstapp,
66 include_directories : [libsinc],
67 dependencies : [gst_base_dep],
68 sources : app_gen_sources)
70 meson.override_dependency(pkg_name, app_dep)