From 5588395b2af4c56a02daa6b50f456c9413636d84 Mon Sep 17 00:00:00 2001 From: hn-88 Date: Thu, 8 May 2025 11:08:16 +0530 Subject: [PATCH] Correct cef builds index link. Add arm64 binary download support (#3647) --- modules/webbrowser/cmake/cef_support.cmake | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/webbrowser/cmake/cef_support.cmake b/modules/webbrowser/cmake/cef_support.cmake index 784d7a05dc..93fe19cbb3 100644 --- a/modules/webbrowser/cmake/cef_support.cmake +++ b/modules/webbrowser/cmake/cef_support.cmake @@ -33,9 +33,15 @@ function(set_current_cef_build_platform) if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") - set(CEF_PLATFORM "macosx64" PARENT_SCOPE) + if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64") + set(CEF_PLATFORM "macosarm64" PARENT_SCOPE) + else() + set(CEF_PLATFORM "macosx64" PARENT_SCOPE) + endif() elseif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") - if (CMAKE_SIZEOF_VOID_P MATCHES 8) + if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64") + set(CEF_PLATFORM "linuxarm64" PARENT_SCOPE) + elseif (CMAKE_SIZEOF_VOID_P MATCHES 8) set(CEF_PLATFORM "linux64" PARENT_SCOPE) else () set(CEF_PLATFORM "linux32" PARENT_SCOPE) @@ -52,7 +58,7 @@ endfunction () # Download the CEF binary distribution for |platform| and |version| to # |download_dir|. The |CEF_ROOT| variable will be set in global scope pointing # to the extracted location. -# Visit http://opensource.spotify.com/cefbuilds/index.html for the list of +# Visit https://cef-builds.spotifycdn.com/index.html for the list of # supported platforms and versions. function(download_cef platform version download_dir)