2020-06-27 04:37:39 +00:00
|
|
|
app_sources = files(['gstappsrc.c', 'gstappsink.c'])
|
2016-08-12 15:26:31 +00:00
|
|
|
|
2020-06-27 04:37:39 +00:00
|
|
|
app_mkenum_headers = files([
|
2017-04-09 09:29:55 +00:00
|
|
|
'gstappsrc.h',
|
2020-06-27 04:37:39 +00:00
|
|
|
])
|
2017-04-09 09:29:55 +00:00
|
|
|
|
2020-06-27 04:37:39 +00:00
|
|
|
app_headers = app_mkenum_headers + files([ 'app.h', 'app-prelude.h', 'gstappsrc.h', 'gstappsink.h' ])
|
2016-08-12 15:26:31 +00:00
|
|
|
install_headers(app_headers, subdir : 'gstreamer-1.0/gst/app/')
|
|
|
|
|
2017-07-20 04:15:30 +00:00
|
|
|
app_enums = gnome.mkenums_simple('app-enumtypes',
|
|
|
|
sources : app_mkenum_headers,
|
2018-04-28 13:50:11 +00:00
|
|
|
body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
|
2017-07-20 04:15:30 +00:00
|
|
|
header_prefix : '#include <gst/app/app-prelude.h>',
|
|
|
|
decorator : 'GST_APP_API',
|
|
|
|
install_header: true,
|
2018-08-10 11:43:38 +00:00
|
|
|
install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/app'))
|
2017-07-20 04:15:30 +00:00
|
|
|
gstapp_c = app_enums[0]
|
|
|
|
gstapp_h = app_enums[1]
|
2017-04-09 09:29:55 +00:00
|
|
|
|
|
|
|
app_gen_sources = [gstapp_h]
|
|
|
|
|
2016-08-12 15:26:31 +00:00
|
|
|
gstapp = library('gstapp-@0@'.format(api_version),
|
2017-04-09 09:29:55 +00:00
|
|
|
app_sources, gstapp_h, gstapp_c,
|
2021-10-01 14:30:27 +00:00
|
|
|
c_args : gst_plugins_base_args + ['-DBUILDING_GST_APP', '-DG_LOG_DOMAIN="GStreamer-App"'],
|
2016-08-12 15:26:31 +00:00
|
|
|
include_directories: [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:06:30 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-08-12 15:26:31 +00:00
|
|
|
install : true,
|
|
|
|
dependencies : [gst_base_dep],
|
|
|
|
)
|
2016-10-20 20:17:27 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
pkg_name = 'gstreamer-app-1.0'
|
2018-04-08 00:52:12 +00:00
|
|
|
pkgconfig.generate(gstapp,
|
|
|
|
libraries : [gst_dep, gst_base_dep],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
2020-06-27 04:39:00 +00:00
|
|
|
name : pkg_name,
|
2018-04-08 00:52:12 +00:00
|
|
|
description : 'Helper functions and base classes for application integration',
|
|
|
|
)
|
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': gstapp}
|
2016-10-20 20:17:27 +00:00
|
|
|
if build_gir
|
2017-04-12 14:06:45 +00:00
|
|
|
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/app/app.h' ]
|
2020-06-27 04:39:00 +00:00
|
|
|
gir = {
|
|
|
|
'sources' : app_sources + app_headers + [gstapp_c] + [gstapp_h],
|
|
|
|
'namespace' : 'GstApp',
|
|
|
|
'nsversion' : api_version,
|
|
|
|
'identifier_prefix' : 'Gst',
|
|
|
|
'symbol_prefix' : 'gst',
|
|
|
|
'export_packages' : pkg_name,
|
|
|
|
'includes' : ['Gst-1.0', 'GstBase-1.0'],
|
|
|
|
'install' : true,
|
|
|
|
'extra_args' : gst_gir_extra_args,
|
|
|
|
'dependencies' : [gst_dep, gst_base_dep]
|
|
|
|
}
|
|
|
|
library_def += {'gir': [gir]}
|
|
|
|
if not static_build
|
|
|
|
app_gir = gnome.generate_gir(gstapp, kwargs: gir)
|
|
|
|
app_gen_sources += app_gir
|
|
|
|
endif
|
2016-10-20 20:17:27 +00:00
|
|
|
endif
|
2020-06-27 04:39:00 +00:00
|
|
|
libraries += [[pkg_name, library_def]]
|
2016-08-12 15:26:31 +00:00
|
|
|
|
|
|
|
app_dep = declare_dependency(link_with: gstapp,
|
|
|
|
include_directories : [libsinc],
|
2016-10-20 20:17:27 +00:00
|
|
|
dependencies : [gst_base_dep],
|
|
|
|
sources : app_gen_sources)
|
2018-04-08 00:52:12 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
meson.override_dependency(pkg_name, app_dep)
|