[Mesa-dev] [Bug 109062] meson incorrectly handles/reports libdrm_$foo

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 17 11:45:38 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=109062

--- Comment #2 from Emil Velikov <emil.l.velikov at gmail.com> ---
How about something like the following pseudo code.
AFAICT it should produce the correct output.

req_libdrm=...
req_libdrm_foo=...
req_libdrm_bar=...

foreach driver : gallium-drivers // or drivers in general
   // if meson cannot handle two deps/packages at the same time,
   // invoke dependency() twice and then fold into one variable
   dep_libdrm_$driver = dependency(libdrm >= req_libdrm_$driver,
                                   libdrm_$driver >= req_libdrm_$driver)


// other generic parts/checks for libdrm
dep_libdrm = dependency(libdrm >= req_libdrm)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181217/f4908a3b/attachment.html>


More information about the mesa-dev mailing list