1insert_sources = files('gstinsertbin.c') 2insert_headers = files('gstinsertbin.h') 3install_headers(insert_headers, subdir : 'gstreamer-1.0/gst/insertbin') 4 5gstinsertbin = library('gstinsertbin-' + api_version, 6 insert_sources, 7 c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_INSERT_BIN', '-DG_LOG_DOMAIN="GStreamer-InsertBin"'], 8 include_directories : [configinc, libsinc], 9 version : libversion, 10 soversion : soversion, 11 darwin_versions : osxversion, 12 install : true, 13 dependencies : [gst_dep], 14) 15 16library_def = {'lib': gstinsertbin} 17pkg_name = 'gstreamer-insertbin-1.0' 18pkgconfig.generate(gstinsertbin, 19 libraries : [gst_dep], 20 variables : pkgconfig_variables, 21 subdirs : pkgconfig_subdirs, 22 name : pkg_name, 23 description : 'Bin to automatically and insertally link elements', 24) 25 26gen_sources = [] 27if build_gir 28 gir = { 29 'sources' : insert_sources + insert_headers, 30 'namespace' : 'GstInsertBin', 31 'nsversion' : api_version, 32 'identifier_prefix' : 'Gst', 33 'symbol_prefix' : 'gst', 34 'export_packages' : pkg_name, 35 'includes' : ['Gst-1.0'], 36 'install' : true, 37 'extra_args' : gir_init_section + ['-DGST_USE_UNSTABLE_API'] + ['--c-include=gst/insertbin/gstinsertbin.h'], 38 'dependencies' : [gst_dep] 39 } 40 library_def += {'gir': [gir]} 41 if not static_build 42 insertbin_gir = gnome.generate_gir(gstinsertbin, kwargs: gir) 43 gen_sources += insertbin_gir 44 endif 45endif 46libraries += [[pkg_name, library_def]] 47 48gstinsertbin_dep = declare_dependency(link_with : gstinsertbin, 49 include_directories : [libsinc], 50 sources: gen_sources, 51 dependencies : [gst_dep]) 52 53meson.override_dependency(pkg_name, gstinsertbin_dep) 54