feat: maybe finished the loader for now
I need a beacon before I can appropriately test the loader
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user