commit - cc2c19f0f1d1aef0dad9f16c15bbd7be0033a7d7
commit + af22f4ac0ca65a1963349ed95b50fd64fe57680f
blob - 79b404665f097572beb2a588a1274f55a2b80f46
blob + af96bb28939b6086e75d88a3144404255bde0dfe
--- src/build.zig
+++ src/build.zig
return files.toOwnedSlice(dba);
}
-// Although this function looks imperative, note that its job is to
-// declaratively construct a build graph that will be executed by an external
-// runner.
pub fn build(b: *std.Build) void {
// Standard target options allows the person running `zig build` to choose
// what target to build for. Here we do not override the defaults, which
// for restricting supported target set are available.
const target = b.standardTargetOptions(.{});
- // Standard optimization options allow the person running `zig build` to select
- // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. Here we do not
- // set a preferred release mode, allowing the user to decide how to optimize.
- const optimize = b.standardOptimizeOption(.{});
-
const fence_mod = b.createModule(.{
.root_source_file = b.path("fence/root.zig"),
.target = target,
b.getInstallStep().dependOn(&header_file.step);
const extlibs = [_][]const u8{
- "cairo", "glib-2.0", "gtk-3", "gdk-3", "gdk_pixbuf-2.0", "pango-1.0",
+ "cairo", "glib-2.0", "gtk-3", "gdk-3", "gdk_pixbuf-2.0", "pango-1.0", "gio-2.0",
"iconv",
- "gnutls", "gmp", "unistring",
+ "gnutls", "gmp", "unistring", "nettle", "tasn1", "p11-kit", "hogweed", "libidn2",
};
const common_mod = b.createModule(.{
}
etpan_mod.linkLibrary(common);
etpan_mod.linkSystemLibrary("etpan", .{});
- etpan_mod.linkSystemLibrary("atk", .{});
+ etpan_mod.linkSystemLibrary("atk-1.0", .{});
const etpan = b.addLibrary(.{
.name = "clawsetpan",
.root_module = etpan_mod,
const exe_mod = b.createModule(.{
.target = target,
- .optimize = optimize,
+ .optimize = b.standardOptimizeOption(.{}),
.link_libc = true,
});
exe_mod.linkLibrary(fence);