Quellcode durchsuchen

meson: libdrm shouldn't appear in Requires.private: if it wasn't found

Otherwise, using pkg-config to retrieve flags will fail, e.g.

$ pkg-config gl --cflags
Package libdrm was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdrm.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libdrm', required by 'gl', not found

Fixes: 3218056e0e ("meson: Build i965 and dri stack")

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
tags/18.1-branchpoint
Jon Turney vor 7 Jahren
Ursprung
Commit
4a0bab1d7f
2 geänderte Dateien mit 10 neuen und 3 gelöschten Zeilen
  1. 4
    2
      meson.build
  2. 6
    1
      src/mesa/drivers/dri/meson.build

+ 4
- 2
meson.build Datei anzeigen

@@ -1213,8 +1213,10 @@ inc_include = include_directories('include')

gl_priv_reqs = [
'x11', 'xext', 'xdamage >= 1.1', 'xfixes', 'x11-xcb', 'xcb',
'xcb-glx >= 1.8.1', 'libdrm >= 2.4.75',
]
'xcb-glx >= 1.8.1']
if dep_libdrm.found()
gl_priv_reqs += 'libdrm >= 2.4.75'
endif
if dep_xxf86vm != [] and dep_xxf86vm.found()
gl_priv_reqs += 'xxf86vm'
endif

+ 6
- 1
src/mesa/drivers/dri/meson.build Datei anzeigen

@@ -67,12 +67,17 @@ endif
# This needs to be installed if any dri drivers (including gallium dri drivers)
# are built.
if with_dri
dri_req_private = []
if dep_libdrm.found()
dri_req_private = ['libdrm >= 2.4.75'] # FIXME: don't hardcode this
endif

pkg.generate(
name : 'dri',
filebase : 'dri',
description : 'Direct Rendering Infrastructure',
version : meson.project_version(),
variables : ['dridriverdir=${prefix}/' + dri_drivers_path],
requires_private : ['libdrm >= 2.4.75'], # FIXME: don't hardcode this
requires_private : dri_req_private,
)
endif

Laden…
Abbrechen
Speichern