project('gst-plugins-good', 'c',
- version : '1.21.0.1',
- meson_version : '>= 0.60',
+ version : '1.21.3',
+ meson_version : '>= 0.62',
default_options : [ 'warning_level=1',
'buildtype=debugoptimized' ])
gst_version_is_dev = gst_version_minor.is_odd() and gst_version_micro < 90
have_cxx = add_languages('cpp', native: false, required: false)
+if have_cxx
+ cxx = meson.get_compiler('cpp')
+endif
glib_req = '>= 2.62.0'
orc_req = '>= 0.4.17'
if cc.has_link_argument('-Wl,-Bsymbolic-functions')
add_project_link_arguments('-Wl,-Bsymbolic-functions', language : 'c')
endif
+if have_cxx and cxx.has_link_argument('-Wl,-Bsymbolic-functions')
+ add_project_link_arguments('-Wl,-Bsymbolic-functions', language : '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
+if have_cxx and cxx.has_link_argument('-Wl,-z,nodelete')
+ add_project_link_arguments('-Wl,-z,nodelete', language: 'cpp')
+endif
# Symbol visibility
if cc.has_argument('-fvisibility=hidden')
'-Waggregate-return',
]
-if have_cxx
- cxx = meson.get_compiler('cpp')
-endif
-
foreach extra_arg : warning_flags
if cc.has_argument (extra_arg)
add_project_arguments([extra_arg], language: 'c')
configure_file(output : 'config.h', configuration : cdata)
+meson.add_dist_script('scripts/gen-changelog.py', meson.project_name(), '1.20.0', meson.project_version())
+
plugin_names = []
gst_plugins = []
foreach plugin: plugins