From c0e7854782dae327b21425e12fcb5678047bf3f1 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Sat, 27 Apr 2024 12:34:46 -0400 Subject: [PATCH] cefclient: osr: Fix compile errors with binary distribution (see #2575) --- cmake/cef_variables.cmake.in | 3 ++- tests/cefclient/browser/osr_renderer.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmake/cef_variables.cmake.in b/cmake/cef_variables.cmake.in index 9f10f1d9f..9c8d55e3e 100644 --- a/cmake/cef_variables.cmake.in +++ b/cmake/cef_variables.cmake.in @@ -304,8 +304,9 @@ if(OS_MAC) # Standard libraries. set(CEF_STANDARD_LIBS -lpthread - "-framework Cocoa" "-framework AppKit" + "-framework Cocoa" + "-framework IOSurface" ) # Find the newest available base SDK. diff --git a/tests/cefclient/browser/osr_renderer.cc b/tests/cefclient/browser/osr_renderer.cc index 24ee60173..22af81623 100644 --- a/tests/cefclient/browser/osr_renderer.cc +++ b/tests/cefclient/browser/osr_renderer.cc @@ -4,7 +4,7 @@ #include "tests/cefclient/browser/osr_renderer.h" -#if !defined(OS_WIN) +#if defined(__clang__) // Begin disable NSOpenGL deprecation warnings. #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" @@ -1092,7 +1092,7 @@ void OsrRenderer::IncrementSpin(float spinDX, float spinDY) { } // namespace client -#if !defined(OS_WIN) +#if defined(__clang__) // End disable NSOpenGL deprecation warnings. #pragma clang diagnostic pop #endif