diff options
author | Dylan Baker <[email protected]> | 2018-01-16 10:36:28 -0800 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-02-05 19:06:02 +0000 |
commit | 2a99c5211ba9bdc15117892847b10a8de5b3c486 (patch) | |
tree | 06ee04f9350bd563087fd36e3e511ca3ddbd648f /src | |
parent | d6a8939225710b01db846e612738d2eb05f7fa0a (diff) |
meson: Don't confuse the install and search paths for dri drivers
Currently there is not a separate option for setting the search path of
DRI drivers in meson, like there is in scons and autotools. This is an
oversight and needs to be fixed. This adds an extra option
`dri-search-path`, which will default to the value of
`dri-drivers-path`, like autotools does.
v2: - Split input list before joining.
v3: - use : instead of ; as the delimiter. The autotools help string
incorrectly says ; but the code uses :
v4: - Take list in pre : delimited form (Ilia)
- Ensure that the dri-search-path is absolute when using
dri_drivers_path
Fixes: db9788420d4bc7b4 ("meson: Add support for configuring dri drivers directory.")
Reported-by: Ilia Mirkin <[email protected]>
Signed-off-by: Dylan Baker <[email protected]>
Reviewed-by: Eric Anholt <[email protected]> (v2)
Reviewed-by: Eric Engestrom <[email protected]> (v3)
(cherry picked from commit d7235ef83b92175537e3b538634ffcff29bf0dce)
Diffstat (limited to 'src')
-rw-r--r-- | src/egl/meson.build | 2 | ||||
-rw-r--r-- | src/gbm/meson.build | 2 | ||||
-rw-r--r-- | src/glx/meson.build | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/egl/meson.build b/src/egl/meson.build index df6e8b49dac..6cd04567b0d 100644 --- a/src/egl/meson.build +++ b/src/egl/meson.build @@ -160,7 +160,7 @@ libegl = shared_library( c_args : [ c_vis_args, c_args_for_egl, - '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_driver_dir), + '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path), '-D_EGL_BUILT_IN_DRIVER_DRI2', '-D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_@0@'.format(egl_native_platform.to_upper()), ], diff --git a/src/gbm/meson.build b/src/gbm/meson.build index 14b9e960360..2f5d1c6ddd7 100644 --- a/src/gbm/meson.build +++ b/src/gbm/meson.build @@ -38,7 +38,7 @@ incs_gbm = [ if with_dri2 files_gbm += files('backends/dri/gbm_dri.c', 'backends/dri/gbm_driint.h') deps_gbm += dep_libdrm # TODO: pthread-stubs - args_gbm += '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_driver_dir) + args_gbm += '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path) endif if with_platform_wayland deps_gbm += dep_wayland_server diff --git a/src/glx/meson.build b/src/glx/meson.build index e645b22b5fe..82141d3d4e5 100644 --- a/src/glx/meson.build +++ b/src/glx/meson.build @@ -113,7 +113,6 @@ elif with_dri_platform == 'windows' extra_ld_args_libgl = '-Wl,--disable-stdcall-fixup' endif -dri_driver_dir = join_paths(get_option('prefix'), dri_drivers_path) if not with_glvnd gl_lib_name = 'GL' gl_lib_version = '1.2.0' @@ -130,7 +129,8 @@ else endif gl_lib_cargs = [ - '-D_REENTRANT', '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_driver_dir), + '-D_REENTRANT', + '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path), ] if dep_xxf86vm != [] and dep_xxf86vm.found() |