diff options
| author | Gabriel Schneider <[email protected]> | 2026-01-20 21:31:56 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-01-20 21:31:56 -0300 |
| commit | 086f78bce8a895a718b0ed54aa37f844343761ed (patch) | |
| tree | fec272917c317c2ac9fa97d8623af67a66421339 /build.zig | |
| parent | 9198a15f5af56eaa3e7d08ea3ab72e0c40469b27 (diff) | |
| download | codenomicon-086f78bce8a895a718b0ed54aa37f844343761ed.tar.gz codenomicon-086f78bce8a895a718b0ed54aa37f844343761ed.zip | |
slow progress on implementing the pwntools tubes funcionality
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -41,6 +41,12 @@ pub fn build(b: *std.Build) !void { .target = target, .optimize = optimize, }); + const gloves_module = b.createModule(.{ + .root_source_file = b.path("src/gloves.zig"), + .target = target, + .optimize = optimize, + .link_libc = true, + }); const cs = capstone(b, .{ .target = target, @@ -56,12 +62,22 @@ pub fn build(b: *std.Build) !void { .root_module = elfo_module, }); + const gloves = b.addExecutable(.{ + .name = "gloves", + .root_module = gloves_module, + }); + elfo.linkLibrary(cs.artifact); b.installArtifact(elfo); + b.installArtifact(gloves); + + const run_elfo_cmd = b.addRunArtifact(elfo); + const run_elfo_step = b.step("elfo", "See the pretty elfo!"); + run_elfo_step.dependOn(&run_elfo_cmd.step); - const run_cmd = b.addRunArtifact(elfo); - const run_step = b.step("elfo", "See the pretty elfo!"); - run_step.dependOn(&run_cmd.step); + const run_gloves_cmd = b.addRunArtifact(gloves); + const run_gloves_step = b.step("gloves", "See the pretty gloves!"); + run_gloves_step.dependOn(&run_gloves_cmd.step); // TODO: add flag to run on pwndbg } |
