X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=subprojects%2Fgstreamer-vaapi%2Fmeson.build;h=8fef4f81e8330d3c2b1a5d19960a005e6a1dadfb;hb=a8f569e801491204bcd7f1d050bd40a794507a68;hp=d40041526f0a62f00743c6cd3443772b32c4278b;hpb=3c713cc16ee1d374213cb2b47a3127e14e5ff8a5;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gstreamer-vaapi/meson.build b/subprojects/gstreamer-vaapi/meson.build index d400415..8fef4f8 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.59', + version : '1.22.2', + meson_version : '>= 0.62', default_options : [ 'warning_level=1', 'buildtype=debugoptimized' ]) @@ -21,12 +21,12 @@ else endif libva_req = ['>= 0.39.0', '!= 0.99.0'] -glib_req = '>= 2.44.0' libwayland_req = '>= 1.11.0' 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') @@ -95,7 +95,7 @@ libudev_dep = dependency('libudev', required: get_option('drm')) x11_dep = dependency('x11', required: get_option('x11')) xrandr_dep = dependency('xrandr', required: get_option('x11')) -gmodule_dep = dependency('gmodule-2.0', required: get_option('egl')) +gmodule_dep = dependency('gmodule-no-export-2.0') egl_dep = dependency('egl', required: get_option('egl')) glesv2_dep = dependency('glesv2', required: false) @@ -139,8 +139,7 @@ USE_AV1_DECODER = libva_dep.version().version_compare('>= 1.10') USE_DRM = (libva_drm_dep.found() and libdrm_dep.found() and libudev_dep.found()) -USE_EGL = (gmodule_dep.found() - and egl_dep.found() +USE_EGL = (egl_dep.found() and GLES_VERSION_MASK != 0) USE_WAYLAND = (libva_wayland_dep.found() and wayland_client_dep.found() @@ -189,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()) @@ -237,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: ', ')