-project('gst-libav', 'c', 'cpp',
- version : '1.21.0.1',
- meson_version : '>= 0.59',
+project('gst-libav', 'c',
+ version : '1.22.2.1',
+ meson_version : '>= 0.62',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
libav_deps = [libavfilter_dep, libavformat_dep, libavcodec_dep, libavutil_dep]
cc = meson.get_compiler('c')
+static_build = get_option('default_library') == 'static'
check_ffmpeg_src = '''#include <libavcodec/avcodec.h>
#if LIBAVCODEC_VERSION_MICRO >= 100
add_project_arguments(msvc_args, language: ['c', 'cpp'])
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')
'-Waddress',
'-Wno-multichar',
'-Waggregate-return',
- '-Wdeclaration-after-statement',
'-Wvla',
'-Wpointer-arith',
]
endif
configure_file(output: 'config.h', configuration: cdata)
+
+meson.add_dist_script('scripts/gen-changelog.py', meson.project_name(), '1.20.0', meson.project_version())
+
+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]
+endforeach