2016-08-12 15:26:31 +00:00
|
|
|
app_sources = ['gstappsrc.c', 'gstappsink.c']
|
|
|
|
|
2017-04-09 09:29:55 +00:00
|
|
|
app_mkenum_headers = [
|
|
|
|
'gstappsrc.h',
|
|
|
|
]
|
|
|
|
|
2018-03-13 10:28:21 +00:00
|
|
|
app_headers = app_mkenum_headers + [ 'app.h', 'app-prelude.h', 'gstappsink.h' ]
|
2016-08-12 15:26:31 +00:00
|
|
|
install_headers(app_headers, subdir : 'gstreamer-1.0/gst/app/')
|
|
|
|
|
2017-04-09 09:29:55 +00:00
|
|
|
mkenums = find_program('app_mkenum.py')
|
|
|
|
gstapp_h = custom_target('gstappenum_h',
|
|
|
|
output : 'app-enumtypes.h',
|
|
|
|
input : app_mkenum_headers,
|
|
|
|
install : true,
|
|
|
|
install_dir : 'include/gstreamer-1.0/gst/app/',
|
|
|
|
command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
|
|
|
|
|
|
|
|
gstapp_c = custom_target('gstappenum_c',
|
|
|
|
output : 'app-enumtypes.c',
|
|
|
|
input : app_mkenum_headers,
|
|
|
|
depends : [gstapp_h],
|
|
|
|
command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
|
|
|
|
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,
|
2016-08-12 15:26:31 +00:00
|
|
|
c_args : gst_plugins_base_args,
|
|
|
|
include_directories: [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
|
|
|
install : true,
|
|
|
|
dependencies : [gst_base_dep],
|
|
|
|
)
|
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' ]
|
2016-10-20 20:17:27 +00:00
|
|
|
app_gen_sources += [gnome.generate_gir(gstapp,
|
2017-04-09 09:29:55 +00:00
|
|
|
sources : app_sources + app_headers + [gstapp_c] + [gstapp_h],
|
2016-10-20 20:17:27 +00:00
|
|
|
namespace : 'GstApp',
|
|
|
|
nsversion : api_version,
|
|
|
|
identifier_prefix : 'Gst',
|
|
|
|
symbol_prefix : 'gst',
|
|
|
|
export_packages : 'gstreamer-app-1.0',
|
|
|
|
includes : ['Gst-1.0', 'GstBase-1.0'],
|
|
|
|
install : true,
|
2017-04-12 14:06:45 +00:00
|
|
|
extra_args : gst_gir_extra_args,
|
2016-10-20 20:17:27 +00:00
|
|
|
dependencies : [gst_dep, gst_base_dep]
|
|
|
|
)]
|
|
|
|
endif
|
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)
|