feat: maybe finished the loader for now

I need a beacon before I can appropriately test the loader
This commit is contained in:
Andrew Rioux
2025-01-21 23:23:07 -05:00
parent cd56d57cb3
commit 53019f6fc9
8 changed files with 130 additions and 22 deletions
+4 -1
View File
@@ -26,12 +26,13 @@ pub fn build(b: *std.Build) !void {
.pic = true,
});
libloader.addIncludePath(b.path("src"));
libloader.root_module.addAnonymousImport("beacon", .{ .root_source_file = compressed_beacon });
libloader.linkLibC();
libloader.step.dependOn(&tool_step.step);
const lib = b.addSharedLibrary(.{
var lib = b.addSharedLibrary(.{
.name = "unix-loader",
.root_source_file = b.path("src/loader.zig"),
.target = target,
@@ -47,7 +48,9 @@ pub fn build(b: *std.Build) !void {
.strip = true,
});
lib.addIncludePath(b.path("src"));
lib.addObject(libloader);
exe.addIncludePath(b.path("src"));
exe.addObject(libloader);
b.installArtifact(lib);