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

Reply via email to