1app_sources = files(['gstappsrc.c', 'gstappsink.c']) 2 3app_mkenum_headers = files([ 4 'gstappsrc.h', 5]) 6 7app_headers = app_mkenum_headers + files([ 'app.h', 'app-prelude.h', 'gstappsrc.h', 'gstappsink.h' ]) 8install_headers(app_headers, subdir : 'gstreamer-1.0/gst/app/') 9 10app_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', 15 install_header: true, 16 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/app')) 17gstapp_c = app_enums[0] 18gstapp_h = app_enums[1] 19 20app_gen_sources = [gstapp_h] 21 22gstapp = 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], 26 version : libversion, 27 soversion : soversion, 28 darwin_versions : osxversion, 29 install : true, 30 dependencies : [gst_base_dep], 31) 32 33pkg_name = 'gstreamer-app-1.0' 34pkgconfig.generate(gstapp, 35 libraries : [gst_dep, gst_base_dep], 36 variables : pkgconfig_variables, 37 subdirs : pkgconfig_subdirs, 38 name : pkg_name, 39 description : 'Helper functions and base classes for application integration', 40) 41 42library_def = {'lib': gstapp} 43if build_gir 44 gst_gir_extra_args = gir_init_section + [ '--c-include=gst/app/app.h' ] 45 gir = { 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'], 53 'install' : true, 54 'extra_args' : gst_gir_extra_args, 55 'dependencies' : [gst_dep, gst_base_dep] 56 } 57 library_def += {'gir': [gir]} 58 if not static_build 59 app_gir = gnome.generate_gir(gstapp, kwargs: gir) 60 app_gen_sources += app_gir 61 endif 62endif 63libraries += [[pkg_name, library_def]] 64 65app_dep = declare_dependency(link_with: gstapp, 66 include_directories : [libsinc], 67 dependencies : [gst_base_dep], 68 sources : app_gen_sources) 69 70meson.override_dependency(pkg_name, app_dep) 71