meson: use if-else to detect rc compiler

this will help to add/build other architecture
This commit is contained in:
Biswapriyo Nath 2020-07-14 23:52:16 +05:30 committed by Philip Rebohle
parent 5ab12d9668
commit 0b4489a31c
1 changed files with 8 additions and 1 deletions

View File

@ -30,8 +30,15 @@ dxvk_extradep = [ ]
if dxvk_compiler.get_id() == 'msvc'
wrc = find_program('rc')
else
wrc = cpu_family == 'x86_64' ? find_program('x86_64-w64-mingw32-windres') : find_program('i686-w64-mingw32-windres')
if cpu_family == 'x86_64'
wrc = find_program('x86_64-w64-mingw32-windres')
elif cpu_family == 'x86'
wrc = find_program('i686-w64-mingw32-windres')
else
error('Unsupported target architecture')
endif
endif
if cpu_family == 'x86'
if dxvk_compiler.has_link_argument('-Wl,--add-stdcall-alias')
add_global_link_arguments('-Wl,--add-stdcall-alias', language: 'cpp')