[build] Set SDL2 WSI env vars and defines on native builds

This commit is contained in:
Joshua Ashton 2022-08-21 20:34:19 +00:00 committed by Philip Rebohle
parent 801d97806d
commit 9dad1aadbe
1 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,9 @@ else
wrc_generator = generator(wrc, output : [ '@BASENAME@_ignored.h' ], arguments : [ '@OUTPUT@' ] )
dxvk_include_path = include_directories('./include', './include/native', './include/native/windows', './include/native/directx')
dxvk_wsi = 'sdl2'
compiler_args += ['-DDXVK_WSI_SDL2']
endif
add_project_arguments(cpp.get_supported_arguments(compiler_args), language: 'cpp')