treesummaryrefslogcommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorPatrick2026-05-14 10:47:17 +0000
committerPatrick2026-05-14 10:47:17 +0000
commit0137b78397e7f50ed00d034838ffb969d1592d09 (patch)
treede314f82dba9d26c5ae88ceef21def5e350b2ad1 /build.zig
parent61201853fddfe1365d8486071beb344b3b760bd0 (diff)
downloadreactive-zig-0137b78397e7f50ed00d034838ffb969d1592d09.tar.gz
reactive-zig-0137b78397e7f50ed00d034838ffb969d1592d09.zip
add files
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);
+}