X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=subprojects%2Fgstreamer-vaapi%2Fmeson.build;h=4feaec5972929db68d2e4c570db8ddadba19db3e;hb=064711d8b382c106afffe75cefbabe8f7bac8532;hp=4440d7a03c6d897e0dcaca8dd1072e86bef89f8b;hpb=a40634eebe2902464f8faa54024fc976c845eb2a;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gstreamer-vaapi/meson.build b/subprojects/gstreamer-vaapi/meson.build index 4440d7a..4feaec59 100644 --- a/subprojects/gstreamer-vaapi/meson.build +++ b/subprojects/gstreamer-vaapi/meson.build @@ -1,6 +1,6 @@ project('gstreamer-vaapi', 'c', - version : '1.21.0.1', - meson_version : '>= 0.60', + version : '1.22.4', + meson_version : '>= 0.62', default_options : [ 'warning_level=1', 'buildtype=debugoptimized' ]) @@ -26,6 +26,7 @@ libdrm_req = '>= 2.4.98' gst_req = '>= @0@.@1@.0'.format(gst_version_major, gst_version_minor) cc = meson.get_compiler('c') +static_build = get_option('default_library') == 'static' if cc.has_link_argument('-Wl,-Bsymbolic-functions') add_project_link_arguments('-Wl,-Bsymbolic-functions', language : 'c') @@ -187,14 +188,14 @@ cdata.set_quoted('PACKAGE_NAME', 'GStreamer VA-API Plug-ins') cdata.set_quoted('PACKAGE_STRING', 'GStreamer VA-API Plug-ins @0@'.format(gst_version)) cdata.set_quoted('PACKAGE_BUGREPORT', get_option('package-origin')) cdata.set_quoted('VA_DRIVERS_PATH', '@0@'.format(driverdir)) -cdata.set10('USE_DRM', USE_DRM) -cdata.set10('USE_EGL', USE_EGL) -cdata.set10('USE_ENCODERS', USE_ENCODERS) -cdata.set10('USE_GLX', USE_GLX) -cdata.set10('USE_VP9_ENCODER', USE_VP9_ENCODER) -cdata.set10('USE_AV1_DECODER', USE_AV1_DECODER) -cdata.set10('USE_WAYLAND', USE_WAYLAND) -cdata.set10('USE_X11', USE_X11) +cdata.set10('GST_VAAPI_USE_DRM', USE_DRM) +cdata.set10('GST_VAAPI_USE_EGL', USE_EGL) +cdata.set10('GST_VAAPI_USE_ENCODERS', USE_ENCODERS) +cdata.set10('GST_VAAPI_USE_GLX', USE_GLX) +cdata.set10('GST_VAAPI_USE_VP9_ENCODER', USE_VP9_ENCODER) +cdata.set10('GST_VAAPI_USE_AV1_DECODER', USE_AV1_DECODER) +cdata.set10('GST_VAAPI_USE_WAYLAND', USE_WAYLAND) +cdata.set10('GST_VAAPI_USE_X11', USE_X11) cdata.set10('HAVE_XKBLIB', cc.has_header('X11/XKBlib.h', dependencies: x11_dep)) cdata.set10('HAVE_XRANDR', xrandr_dep.found()) cdata.set10('USE_GST_GL_HELPERS', gstgl_dep.found()) @@ -235,3 +236,30 @@ if gmodule_dep.version().version_compare('< 2.67.4') 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()) + +pkgconfig = import('pkgconfig') +plugins_pkgconfig_install_dir = join_paths(plugins_install_dir, 'pkgconfig') +if get_option('default_library') == 'shared' + # If we don't build static plugins there is no need to generate pc files + plugins_pkgconfig_install_dir = disabler() +endif + +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: ', ')