2016-08-12 15:51:45 +00:00
|
|
|
photography_sources = ['photography.c']
|
2018-03-13 12:41:42 +00:00
|
|
|
photo_headers = ['photography.h', 'photography-prelude.h']
|
2016-08-12 15:51:45 +00:00
|
|
|
install_headers(photo_headers, subdir : 'gstreamer-1.0/gst/interfaces')
|
|
|
|
|
2017-07-20 07:47:55 +00:00
|
|
|
photo_enums = gnome.mkenums_simple('photography-enumtypes',
|
|
|
|
sources : photo_headers,
|
2018-09-24 10:52:22 +00:00
|
|
|
body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
|
2017-07-20 07:47:55 +00:00
|
|
|
header_prefix : '#include <gst/interfaces/photography-prelude.h>',
|
|
|
|
decorator: 'GST_PHOTOGRAPHY_API',
|
|
|
|
install_header: true,
|
2018-08-10 11:57:47 +00:00
|
|
|
install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/interfaces'))
|
|
|
|
|
2017-07-20 07:47:55 +00:00
|
|
|
photoenum_c = photo_enums[0]
|
|
|
|
photoenum_h = photo_enums[1]
|
2016-08-12 15:51:45 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
pkg_name = 'gstreamer-photography-1.0'
|
2016-08-12 15:51:45 +00:00
|
|
|
gstphotography = library('gstphotography-' + api_version,
|
|
|
|
photography_sources, photoenum_h, photoenum_c,
|
2021-10-01 14:31:18 +00:00
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_PHOTOGRAPHY', '-DG_LOG_DOMAIN="GStreamer-Photography"'],
|
2016-08-12 15:51:45 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:07:46 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-08-12 15:51:45 +00:00
|
|
|
install : true,
|
|
|
|
dependencies : [gst_dep],
|
|
|
|
)
|
|
|
|
|
2018-04-07 20:33:47 +00:00
|
|
|
pkgconfig.generate(gstphotography,
|
|
|
|
libraries : [gst_dep, gstbase_dep],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
2020-06-27 04:39:00 +00:00
|
|
|
name : pkg_name,
|
2018-04-07 20:33:47 +00:00
|
|
|
description : 'High level API for transcoding using GStreamer',
|
|
|
|
)
|
|
|
|
|
2016-08-12 15:51:45 +00:00
|
|
|
gstphotography_dep = declare_dependency(link_with : gstphotography,
|
|
|
|
include_directories : [libsinc],
|
|
|
|
dependencies : [gst_dep],
|
|
|
|
sources : [photoenum_h])
|
2018-04-07 20:33:47 +00:00
|
|
|
|
2022-09-01 15:51:48 +00:00
|
|
|
gst_libraries += [[pkg_name, {'lib': gstphotography}]]
|
2020-06-27 04:39:00 +00:00
|
|
|
meson.override_dependency(pkg_name, gstphotography_dep)
|