mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
be0ca93a90
We need different export decorators for the different libs. For now no actual change though, just rename before the release, and add prelude headers to define the new decorator to GST_EXPORT.
54 lines
1.6 KiB
Meson
54 lines
1.6 KiB
Meson
app_sources = ['gstappsrc.c', 'gstappsink.c']
|
|
|
|
app_mkenum_headers = [
|
|
'gstappsrc.h',
|
|
]
|
|
|
|
app_headers = app_mkenum_headers + [ 'app.h', 'app-prelude.h', 'gstappsink.h' ]
|
|
install_headers(app_headers, subdir : 'gstreamer-1.0/gst/app/')
|
|
|
|
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]
|
|
|
|
gstapp = library('gstapp-@0@'.format(api_version),
|
|
app_sources, gstapp_h, gstapp_c,
|
|
c_args : gst_plugins_base_args,
|
|
include_directories: [configinc, libsinc],
|
|
version : libversion,
|
|
soversion : soversion,
|
|
install : true,
|
|
dependencies : [gst_base_dep],
|
|
)
|
|
|
|
if build_gir
|
|
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/app/app.h' ]
|
|
app_gen_sources += [gnome.generate_gir(gstapp,
|
|
sources : app_sources + app_headers + [gstapp_c] + [gstapp_h],
|
|
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,
|
|
extra_args : gst_gir_extra_args,
|
|
dependencies : [gst_dep, gst_base_dep]
|
|
)]
|
|
endif
|
|
|
|
app_dep = declare_dependency(link_with: gstapp,
|
|
include_directories : [libsinc],
|
|
dependencies : [gst_base_dep],
|
|
sources : app_gen_sources)
|