<table><tr><td style="">zzag added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10747">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Update protocol xml to wayland-protocols master</p></blockquote>

<p>OT: there's a package called wayland-protocols. We could use it in order to avoid copying protocol specs.</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="cmake" data-sigil="remarkup-code-block"><div style="padding: 6px 12px; font-size: 13px; font-weight: bold; display: inline-block; border-top-left-radius: 3px; border-top-right-radius: 3px; color: rgba(0,0,0,.75); background: rgba(71, 87, 120, 0.08);">FindWaylandProtocols.cmake</div><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08); max-height: 48em; overflow: auto;"><span style="color: #74777d">#.rst:</span>
<span style="color: #74777d"># FindWaylandProtocols</span>
<span style="color: #74777d"># -------</span>
<span style="color: #74777d">#</span>
<span style="color: #74777d"># Try to find wayland-protocols on a Unix system.</span>
<span style="color: #74777d">#</span>
<span style="color: #74777d"># This will define the following variables:</span>
<span style="color: #74777d">#</span>
<span style="color: #74777d"># ``WaylandProtocols_FOUND``</span>
<span style="color: #74777d">#     True if (the requested version of) wayland-protocols is available</span>
<span style="color: #74777d"># ``WaylandProtocols_VERSION``</span>
<span style="color: #74777d">#     The version of wayland-protocols</span>
<span style="color: #74777d"># ``WaylandProtocols_DATADIR``</span>
<span style="color: #74777d">#     The wayland protocols data directory</span>

<span style="color: #304a96">find_package</span><span class="p">(</span><span style="color: #766510">PkgConfig</span><span class="p">)</span>
<span style="color: #304a96">pkg_check_modules</span><span class="p">(</span><span style="color: #766510">PKG_wayland_protocols</span> <span style="color: #766510">QUIET</span> <span style="color: #766510">wayland-protocols</span><span class="p">)</span>

<span style="color: #304a96">set</span><span class="p">(</span><span style="color: #766510">WaylandProtocols_VERSION</span> <span style="color: #aa2211">${</span><span style="color: #001294">PKG_wayland_protocols_VERSION</span><span style="color: #aa2211">}</span><span class="p">)</span>
<span style="color: #304a96">pkg_get_variable</span><span class="p">(</span><span style="color: #766510">WaylandProtocols_DATADIR</span> <span style="color: #766510">wayland-protocols</span> <span style="color: #766510">pkgdatadir</span><span class="p">)</span>

<span style="color: #304a96">include</span><span class="p">(</span><span style="color: #766510">FindPackageHandleStandardArgs</span><span class="p">)</span>
<span style="color: #304a96">find_package_handle_standard_args</span><span class="p">(</span><span style="color: #766510">WaylandProtocols</span>
    <span style="color: #766510">FOUND_VAR</span> <span style="color: #766510">WaylandProtocols_FOUND</span>
    <span style="color: #766510">REQUIRED_VARS</span> <span style="color: #766510">WaylandProtocols_DATADIR</span>
    <span style="color: #766510">VERSION_VAR</span> <span style="color: #766510">WaylandProtocols_VERSION</span>
<span class="p">)</span>

<span style="color: #304a96">include</span><span class="p">(</span><span style="color: #766510">FeatureSummary</span><span class="p">)</span>
<span style="color: #304a96">set_package_properties</span><span class="p">(</span><span style="color: #766510">WaylandProtocols</span> <span style="color: #766510">PROPERTIES</span>
    <span style="color: #766510">URL</span> <span style="color: #766510">"https://wayland.freedesktop.org/"</span>
    <span style="color: #766510">DESCRIPTION</span> <span style="color: #766510">"Specifications of extended Wayland protocols"</span>
<span class="p">)</span></pre></div>

<p>and then use it as follows</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="cmake" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><span style="color: #304a96">find_package</span><span class="p">(</span><span style="color: #766510">WaylandProtocols</span> <span style="color: #766510">1.8</span> <span style="color: #766510">REQUIRED</span><span class="p">)</span>

<span class="err">${WaylandProtocols_DATADIR}/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml</span></pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R127 KWayland</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10747">https://phabricator.kde.org/D10747</a></div></div><br /><div><strong>To: </strong>romangg, KWin, Plasma, graesslin, davidedmundson, mart, fredrik<br /><strong>Cc: </strong>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<br /></div>