mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 03:00:11 +01:00
radv: Update JSON generator if Windows
Use vulkan_radeon.dll, and apply current working directory. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8911>
This commit is contained in:
parent
8930ecd3ce
commit
7008e6558a
2 changed files with 12 additions and 3 deletions
|
|
@ -207,13 +207,21 @@ if with_symbols_check
|
|||
)
|
||||
endif
|
||||
|
||||
icd_lib_path = join_paths(get_option('prefix'), get_option('libdir'))
|
||||
icd_file_name = 'libvulkan_radeon.so'
|
||||
if with_platform_windows
|
||||
icd_lib_path = '.'
|
||||
icd_file_name = 'vulkan_radeon.dll'
|
||||
endif
|
||||
|
||||
radeon_icd = custom_target(
|
||||
'radeon_icd',
|
||||
input : 'radv_icd.py',
|
||||
output : 'radeon_icd.@0@.json'.format(host_machine.cpu()),
|
||||
command : [
|
||||
prog_python, '@INPUT@',
|
||||
'--lib-path', join_paths(get_option('prefix'), get_option('libdir')),
|
||||
'--lib-path', icd_lib_path,
|
||||
'--file-name', icd_file_name,
|
||||
'--out', '@OUTPUT@',
|
||||
],
|
||||
depend_files : files('radv_extensions.py'),
|
||||
|
|
|
|||
|
|
@ -28,10 +28,11 @@ from radv_extensions import *
|
|||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--out', help='Output json file.', required=True)
|
||||
parser.add_argument('--lib-path', help='Path to libvulkan_radeon.so')
|
||||
parser.add_argument('--lib-path', help='Path to file')
|
||||
parser.add_argument('--file-name', help='Name of file')
|
||||
args = parser.parse_args()
|
||||
|
||||
path = 'libvulkan_radeon.so'
|
||||
path = args.file_name
|
||||
if args.lib_path:
|
||||
path = os.path.join(args.lib_path, path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue