Skip to content

Commit

Permalink
feat: support custom cef release
Browse files Browse the repository at this point in the history
  • Loading branch information
AMOSOMNUM authored and tishion committed Aug 18, 2024
1 parent fe33578 commit fb75a3f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cmake/DownloadCef.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ else()
set(CEF_SDK_PACKAGE_NAME "cef_binary_${CEF_SDK_VERSION}_${CEF_SDK_PLATFORM}${CEF_SDK_ARCH}")
endif()

# Scan extracted sdk dir
set(CEF_SDK_EXTRACTED_DIR "${CEF_SDK_WORKSPACE}/${CEF_SDK_PACKAGE_NAME}")
file(GLOB CEF_SDK_DIR "${CEF_SDK_EXTRACTED_DIR}")
if(NOT CUSTOM_CEF_SDK_DIR)
# Scan extracted sdk dir
set(CEF_SDK_EXTRACTED_DIR "${CEF_SDK_WORKSPACE}/${CEF_SDK_PACKAGE_NAME}")
file(GLOB CEF_SDK_DIR "${CEF_SDK_EXTRACTED_DIR}")
else()
message("Custom Cef path: ${CUSTOM_CEF_SDK_DIR}")
set(CEF_SDK_DIR "${CUSTOM_CEF_SDK_DIR}")
endif()

# Extract CEF binary package
if(NOT EXISTS ${CEF_SDK_DIR})
Expand Down

0 comments on commit fb75a3f

Please sign in to comment.