diff --git a/build.zig b/build.zig index 22e25c4..3487b56 100644 --- a/build.zig +++ b/build.zig @@ -7,14 +7,14 @@ const Item = struct { /// List of examples const examples = [_]Item{ - .{ .name = "blinky", .src = "_examples/blinky.zig" }, - .{ .name = "multi", .src = "_examples/multi.zig" }, + .{ .name = "blinky", .src = "src/_examples/blinky.zig" }, + .{ .name = "multi", .src = "src/_examples/multi.zig" }, }; /// List of commands const commands = [_]Item{ - .{ .name = "gpiodetect", .src = "cmd/detect.zig" }, - .{ .name = "gpioinfo", .src = "cmd/info.zig" }, + .{ .name = "gpiodetect", .src = "src/cmd/detect.zig" }, + .{ .name = "gpioinfo", .src = "src/cmd/info.zig" }, }; pub fn build(b: *std.Build) !void { @@ -22,7 +22,7 @@ pub fn build(b: *std.Build) !void { const optimize = b.standardOptimizeOption(.{}); // Add the gpio module so it can be used by the package manager - var gpio_module = b.createModule(.{ .source_file = .{ .path = "index.zig" } }); + var gpio_module = b.createModule(.{ .source_file = .{ .path = "src/index.zig" } }); try b.modules.put(b.dupe("gpio"), gpio_module); // Create a step to build all the examples diff --git a/cmd/detect.zig b/src/cmd/detect.zig similarity index 100% rename from cmd/detect.zig rename to src/cmd/detect.zig diff --git a/cmd/info.zig b/src/cmd/info.zig similarity index 100% rename from cmd/info.zig rename to src/cmd/info.zig diff --git a/gpio.zig b/src/gpio.zig similarity index 100% rename from gpio.zig rename to src/gpio.zig diff --git a/index.zig b/src/index.zig similarity index 100% rename from index.zig rename to src/index.zig diff --git a/uapi.zig b/src/uapi.zig similarity index 100% rename from uapi.zig rename to src/uapi.zig