mirror of
https://github.com/aphrody-labs/cef-rs.git
synced 2026-10-13 21:06:46 +00:00
feat: add env var to provide libcef_dll_wrapper.dll
This commit is contained in:
1 file changed
+5
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user