|
|
@ -14,6 +14,7 @@ pub fn build(b: *std.Build) !void { |
|
|
|
}); |
|
|
|
}); |
|
|
|
const zigimg_dep = b.dependency("zigimg", .{ .target = target, .optimize = optimize }); |
|
|
|
const zigimg_dep = b.dependency("zigimg", .{ .target = target, .optimize = optimize }); |
|
|
|
const zmath_pkg = zmath.package(b, target, optimize, .{}); |
|
|
|
const zmath_pkg = zmath.package(b, target, optimize, .{}); |
|
|
|
|
|
|
|
const flecszigble_dep = b.dependency("flecs-zig-ble", .{ .target = target, .optimize = optimize }); |
|
|
|
|
|
|
|
|
|
|
|
const app = try mach.CoreApp.init(b, mach_dep.builder, .{ |
|
|
|
const app = try mach.CoreApp.init(b, mach_dep.builder, .{ |
|
|
|
.name = "zig-bloxel-game", |
|
|
|
.name = "zig-bloxel-game", |
|
|
@ -23,8 +24,10 @@ pub fn build(b: *std.Build) !void { |
|
|
|
.deps = &.{ |
|
|
|
.deps = &.{ |
|
|
|
.{ .name = "zigimg", .module = zigimg_dep.module("zigimg") }, |
|
|
|
.{ .name = "zigimg", .module = zigimg_dep.module("zigimg") }, |
|
|
|
.{ .name = "zmath", .module = zmath_pkg.zmath }, |
|
|
|
.{ .name = "zmath", .module = zmath_pkg.zmath }, |
|
|
|
|
|
|
|
.{ .name = "flecs-zig-ble", .module = flecszigble_dep.module("flecs-zig-ble") }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
app.compile.linkLibrary(flecszigble_dep.artifact("flecs-zig-ble")); |
|
|
|
if (b.args) |args| app.run.addArgs(args); |
|
|
|
if (b.args) |args| app.run.addArgs(args); |
|
|
|
|
|
|
|
|
|
|
|
const run_step = b.step("run", "Run the app"); |
|
|
|
const run_step = b.step("run", "Run the app"); |
|
|
|