Suggested change from eli-schwartz in feedback just in case dxcore gets added.

This commit is contained in:
MARINA\jpmug 2023-05-31 23:12:21 -04:00
parent 9c8385f161
commit b54d8eefc7

View File

@ -8,11 +8,7 @@ cpp = meson.get_compiler('cpp')
compiler_id = cpp.get_id()
d3d12_lib = cpp.find_library('d3d12')
#dxcore is not available in Mingw-w64
if compiler_id == 'msvc'
dxcore_lib = cpp.find_library('dxcore')
else
dxcore_lib = cpp.find_library('dxcore', required: false)
endif
dxcore_lib = cpp.find_library('dxcore', required: compiler_id == 'msvc')
test_compile_opts = []
if host_machine.system() == 'windows'
test_compile_opts = ['-DUNICODE', '-D_WIN32_WINNT=0x0A00']