feat: add env var to provide libcef_dll_wrapper.dll

This commit is contained in:
Fabian-Lars committed 2026-06-10 19:27:00 +02:00
1 parent 0c577ce44d
commit b725609433
1 file changed
+5
+5
View File
@@ -150,6 +150,9 @@ fn main() -> anyhow::Result<()> {
// On macOS it's more complicated so we'll leave it to tools like tauri-cli for now.
copy_cef_runtime_files(&cef_dir, target_dir)?;
if let Ok(wrapper_path) = std::env::var("CEF_RS_LIBCEF_DLL_WRAPPER_PATH") {
println!("cargo::rustc-link-search=native={wrapper_path}");
} else {
let sdk_libs = [
"comctl32.lib",
"delayimp.lib",
@@ -179,6 +182,8 @@ fn main() -> anyhow::Result<()> {
.into_owned();
println!("cargo::rustc-link-search=native={build_dir}/build/libcef_dll_wrapper");
}
println!("cargo::rustc-link-lib=static=libcef_dll_wrapper");
println!("cargo::rustc-link-lib=dylib=libcef");