'gstcapsfeatures.c',
'gstchildproxy.c',
'gstclock.c',
- 'gstclock-linreg.c',
'gstcontext.c',
'gstcontrolbinding.c',
'gstcontrolsource.c',
'gstdevice.c',
'gstdeviceprovider.c',
'gstdeviceproviderfactory.c',
+ 'gstdynamictypefactory.c',
'gstelement.c',
'gstelementfactory.c',
'gsterror.c',
'gstdevice.h',
'gstdeviceprovider.h',
'gstdeviceproviderfactory.h',
+ 'gstdynamictypefactory.h',
'gstelementfactory.h',
'gsterror.h',
'gstevent.h',
]
install_headers(gst_headers, subdir : 'gstreamer-1.0/gst')
-if not get_option('disable_registry')
+disable_registry = get_option('disable_registry')
+if not disable_registry
gst_registry = ['gstregistrybinary.c']
else
gst_registry = []
endif
+# Make copy so configure_file consumes the copy and we can
+# still add to the original cdata later.
+gst_cdata = cdata
+
+if disable_gst_debug
+ gst_cdata.set('GST_DISABLE_GST_DEBUG_DEFINE', '#define GST_DISABLE_GST_DEBUG 1')
+else
+ gst_cdata.set('GST_DISABLE_GST_DEBUG_DEFINE', '#undef GST_DISABLE_GST_DEBUG')
+endif
+
+if disable_registry
+ gst_cdata.set('GST_DISABLE_REGISTRY_DEFINE', '#define GST_DISABLE_REGISTRY 1')
+else
+ gst_cdata.set('GST_DISABLE_REGISTRY_DEFINE', '#undef GST_DISABLE_REGISTRY')
+endif
+
+# FIXME: add --disable-parse option? (but autotools doesn't seem to set this
+# define properly at all either even though it does expose the option)
+gst_cdata.set('GST_DISABLE_PARSE_DEFINE', '#undef GST_DISABLE_PARSE')
+
+# FIXME: add --disable-plugin option?
+gst_cdata.set('GST_DISABLE_PLUGIN_DEFINE', '#undef GST_DISABLE_PLUGIN')
+
configure_file(input : 'gstconfig.h.in',
output : 'gstconfig.h',
install_dir : 'include/gstreamer-1.0/gst',
- configuration : cdata)
-configure_file(input : 'gstversion.h.in',
+ configuration : gst_cdata)
+
+version_cdata = configuration_data()
+version_cdata.set('GST_VERSION_MAJOR', gst_version_major)
+version_cdata.set('GST_VERSION_MINOR', gst_version_minor)
+version_cdata.set('GST_VERSION_MICRO', gst_version_micro)
+version_cdata.set('GST_VERSION_NANO', gst_version_nano)
+
+gst_version_h = configure_file(input : 'gstversion.h.in',
output : 'gstversion.h',
install_dir : 'include/gstreamer-1.0/gst',
- configuration : cdata)
+ configuration : version_cdata)
-mkenums = find_program('build_mkenum.py')
-glib_mkenums = find_program('glib-mkenums')
+gst_enums = gnome.mkenums('gstenumtypes',
+ sources : gst_headers,
+ h_template : 'gstenumtypes.h.template',
+ c_template : 'gstenumtypes.c.template',
+ install_header : true,
+ install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst'))
-gstenum_h = custom_target('gstenum_h',
- output : 'gstenumtypes.h',
- input : gst_headers,
- install : true,
- install_dir : 'include/gstreamer-1.0/gst',
- command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
+gstenum_h = gst_enums[1]
+gstenum_c = gst_enums[0]
-gstenum_c = custom_target('gstenum_c',
- output : 'gstenumtypes.c',
- input : gst_headers,
- depends : [gstenum_h],
- command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
subdir('parse')
subdir('printf')
'-DGST_DISABLE_DEPRECATED',
]
+disable_tracer_hooks = get_option('disable_tracer_hooks')
+if disable_tracer_hooks
+ libgst_c_args += ['-DGST_DISABLE_GST_TRACER_HOOKS']
+endif
+
# Make it possible to build both static and shared versions
# at the same time. By default use shared for unit tests etc.
# This choice is arbitrary.
include_directories('parse')],
install : true,
link_with : printf_lib,
- dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib] + platform_deps,
+ dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib] + backtrace_deps + platform_deps,
)
libgst = libgst_static
endif
include_directories('parse')],
link_with : printf_lib,
install : true,
- dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib] + platform_deps,
- vs_module_defs: vs_module_defs_dir + 'libgstreamer.def',
+ dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib, dl_dep] + backtrace_deps
+ + platform_deps,
)
libgst = libgst_shared
if build_gir
'--cflags-end']
endif
- gst_incdirs += [include_directories(meson.current_build_dir() + '/..')]
+ gst_incdirs += [configinc]
gst_gen_sources += [gnome.generate_gir(libgst_shared,
- sources : gst_sources + gst_headers,
+ sources : gst_sources + gst_headers + gst_enums + [gst_version_h],
namespace : 'Gst',
nsversion : apiversion,
identifier_prefix : 'Gst',
include_directories : gst_incdirs,
dependencies : [glib_dep, gobject_dep, gmodule_dep],
# Everything that uses libgst needs this built to compile
- sources : [gst_gen_sources, gstenum_h],
+ sources : gst_gen_sources,
)