zba-gdbstub/build.zig

17 lines
600 B
Zig
Raw Normal View History

2022-12-11 02:47:11 +00:00
const std = @import("std");
pub fn build(b: *std.Build) void {
2022-12-11 02:47:11 +00:00
const target = b.standardTargetOptions(.{});
2023-06-19 17:04:35 +00:00
const net_dep = b.dependency("zig-network", .{}); // https://github.com/MasterQ32/zig-network
2022-12-11 02:47:11 +00:00
2023-06-19 17:04:35 +00:00
_ = b.addModule("gdbstub", .{
.source_file = .{ .path = "src/lib.zig" },
.dependencies = &.{.{ .name = "network", .module = net_dep.module("network") }},
});
2023-06-19 17:04:35 +00:00
const lib_test = b.addTest(.{ .root_source_file = .{ .path = "src/lib.zig" }, .target = target });
const test_step = b.step("test", "Run Library Tests");
test_step.dependOn(&lib_test.step);
2022-12-11 02:47:11 +00:00
}