Skip to content

Commit

Permalink
feat: cef 117 for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Oct 6, 2023
1 parent 1f0f0b8 commit 26a9cb1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
30 changes: 14 additions & 16 deletions src/CMakeModules/Bootstrap_Windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -164,28 +164,26 @@ casparcg_add_runtime_dependency("${LIBERATION_FONTS_BIN_PATH}/LiberationMono-Reg

# CEF
if (ENABLE_HTML)
set(CEF_INCLUDE_PATH "${NUGET_PACKAGES_FOLDER}/casparcg.cef.sdk.95.0.1-MediaHandler.2467/CEF")
set(CEF_BIN_PATH "${NUGET_PACKAGES_FOLDER}/casparcg.cef.redist.x64.95.0.1-MediaHandler.2467/CEF")
set(CEF_RESOURCE_PATH "${NUGET_PACKAGES_FOLDER}/casparcg.cef.redist.x64.95.0.1-MediaHandler.2467/CEF")
link_directories("${NUGET_PACKAGES_FOLDER}/casparcg.cef.sdk.95.0.1-MediaHandler.2467/CEF/x64")
set(CEF_INCLUDE_PATH "${NUGET_PACKAGES_FOLDER}/cef.sdk.117.2.2/CEF")
set(CEF_BIN_PATH "${NUGET_PACKAGES_FOLDER}/cef.redist.x64.117.2.2/CEF")
set(CEF_RESOURCE_PATH "${NUGET_PACKAGES_FOLDER}/cef.redist.x64.117.2.2/CEF")
link_directories("${NUGET_PACKAGES_FOLDER}/cef.sdk.117.2.2/CEF/x64")

casparcg_add_runtime_dependency_dir("${CEF_RESOURCE_PATH}/locales")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/chrome_100_percent.pak")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/chrome_200_percent.pak")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/resources.pak")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/icudtl.dat")

casparcg_add_runtime_dependency_dir("${CEF_BIN_PATH}/swiftshader")
casparcg_add_runtime_dependency("${CEF_BIN_PATH}/snapshot_blob.bin")
casparcg_add_runtime_dependency("${CEF_BIN_PATH}/v8_context_snapshot.bin")
casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libcef.dll")
casparcg_add_runtime_dependency("${CEF_BIN_PATH}/chrome_elf.dll")
casparcg_add_runtime_dependency("${CEF_BIN_PATH}/d3dcompiler_47.dll")
casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libEGL.dll")
casparcg_add_runtime_dependency("${CEF_BIN_PATH}/libGLESv2.dll")
casparcg_add_runtime_dependency("${CEF_BIN_PATH}/vk_swiftshader.dll")
casparcg_add_runtime_dependency("${CEF_BIN_PATH}/vk_swiftshader_icd.json")
casparcg_add_runtime_dependency("${CEF_BIN_PATH}/vulkan-1.dll")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/snapshot_blob.bin")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/v8_context_snapshot.bin")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/libcef.dll")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/chrome_elf.dll")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/d3dcompiler_47.dll")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/libEGL.dll")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/libGLESv2.dll")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/vk_swiftshader.dll")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/vk_swiftshader_icd.json")
casparcg_add_runtime_dependency("${CEF_RESOURCE_PATH}/vulkan-1.dll")
endif ()

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
Expand Down
4 changes: 2 additions & 2 deletions src/modules/html/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="boost" version="1.67.0.0" targetFramework="native" />
<package id="casparcg.cef.redist.x64" version="95.0.1-MediaHandler.2467" targetFramework="native" />
<package id="casparcg.cef.sdk" version="95.0.1-MediaHandler.2467" targetFramework="native" />
<package id="cef.redist.x64" version="117.2.2" targetFramework="native" />
<package id="cef.sdk" version="117.2.2" targetFramework="native" />
</packages>
4 changes: 3 additions & 1 deletion src/modules/html/producer/html_producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ class html_client
* This is where the shared textures get fed into. It is specific to the obs builds (hence the 2 suffix), so might
* be removed/renamed when the change is accepted upstream
*/
/*
void OnAcceleratedPaint2(CefRefPtr<CefBrowser> browser,
PaintElementType type,
const RectList& dirtyRects,
Expand Down Expand Up @@ -378,6 +379,7 @@ class html_client
CASPAR_LOG_CURRENT_EXCEPTION();
}
}
*/
#endif

void OnAfterCreated(CefRefPtr<CefBrowser> browser) override
Expand Down Expand Up @@ -514,7 +516,7 @@ class html_producer : public core::frame_producer
bool shared_texture_enable = false;

#ifdef WIN32
shared_texture_enable = enable_gpu && accelerator::d3d::d3d_device::get_device();
// shared_texture_enable = enable_gpu && accelerator::d3d::d3d_device::get_device();
#endif

client_ = new html_client(frame_factory, graph_, format_desc, shared_texture_enable, url_);
Expand Down

0 comments on commit 26a9cb1

Please sign in to comment.