-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic support for web wallpapers (#196)
* Updated gitignore * Basic Web support * Basic Cmake(not working) * Working CEF * Clean up Render/CWeb * Download CEF in CMAKE * Fixed compile error(excesive comma) * Fixed CWeb compile error(scaling mode) * Commented flag in CEF flag(-fno-rtti) which disabled dynamic cast * Commented CEF compiler flags for MacOS * Added third_party to gitignore * Fixed libvulkan.so.1 error (deleted file entirely) * Removed cefsimple, CefShutdown in signal, cleaned up cmake a bit * Updated .gitignore * Get render function to previous version * Fixed typo in coment * Fixed tab * Removed shaders too * Fix codefactor issues
- Loading branch information
Showing
14 changed files
with
1,601 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ cmake-build-debug* | |
.idea | ||
build/ | ||
.vscode/ | ||
third_party/ | ||
|
||
*-protocol.o | ||
*-protocol.c | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights | ||
# reserved. Use of this source code is governed by a BSD-style license that | ||
# can be found in the LICENSE file. | ||
|
||
# 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 https://cef-builds.spotifycdn.com/index.html for the list of | ||
# supported platforms and versions. | ||
|
||
function(DownloadCEF platform version download_dir) | ||
# Specify the binary distribution type and download directory. | ||
set(CEF_DISTRIBUTION "cef_binary_${version}_${platform}") | ||
set(CEF_DOWNLOAD_DIR "${download_dir}") | ||
|
||
# The location where we expect the extracted binary distribution. | ||
set(CEF_ROOT "${CEF_DOWNLOAD_DIR}/${CEF_DISTRIBUTION}" CACHE INTERNAL "CEF_ROOT") | ||
|
||
# Download and/or extract the binary distribution if necessary. | ||
if(NOT IS_DIRECTORY "${CEF_ROOT}") | ||
set(CEF_DOWNLOAD_FILENAME "${CEF_DISTRIBUTION}.tar.bz2") | ||
set(CEF_DOWNLOAD_PATH "${CEF_DOWNLOAD_DIR}/${CEF_DOWNLOAD_FILENAME}") | ||
if(NOT EXISTS "${CEF_DOWNLOAD_PATH}") | ||
set(CEF_DOWNLOAD_URL "https://cef-builds.spotifycdn.com/${CEF_DOWNLOAD_FILENAME}") | ||
string(REPLACE "+" "%2B" CEF_DOWNLOAD_URL_ESCAPED ${CEF_DOWNLOAD_URL}) | ||
|
||
# Download the SHA1 hash for the binary distribution. | ||
message(STATUS "Downloading ${CEF_DOWNLOAD_PATH}.sha1 from ${CEF_DOWNLOAD_URL_ESCAPED}...") | ||
file(DOWNLOAD "${CEF_DOWNLOAD_URL_ESCAPED}.sha1" "${CEF_DOWNLOAD_PATH}.sha1") | ||
file(READ "${CEF_DOWNLOAD_PATH}.sha1" CEF_SHA1) | ||
|
||
# Download the binary distribution and verify the hash. | ||
message(STATUS "Downloading ${CEF_DOWNLOAD_PATH}...") | ||
file( | ||
DOWNLOAD "${CEF_DOWNLOAD_URL_ESCAPED}" "${CEF_DOWNLOAD_PATH}" | ||
EXPECTED_HASH SHA1=${CEF_SHA1} | ||
SHOW_PROGRESS | ||
) | ||
endif() | ||
|
||
# Extract the binary distribution. | ||
message(STATUS "Extracting ${CEF_DOWNLOAD_PATH}...") | ||
execute_process( | ||
COMMAND ${CMAKE_COMMAND} -E tar xzf "${CEF_DOWNLOAD_DIR}/${CEF_DOWNLOAD_FILENAME}" | ||
WORKING_DIRECTORY ${CEF_DOWNLOAD_DIR} | ||
) | ||
endif() | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights | ||
# reserved. Use of this source code is governed by a BSD-style license that | ||
# can be found in the LICENSE file. | ||
|
||
# | ||
# This file is the CEF CMake configuration entry point and should be loaded | ||
# using `find_package(CEF REQUIRED)`. See the top-level CMakeLists.txt file | ||
# included with the CEF binary distribution for usage information. | ||
# | ||
|
||
# Find the CEF binary distribution root directory. | ||
set(_CEF_ROOT "") | ||
if(CEF_ROOT AND IS_DIRECTORY "${CEF_ROOT}") | ||
set(_CEF_ROOT "${CEF_ROOT}") | ||
set(_CEF_ROOT_EXPLICIT 1) | ||
else() | ||
set(_ENV_CEF_ROOT "") | ||
if(DEFINED ENV{CEF_ROOT}) | ||
file(TO_CMAKE_PATH "$ENV{CEF_ROOT}" _ENV_CEF_ROOT) | ||
endif() | ||
if(_ENV_CEF_ROOT AND IS_DIRECTORY "${_ENV_CEF_ROOT}") | ||
set(_CEF_ROOT "${_ENV_CEF_ROOT}") | ||
set(_CEF_ROOT_EXPLICIT 1) | ||
endif() | ||
unset(_ENV_CEF_ROOT) | ||
endif() | ||
|
||
if(NOT DEFINED _CEF_ROOT_EXPLICIT) | ||
message(FATAL_ERROR "Must specify a CEF_ROOT value via CMake or environment variable.") | ||
endif() | ||
|
||
if(NOT IS_DIRECTORY "${_CEF_ROOT}/cmake") | ||
message(FATAL_ERROR "No CMake bootstrap found for CEF binary distribution at: ${CEF_ROOT}.") | ||
endif() | ||
|
||
# Execute additional cmake files from the CEF binary distribution. | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${_CEF_ROOT}/cmake") | ||
include("cef_variables") | ||
include("cef_macros") |
Oops, something went wrong.