Skip to content

Commit

Permalink
build: Install headers for native builds
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
smcv authored and flibitijibibo committed Feb 4, 2024
1 parent 8f40d7a commit 29c7cea
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions include/native/meson.build
Original file line number Diff line number Diff line change
@@ -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',
)
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,8 @@ dxvk_version = vcs_tag(
output: 'version.h',
)

if platform != 'windows'
subdir('include/native')
endif

subdir('src')

0 comments on commit 29c7cea

Please sign in to comment.