From fba8184491e0b7ae6fab7ac01b4600d230dc4569 Mon Sep 17 00:00:00 2001 From: marsunet Date: Tue, 21 Dec 2021 17:04:22 -0800 Subject: Initial commit with window demo. --- contrib/DirectX-Headers/meson.build | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 contrib/DirectX-Headers/meson.build (limited to 'contrib/DirectX-Headers/meson.build') diff --git a/contrib/DirectX-Headers/meson.build b/contrib/DirectX-Headers/meson.build new file mode 100644 index 0000000..3174221 --- /dev/null +++ b/contrib/DirectX-Headers/meson.build @@ -0,0 +1,35 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + +project('DirectX-Headers', 'cpp', version : '1.4.9', + default_options : ['cpp_std=c++14']) + +inc_dirs = [include_directories('include', is_system : true)] +install_inc_subdirs = [''] + +if host_machine.system() != 'windows' + inc_dirs += include_directories('include/wsl/stubs', is_system : true) + install_inc_subdirs += ['', 'wsl/stubs', 'directx'] +endif + +guids_lib = static_library('DirectX-Guids', 'src/dxguids.cpp', include_directories : inc_dirs, install : true) + +dep_dxheaders = declare_dependency( + link_with : guids_lib, + include_directories : inc_dirs) + +if meson.version().version_compare('>=0.54.0') + meson.override_dependency('DirectX-Headers', dep_dxheaders) +endif + +if not meson.is_subproject() and get_option('build-test') + subdir('test') +endif + +pkg = import('pkgconfig') +pkg.generate(name : 'DirectX-Headers', + description : 'Headers for using D3D12', + libraries : [guids_lib], + version : meson.project_version(), + subdirs : install_inc_subdirs) +install_subdir('include', install_dir : '') -- cgit v1.2.3