libgst = libgst_static
endif
+# Make sure that subproject building gir files work
+gst_incdirs = [configinc]
+gst_gen_sources = [gstenum_h]
if libtype != 'static'
libgst_shared = shared_library('gstreamer-1.0', gst_sources,
gstenum_h, gstenum_c, grammar, parser, gst_registry,
'-I' + meson.current_build_dir() + '/..',
'--cflags-end']
endif
- gnome.generate_gir(libgst_shared,
+
+ gst_incdirs += [include_directories(meson.current_build_dir() + '/..')]
+ gst_gen_sources += [gnome.generate_gir(libgst_shared,
sources : gst_sources + gst_headers,
namespace : 'Gst',
nsversion : apiversion,
includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0' ],
install : true,
extra_args : gst_gir_extra_args,
- )
+ )]
endif
endif
gst_dep = declare_dependency(link_with : libgst,
- include_directories : [configinc],
+ include_directories : gst_incdirs,
dependencies : [glib_dep, gobject_dep, gmodule_dep],
# Everything that uses libgst needs this built to compile
- sources : [gstenum_h],
+ sources : gst_gen_sources,
)
project('gstreamer', 'c', 'cpp',
- version : '1.9.1.1',
+ version : '1.9.2.1',
meson_version : '>= 0.33.0',
default_options : [ 'warning_level=1',
'c_std=gnu99',
gnome = import('gnome')
# Fixme, not very elegant.
-build_gir = gir.found() and not meson.is_cross_build()
+build_gir = gir.found() and not meson.is_cross_build() and not get_option('disable_introspection')
gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**); gst_init(NULL,NULL);' ]
vs_module_defs_dir = meson.source_root() + '/win32/common/'
option('disable_examples', type : 'boolean', value : false)
option('disable_registry', type : 'boolean', value : false)
option('library_format', type : 'combo', choices : ['shared', 'static', 'both'], value : 'shared')
+option('disable_introspection',
+ type : 'boolean', value : false,
+ description : 'Whether to disable the introspection generation')