build: Install headers for native builds

When building a game that has been ported to Linux using DXVK Native,
these headers are necessary to provide the Direct3D and DXVK APIs.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2023-03-31 15:36:07 +01:00 committed by Ethan Lee
parent 99c65c7ccd
commit 9f365de7d7
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,18 @@
install_subdir(
'directx',
install_dir: get_option('includedir') / 'dxvk',
strip_directory: true,
)
install_subdir(
'windows',
install_dir: get_option('includedir') / 'dxvk',
strip_directory: true,
)
install_headers(
'wsi/native_wsi.h',
'wsi/native_sdl2.h',
'wsi/native_glfw.h',
subdir: 'dxvk/wsi',
)

View File

@ -185,4 +185,8 @@ dxvk_version = vcs_tag(
output: 'version.h',
)
if platform != 'windows'
subdir('include/native')
endif
subdir('src')