From 262c43ac0097cb452bb8aaaa380ec3bfa721d825 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin <stenzek@gmail.com> Date: Thu, 3 Jun 2021 21:32:23 +1000 Subject: [PATCH] Build: Don't compile WGL/stackwalker for libretro --- src/common/CMakeLists.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 98e1cbd52..3bd9b9755 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -121,8 +121,6 @@ target_link_libraries(common PRIVATE glad stb Threads::Threads libchdr glslang v if(WIN32) target_sources(common PRIVATE - gl/context_wgl.cpp - gl/context_wgl.h d3d11/shader_cache.cpp d3d11/shader_cache.h d3d11/shader_compiler.cpp @@ -133,13 +131,20 @@ if(WIN32) d3d11/stream_buffer.h d3d11/texture.cpp d3d11/texture.h - thirdparty/StackWalker.cpp - thirdparty/StackWalker.h windows_headers.h - win32_progress_callback.cpp - win32_progress_callback.h ) target_link_libraries(common PRIVATE d3dcompiler.lib) + + if(NOT LIBRETRO) + target_sources(common PRIVATE + gl/context_wgl.cpp + gl/context_wgl.h + thirdparty/StackWalker.cpp + thirdparty/StackWalker.h + win32_progress_callback.cpp + win32_progress_callback.h + ) + endif() endif() if(ANDROID)