Skip to content

Commit

Permalink
define WEBVIEW_STATIC
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Jan 6, 2024
1 parent f8b48de commit 48e3562
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fltk-webview-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ fn compile_webview() {
if !target.contains("windows-gnu") {
build
.cpp(true)
.define("WEBVIEW_STATIC", "")
.file("webview/webview.cc")
.flag_if_supported("-w");
}
Expand Down Expand Up @@ -134,7 +135,7 @@ fn compile_webview() {
build.flag("-std=c++11");
let lib = pkg_config::Config::new()
.atleast_version("2.8")
.probe("webkit2gtk-4.0")
.probe("webkit2gtk-4.1")
.unwrap();
for path in lib.include_paths {
build.include(path);
Expand Down

0 comments on commit 48e3562

Please sign in to comment.