1photography_sources = ['photography.c'] 2photo_headers = ['photography.h', 'photography-prelude.h'] 3install_headers(photo_headers, subdir : 'gstreamer-1.0/gst/interfaces') 4 5photo_enums = gnome.mkenums_simple('photography-enumtypes', 6 sources : photo_headers, 7 body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif', 8 header_prefix : '#include <gst/interfaces/photography-prelude.h>', 9 decorator: 'GST_PHOTOGRAPHY_API', 10 install_header: true, 11 install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/interfaces')) 12 13photoenum_c = photo_enums[0] 14photoenum_h = photo_enums[1] 15 16pkg_name = 'gstreamer-photography-1.0' 17gstphotography = library('gstphotography-' + api_version, 18 photography_sources, photoenum_h, photoenum_c, 19 c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_PHOTOGRAPHY', '-DG_LOG_DOMAIN="GStreamer-Photography"'], 20 include_directories : [configinc, libsinc], 21 version : libversion, 22 soversion : soversion, 23 darwin_versions : osxversion, 24 install : true, 25 dependencies : [gst_dep], 26) 27 28pkgconfig.generate(gstphotography, 29 libraries : [gst_dep, gstbase_dep], 30 variables : pkgconfig_variables, 31 subdirs : pkgconfig_subdirs, 32 name : pkg_name, 33 description : 'High level API for transcoding using GStreamer', 34) 35 36gstphotography_dep = declare_dependency(link_with : gstphotography, 37 include_directories : [libsinc], 38 dependencies : [gst_dep], 39 sources : [photoenum_h]) 40 41libraries += [[pkg_name, {'lib': gstphotography}]] 42meson.override_dependency(pkg_name, gstphotography_dep) 43