lavapipe/meson: rename module_dir to icd_lib_path and swap two lines for consistence

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18747>
This commit is contained in:
Yonggang Luo 2022-09-22 16:41:55 +08:00 committed by Marge Bot
parent c8e14d5d47
commit 3449b2187e

View file

@ -14,17 +14,17 @@ libvulkan_lvp = shared_library(
install : true,
)
icd_lib_path = join_paths(get_option('prefix'), get_option('libdir'))
icd_file_name = 'libvulkan_lvp.so'
module_dir = join_paths(get_option('prefix'), get_option('libdir'))
if with_platform_windows
module_dir = join_paths(get_option('prefix'), get_option('bindir'))
icd_lib_path = join_paths(get_option('prefix'), get_option('bindir'))
icd_file_name = 'vulkan_lvp.dll'
endif
icd_command = [
prog_python, '@INPUT0@',
'--api-version', '1.1', '--xml', '@INPUT1@',
'--lib-path', join_paths(module_dir, icd_file_name),
'--lib-path', join_paths(icd_lib_path, icd_file_name),
'--out', '@OUTPUT@',
]
if with_platform_windows