D10747: Implement zwp_linux_dmabuf_v1

Vlad Zagorodniy noreply at phabricator.kde.org
Sat Jun 29 11:58:25 BST 2019


zzag added a comment.


  > Update protocol xml to wayland-protocols master
  
  OT: there's a package called wayland-protocols. We could use it in order to avoid copying protocol specs.
  
  name=FindWaylandProtocols.cmake
    #.rst:
    # FindWaylandProtocols
    # -------
    #
    # Try to find wayland-protocols on a Unix system.
    #
    # This will define the following variables:
    #
    # ``WaylandProtocols_FOUND``
    #     True if (the requested version of) wayland-protocols is available
    # ``WaylandProtocols_VERSION``
    #     The version of wayland-protocols
    # ``WaylandProtocols_DATADIR``
    #     The wayland protocols data directory
    
    find_package(PkgConfig)
    pkg_check_modules(PKG_wayland_protocols QUIET wayland-protocols)
    
    set(WaylandProtocols_VERSION ${PKG_wayland_protocols_VERSION})
    pkg_get_variable(WaylandProtocols_DATADIR wayland-protocols pkgdatadir)
    
    include(FindPackageHandleStandardArgs)
    find_package_handle_standard_args(WaylandProtocols
        FOUND_VAR WaylandProtocols_FOUND
        REQUIRED_VARS WaylandProtocols_DATADIR
        VERSION_VAR WaylandProtocols_VERSION
    )
    
    include(FeatureSummary)
    set_package_properties(WaylandProtocols PROPERTIES
        URL "https://wayland.freedesktop.org/"
        DESCRIPTION "Specifications of extended Wayland protocols"
    )
  
  and then use it as follows
  
    find_package(WaylandProtocols 1.8 REQUIRED)
    
    ${WaylandProtocols_DATADIR}/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml

REPOSITORY
  R127 KWayland

REVISION DETAIL
  https://phabricator.kde.org/D10747

To: romangg, #kwin, #plasma, graesslin, davidedmundson, mart, fredrik
Cc: zzag, kde-frameworks-devel, romangg, plasma-devel, LeGast00n, hannahk, jraleigh, sgureev, fbampaloukas, GB_2, ragreen, Pitel, schernikov, michaelh, ZrenBot, ngraham, bruns, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, eliasp, sebas, apol, mart, hein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190629/9cb31b44/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list