X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=subprojects%2Fgst-rtsp-server%2Fmeson.build;h=c9dd55ff4113c011bfe4a305e21af0e88dd9b0f2;hb=f13c65d977b740b5955343d320dcf2061bbdf62d;hp=7eee6936bc4fcccf0852f77796a84efb188e6631;hpb=9272943bc7e1058ae4564a94798e90925d01c16b;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gst-rtsp-server/meson.build b/subprojects/gst-rtsp-server/meson.build index 7eee6936..c9dd55f 100644 --- a/subprojects/gst-rtsp-server/meson.build +++ b/subprojects/gst-rtsp-server/meson.build @@ -1,6 +1,6 @@ project('gst-rtsp-server', 'c', - version : '1.21.0.1', - meson_version : '>= 0.60', + version : '1.22.0', + meson_version : '>= 0.62', default_options : ['warning_level=1', 'buildtype=debugoptimized']) gst_version = meson.project_version() @@ -42,19 +42,17 @@ if cc.has_link_argument('-Wl,-Bsymbolic-functions') add_project_link_arguments('-Wl,-Bsymbolic-functions', language : 'c') 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.get_id() == 'msvc' - export_define = '__declspec(dllexport) extern' -elif cc.has_argument('-fvisibility=hidden') +if cc.has_argument('-fvisibility=hidden') add_project_arguments('-fvisibility=hidden', language: 'c') - export_define = 'extern __attribute__ ((visibility ("default")))' -else - export_define = 'extern' endif -# Passing this through the command line would be too messy -cdata.set('GST_API_EXPORT', export_define) - # Disable strict aliasing if cc.has_argument('-fno-strict-aliasing') add_project_arguments('-fno-strict-aliasing', language: 'c') @@ -191,7 +189,7 @@ endif plugins = [] pkgconfig_subdirs = ['gstreamer-1.0'] static_build = get_option('default_library') == 'static' -libraries = [] +gst_libraries = [] subdir('gst') if not get_option('tests').disabled() @@ -212,3 +210,23 @@ if gst_version_nano == 0 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()) + +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: ', ')