mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 23:52:20 +01:00
[build] Zero-pad soversion components as necessary
This commit is contained in:
parent
afbcd94569
commit
499460184a
10
meson.build
10
meson.build
@ -122,7 +122,15 @@ if platform == 'windows'
|
|||||||
compiler_args += ['-DDXVK_WSI_WIN32']
|
compiler_args += ['-DDXVK_WSI_WIN32']
|
||||||
else
|
else
|
||||||
dxvk_abi_version = '0'
|
dxvk_abi_version = '0'
|
||||||
dxvk_version = meson.project_version().strip('v').split('.')
|
dxvk_version_raw = meson.project_version().strip('v').split('.')
|
||||||
|
dxvk_version = [ dxvk_version_raw[0] ]
|
||||||
|
foreach i : [ 1, 2 ]
|
||||||
|
padded = dxvk_version_raw[i]
|
||||||
|
if padded.to_int() < 10
|
||||||
|
padded = '0' + padded
|
||||||
|
endif
|
||||||
|
dxvk_version += [ padded ]
|
||||||
|
endforeach
|
||||||
dxvk_so_version = {'version': dxvk_abi_version + '.' + dxvk_version[0] + dxvk_version[1] + dxvk_version[2]}
|
dxvk_so_version = {'version': dxvk_abi_version + '.' + dxvk_version[0] + dxvk_version[1] + dxvk_version[2]}
|
||||||
|
|
||||||
wrc = find_program('touch')
|
wrc = find_program('touch')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user