mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 16:31:58 +02:00
meson: Remove GIR init section
Clapper GStreamer plugin is not part of GObject Introspection, so no need to init GStreamer when compiling bindings.
This commit is contained in:
@@ -176,7 +176,6 @@ if build_gir
|
|||||||
clappergtk_enums,
|
clappergtk_enums,
|
||||||
],
|
],
|
||||||
extra_args: [
|
extra_args: [
|
||||||
gir_init_section,
|
|
||||||
'--quiet',
|
'--quiet',
|
||||||
'--warn-all',
|
'--warn-all',
|
||||||
'-DCLAPPER_GTK_COMPILATION',
|
'-DCLAPPER_GTK_COMPILATION',
|
||||||
|
@@ -236,7 +236,6 @@ if build_gir
|
|||||||
clapper_enums,
|
clapper_enums,
|
||||||
],
|
],
|
||||||
extra_args: [
|
extra_args: [
|
||||||
gir_init_section,
|
|
||||||
'--quiet',
|
'--quiet',
|
||||||
'--warn-all',
|
'--warn-all',
|
||||||
'-DCLAPPER_COMPILATION',
|
'-DCLAPPER_COMPILATION',
|
||||||
|
@@ -4,12 +4,6 @@ build_gir = (gir.found() and not get_option('introspection').disabled())
|
|||||||
vapigen = find_program('vapigen', required: get_option('vapi'))
|
vapigen = find_program('vapigen', required: get_option('vapi'))
|
||||||
build_vapi = (vapigen.found() and not get_option('vapi').disabled())
|
build_vapi = (vapigen.found() and not get_option('vapi').disabled())
|
||||||
|
|
||||||
gir_init_section = '--add-init-section=extern void gst_init(gint*,gchar**);' + \
|
|
||||||
'g_setenv("GST_REGISTRY_1.0", "@0@", TRUE);'.format(meson.current_build_dir() + '/gir_empty_registry.reg') + \
|
|
||||||
'g_setenv("GST_PLUGIN_PATH_1_0", "", TRUE);' + \
|
|
||||||
'g_setenv("GST_PLUGIN_SYSTEM_PATH_1_0", "", TRUE);' + \
|
|
||||||
'gst_init(NULL,NULL);'
|
|
||||||
|
|
||||||
subdir('gst')
|
subdir('gst')
|
||||||
subdir('clapper')
|
subdir('clapper')
|
||||||
subdir('clapper-gtk')
|
subdir('clapper-gtk')
|
||||||
|
Reference in New Issue
Block a user