mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
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.
29 lines
752 B
Meson
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 ])
|