diff options
-rw-r--r-- | build.zig | 6 | ||||
-rw-r--r-- | build.zig.zon | 12 | ||||
m--------- | depends/mgl-zig | 0 |
3 files changed, 15 insertions, 3 deletions
@@ -9,17 +9,17 @@ pub fn build(b: *std.Build) void { .root_source_file = .{ .path = "src/main.zig" }, .target = target, .optimize = optimize, + .strip = optimize != std.builtin.OptimizeMode.Debug, + .single_threaded = true, }); - const mgl_dep = b.anonymousDependency("depends/mgl-zig", @import("depends/mgl-zig/build.zig"), .{ + const mgl_dep = b.dependency("mgl", .{ .target = target, .optimize = optimize, }); exe.linkLibrary(mgl_dep.artifact("mgl-zig")); - exe.strip = optimize != std.builtin.OptimizeMode.Debug; exe.want_lto = optimize != std.builtin.OptimizeMode.Debug; - exe.single_threaded = true; b.installArtifact(exe); diff --git a/build.zig.zon b/build.zig.zon new file mode 100644 index 0000000..d5d4851 --- /dev/null +++ b/build.zig.zon @@ -0,0 +1,12 @@ +.{ + .name = "mgl-zig-example", + .version = "0.0.0", + .dependencies = .{ + .mgl = .{ + .path = "depends/mgl-zig", + }, + }, + .paths = .{ + "", + }, +}
\ No newline at end of file diff --git a/depends/mgl-zig b/depends/mgl-zig -Subproject 4d16740b4b17e9e6f00582117cae5fb4cc5326f +Subproject 5b62fbe5117dcee4e0a161825d2415144716ee7 |