From 9f365de7d770e7d6660cbb0a4050206900f17eb6 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 31 Mar 2023 15:36:07 +0100 Subject: [PATCH] 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 --- include/native/meson.build | 18 ++++++++++++++++++ meson.build | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 include/native/meson.build diff --git a/include/native/meson.build b/include/native/meson.build new file mode 100644 index 00000000..4e1a6ff5 --- /dev/null +++ b/include/native/meson.build @@ -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', +) diff --git a/meson.build b/meson.build index c68eb7c3..cd08ac37 100644 --- a/meson.build +++ b/meson.build @@ -185,4 +185,8 @@ dxvk_version = vcs_tag( output: 'version.h', ) +if platform != 'windows' + subdir('include/native') +endif + subdir('src')