Skip to content

Commit

Permalink
build.zig: fix missing glibconfig.h on freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
thechampagne authored Jun 12, 2024
1 parent 9176427 commit b65f158
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ pub fn build(b: *std.Build) void {
staticLib.addCSourceFile(.{ .file = .{ .path = "external/webview/webview.cc"}, .flags = &.{"-std=c++11"}});
staticLib.addIncludePath(.{ .path = "/usr/local/include/gtk-3.0/"});
staticLib.addIncludePath(.{ .path = "/usr/local/include/glib-2.0/"});
staticLib.addIncludePath(.{ .path = "/usr/local/lib/glib-2.0/include/"});
staticLib.addIncludePath(.{ .path = "/usr/local/include/webkitgtk-4.0/"});
staticLib.linkSystemLibrary("gtk-3");
staticLib.linkSystemLibrary("webkit2gtk-4.0");
Expand Down Expand Up @@ -102,6 +103,7 @@ pub fn build(b: *std.Build) void {
sharedLib.addCSourceFile(.{ .file = .{ .path = "external/webview/webview.cc"}, .flags = &.{"-std=c++11"}});
sharedLib.addIncludePath(.{ .path = "/usr/local/include/gtk-3.0/"});
sharedLib.addIncludePath(.{ .path = "/usr/local/include/glib-2.0/"});
sharedLib.addIncludePath(.{ .path = "/usr/local/lib/glib-2.0/include/"});
sharedLib.addIncludePath(.{ .path = "/usr/local/include/webkitgtk-4.0/"});
sharedLib.linkSystemLibrary("gtk-3");
sharedLib.linkSystemLibrary("webkit2gtk-4.0");
Expand Down

0 comments on commit b65f158

Please sign in to comment.