nixpkgs 25.11 -> 26.05
This commit is contained in:
18
build.zig
18
build.zig
@@ -15,18 +15,20 @@ pub fn build(b: *std.Build) void {
|
||||
// set a preferred release mode, allowing the user to decide how to optimize.
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
var exe = b.addExecutable(.{
|
||||
const exe_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
.link_libc = true,
|
||||
});
|
||||
exe_module.linkSystemLibrary("evdev", .{});
|
||||
|
||||
const exe = b.addExecutable(.{
|
||||
.name = "zremap",
|
||||
// In this case the main source file is merely a path, however, in more),
|
||||
// complicated build scripts, this could be a generated file.
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
}),
|
||||
.root_module = exe_module,
|
||||
});
|
||||
exe.linkLibC();
|
||||
exe.linkSystemLibrary("evdev");
|
||||
|
||||
// This declares intent for the executable to be installed into the
|
||||
// standard location when the user invokes the "install" step (the default
|
||||
|
||||
Reference in New Issue
Block a user