project('gst-devtools', 'c',
- version : '1.19.2',
- meson_version : '>= 0.54',
+ version : '1.21.1',
+ meson_version : '>= 0.62',
default_options : [ 'warning_level=1',
'c_std=gnu99',
'buildtype=debugoptimized' ])
gst_version_major = version_arr[0].to_int()
gst_version_minor = version_arr[1].to_int()
gst_version_micro = version_arr[2].to_int()
-if gst_version_minor.is_even()
+gst_version_is_stable = gst_version_minor.is_even()
+gst_version_is_dev = gst_version_minor.is_odd() and gst_version_micro < 90
+if gst_version_is_stable
TESTSUITE_VERSION = '@0@.@1@'.format(gst_version_major, gst_version_minor)
else
- TESTSUITE_VERSION = 'master'
+ TESTSUITE_VERSION = 'master' # FIXME: main?
endif
apiversion = '1.0'
prefix = get_option('prefix')
-glib_req = '>= 2.56.0'
-gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)
+glib_req = '>= 2.62.0'
+
+if gst_version_is_stable
+ gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor)
+else
+ gst_req = '>= ' + gst_version
+endif
cc = meson.get_compiler('c')
noseh_link_args = []
endif
+# glib doesn't support unloading, which means that unloading and reloading
+# any library that registers static types will fail
+if cc.has_link_argument('-Wl,-z,nodelete')
+ add_project_link_arguments('-Wl,-z,nodelete', language: 'c')
+endif
+
# Symbol visibility
if cc.has_argument('-fvisibility=hidden')
add_project_arguments('-fvisibility=hidden', language: 'c')
required : get_option('validate'),
fallback : ['gstreamer', 'gst_check_dep'])
-glib_dep = dependency('glib-2.0', version : '>=2.32.0',
- fallback: ['glib', 'libglib_dep'])
-gmodule_dep = dependency('gmodule-2.0',
- fallback: ['glib', 'libgmodule_dep'])
-gio_dep = dependency('gio-2.0',
- fallback: ['glib', 'libgio_dep'])
+gio_dep = dependency('gio-2.0', version: glib_req)
+gmodule_dep = dependency('gmodule-no-export-2.0')
gtk_dep = dependency('gtk+-3.0', required: false)
mathlib = cc.find_library('m', required : false)
'-Wmissing-include-dirs',
'-Waddress',
'-Wno-multichar',
- '-Wdeclaration-after-statement',
'-Wvla',
'-Wpointer-arith',
]
endif
pkgconfig_subdirs = ['gstreamer-1.0']
-plugins_doc_dep = []
+gst_plugins_doc_dep = []
plugins = []
i18n = import('i18n')
+static_build = get_option('default_library') == 'static'
+gst_libraries = []
+
python_mod = import('python')
python3 = python_mod.find_installation()
-
if not get_option('validate').disabled()
subdir('validate')
endif
endif
subdir('docs')
-run_command(python3, '-c', 'import shutil; shutil.copy("hooks/multi-pre-commit.hook", ".git/hooks/pre-commit")')
+plugin_names = []
+gst_plugins = []
+foreach plugin: plugins
+ pkgconfig.generate(plugin, install_dir: plugins_pkgconfig_install_dir)
+ dep = declare_dependency(link_with: plugin, variables: {'full_path': plugin.full_path()})
+ meson.override_dependency(plugin.name(), dep)
+ gst_plugins += [dep]
+ if plugin.name().startswith('gst')
+ plugin_names += [plugin.name().substring(3)]
+ else
+ plugin_names += [plugin.name()]
+ endif
+endforeach
+
+summary({
+ 'Plugins': plugin_names,
+}, list_sep: ', ')