Skip to content

Commit

Permalink
update build.zig for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DerryAlex committed Nov 7, 2024
1 parent 786fc70 commit 5990683
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ pub fn build(b: *std.Build) !void {
} else {
run_cmd.addArgs(&.{ "--outputdir", "gtk4" });
run_cmd.addArgs(&.{ "--includedir", "lib/girepository-1.0" });
if (target.result.os.tag == .windows) {
run_cmd.addArgs(&.{ "--includedir", "lib/girepository-1.0/x86_64-windows/" });
}
run_cmd.addArgs(&.{ "--gi-namespaces", "GLib" }); // load glib before glib_*
run_cmd.addArgs(&.{ "--gi-namespaces", "GLibUnix" });
run_cmd.addArgs(&.{ "--gi-namespaces", "GLibWin32" });
Expand All @@ -179,6 +182,9 @@ pub fn build(b: *std.Build) !void {
} else {
run_abi_cmd.addArgs(&.{ "--outputdir", "test/abi" });
run_abi_cmd.addArgs(&.{ "--includedir", "lib/girepository-1.0" });
if (target.result.os.tag == .windows) {
run_abi_cmd.addArgs(&.{ "--includedir", "lib/girepository-1.0/x86_64-windows/" });
}
run_abi_cmd.addArgs(&.{ "--gi-namespaces", "GLib" }); // load glib before glib_*
run_abi_cmd.addArgs(&.{ "--gi-namespaces", "GLibUnix" });
run_abi_cmd.addArgs(&.{ "--gi-namespaces", "GLibWin32" });
Expand Down

0 comments on commit 5990683

Please sign in to comment.