dxvk/src/wsi/meson.build
Ethan Lee 6259e86392 [meson] Use dependency() instead of find_library() for SDL2/GLFW detection.
Since we're not linking to the libraries anymore, it doesn't make much sense to
use find_library, and in fact we need to use dependency() in order to get the
right CFLAGS for includes, defines, etc, so use that instead.

As a result, we can remove the 'SDL2/' folders from the includes, making the SDL
includes more correct.
2024-05-13 13:18:03 +00:00

29 lines
752 B
Meson

wsi_src = [
'wsi_edid.cpp',
'wsi_platform.cpp',
'win32/wsi_monitor_win32.cpp',
'win32/wsi_platform_win32.cpp',
'win32/wsi_window_win32.cpp',
'sdl2/wsi_monitor_sdl2.cpp',
'sdl2/wsi_platform_sdl2.cpp',
'sdl2/wsi_window_sdl2.cpp',
'glfw/wsi_monitor_glfw.cpp',
'glfw/wsi_platform_glfw.cpp',
'glfw/wsi_window_glfw.cpp',
]
wsi_deps = [ dep_displayinfo ]
if platform != 'windows'
wsi_deps += [
lib_sdl2.partial_dependency(compile_args: true, includes: true),
lib_glfw.partial_dependency(compile_args: true, includes: true),
]
endif
wsi_lib = static_library('wsi', wsi_src,
dependencies : wsi_deps,
include_directories : [ dxvk_include_path ])
wsi_dep = declare_dependency(
link_with : [ wsi_lib ])