[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    D10747: Implement zwp_linux_dmabuf_v1
From:       Vlad Zagorodniy <noreply () phabricator ! kde ! org>
Date:       2019-06-29 10:58:25
Message-ID: 8221dccdec26ca9791e61cf259c0a895 () localhost ! localdomain
[Download RAW message or body]

[Attachment #2 (text/plain)]

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


[Attachment #3 (text/html)]

<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&#039;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 &quot;Menlo&quot;, &quot;Consolas&quot;, &quot;Monaco&quot;, 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">&quot;https://wayland.freedesktop.org/&quot;</span>  <span \
style="color: #766510">DESCRIPTION</span> <span style="color: \
#766510">&quot;Specifications of extended Wayland protocols&quot;</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 \
&quot;Menlo&quot;, &quot;Consolas&quot;, &quot;Monaco&quot;, 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>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic