treesummaryrefslogcommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig20
1 files changed, 20 insertions, 0 deletions
diff --git a/build.zig b/build.zig
new file mode 100644
index 0000000..85c7417
--- /dev/null
+++ b/build.zig
@@ -0,0 +1,20 @@
+const std = @import("std");
+
+pub fn build(b: *std.Build) void {
+ const target = b.standardTargetOptions(.{});
+ const optimize = b.standardOptimizeOption(.{});
+
+ const exe = b.addExecutable(.{
+ .name = "reactive-zig",
+ .root_module = b.createModule(.{
+ .root_source_file = b.path("src/refl.zig"),
+ .target = target,
+ .optimize = optimize,
+ }),
+ });
+
+ b.installArtifact(exe);
+
+ const exe_tests = b.addTest(.{ .root_module = exe.root_module });
+ b.step("test", "Run tests").dependOn(&b.addRunArtifact(exe_tests).step);
+}