2022-12-11 02:47:11 +00:00
|
|
|
const std = @import("std");
|
2022-12-15 07:33:43 +00:00
|
|
|
|
2023-02-07 23:00:29 +00:00
|
|
|
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-02-07 23:00:29 +00:00
|
|
|
});
|
2022-12-15 07:33:43 +00:00
|
|
|
|
2023-06-19 17:04:35 +00:00
|
|
|
const lib_test = b.addTest(.{ .root_source_file = .{ .path = "src/lib.zig" }, .target = target });
|
|
|
|
|
2023-02-07 23:00:29 +00:00
|
|
|
const test_step = b.step("test", "Run Library Tests");
|
|
|
|
test_step.dependOn(&lib_test.step);
|
2022-12-11 02:47:11 +00:00
|
|
|
}
|