lavapipe: fix icd generation for windows
Acked-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9208>
This commit is contained in:
@@ -11,10 +11,11 @@ libvulkan_lvp = shared_library(
|
|||||||
install : true,
|
install : true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
icd_file_name = 'libvulkan_lvp.so'
|
||||||
|
module_dir = join_paths(get_option('prefix'), get_option('libdir'))
|
||||||
if with_platform_windows
|
if with_platform_windows
|
||||||
module_dir = join_paths(get_option('prefix'), get_option('bindir'))
|
module_dir = join_paths(get_option('prefix'), get_option('bindir'))
|
||||||
else
|
icd_file_name = 'libvulkan_lvp.dll'
|
||||||
module_dir = join_paths(get_option('prefix'), get_option('libdir'))
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
lvp_icd = custom_target(
|
lvp_icd = custom_target(
|
||||||
@@ -24,8 +25,7 @@ lvp_icd = custom_target(
|
|||||||
command : [
|
command : [
|
||||||
prog_python, '@INPUT0@',
|
prog_python, '@INPUT0@',
|
||||||
'--api-version', '1.1', '--xml', '@INPUT1@',
|
'--api-version', '1.1', '--xml', '@INPUT1@',
|
||||||
'--lib-path', join_paths(get_option('prefix'), get_option('libdir'),
|
'--lib-path', join_paths(module_dir, icd_file_name),
|
||||||
'libvulkan_lvp.so'),
|
|
||||||
'--out', '@OUTPUT@',
|
'--out', '@OUTPUT@',
|
||||||
],
|
],
|
||||||
build_by_default : true,
|
build_by_default : true,
|
||||||
|
|||||||
Reference in New Issue
Block a user