mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxvk] Fix meson issue for native builds
This commit is contained in:
parent
9feed43abf
commit
85aa0a0ecb
1 changed files with 12 additions and 2 deletions
14
meson.build
14
meson.build
|
@ -26,7 +26,11 @@ if get_option('build_id')
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
dxvk_include_path = include_directories('./include', './include/vulkan/include', './include/spirv/include')
|
dxvk_include_dirs = [
|
||||||
|
'./include',
|
||||||
|
'./include/vulkan/include',
|
||||||
|
'./include/spirv/include'
|
||||||
|
]
|
||||||
|
|
||||||
if platform == 'windows'
|
if platform == 'windows'
|
||||||
compiler_args += [
|
compiler_args += [
|
||||||
|
@ -102,12 +106,18 @@ else
|
||||||
wrc = find_program('touch')
|
wrc = find_program('touch')
|
||||||
wrc_generator = generator(wrc, output : [ '@BASENAME@_ignored.h' ], arguments : [ '@OUTPUT@' ] )
|
wrc_generator = generator(wrc, output : [ '@BASENAME@_ignored.h' ], arguments : [ '@OUTPUT@' ] )
|
||||||
|
|
||||||
dxvk_include_path += include_directories('./include/native', './include/native/windows', './include/native/directx')
|
dxvk_include_dirs += [
|
||||||
|
'./include/native',
|
||||||
|
'./include/native/windows',
|
||||||
|
'./include/native/directx'
|
||||||
|
]
|
||||||
|
|
||||||
dxvk_wsi = 'sdl2'
|
dxvk_wsi = 'sdl2'
|
||||||
compiler_args += ['-DDXVK_WSI_SDL2']
|
compiler_args += ['-DDXVK_WSI_SDL2']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
dxvk_include_path = include_directories(dxvk_include_dirs)
|
||||||
|
|
||||||
add_project_arguments(cpp.get_supported_arguments(compiler_args), language: 'cpp')
|
add_project_arguments(cpp.get_supported_arguments(compiler_args), language: 'cpp')
|
||||||
add_project_arguments(cc.get_supported_arguments(compiler_args), language: 'c')
|
add_project_arguments(cc.get_supported_arguments(compiler_args), language: 'c')
|
||||||
add_project_link_arguments(cpp.get_supported_link_arguments(link_args), language: 'cpp')
|
add_project_link_arguments(cpp.get_supported_link_arguments(link_args), language: 'cpp')
|
||||||
|
|
Loading…
Add table
Reference in a new issue