meson: add dxgi/d3d11 header detection

as done in autotools.
This commit is contained in:
Steve Lhomme 2024-11-05 11:54:53 +01:00
parent a701ac54ef
commit a0c3ad6a81
2 changed files with 12 additions and 0 deletions

View File

@ -92,6 +92,9 @@
/* Define if the compiler supports typeof. */
#mesondefine HAVE_CXX_TYPEOF
/* Define to 1 if you have the <d3d11_4.h> header file. */
#mesondefine HAVE_D3D11_4_H
/* Define to 1 if you have the <dcomp.h> header file. */
#mesondefine HAVE_DCOMP_H
@ -101,6 +104,12 @@
/* Define to 1 if you have the `dup3' function. */
#mesondefine HAVE_DUP3
/* Define to 1 if you have the <dxgi1_6.h> header file. */
#mesondefine HAVE_DXGI1_6_H
/* Define to 1 if you have the <dxgidebug.h> header file. */
#mesondefine HAVE_DXGIDEBUG_H
/* Define to 1 if you have the `eventfd' function. */
#mesondefine HAVE_EVENTFD

View File

@ -237,6 +237,9 @@ check_c_headers = [
['xlocale.h'],
['zlib.h'],
['wordexp.h'],
['dxgi1_6.h'],
['dxgidebug.h'],
['d3d11_4.h'],
['GL/wglew.h',
{ 'prefix' : ['#include <windows.h>', '#include <GL/glew.h>'],
'args' : [contrib_inc_args] }],