this repo has no description
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 49 lines 1.5 kB view raw
1const std = @import("std"); 2 3pub fn build(b: *std.Build) void { 4 const target = b.standardTargetOptions(.{}); 5 const optimize = b.standardOptimizeOption(.{}); 6 7 const ourio_dep = b.dependency("ourio", .{ .target = target, .optimize = optimize }); 8 9 const lib_mod = b.createModule(.{ 10 .root_source_file = b.path("src/root.zig"), 11 .target = target, 12 .optimize = optimize, 13 }); 14 lib_mod.addImport("ourio", ourio_dep.module("ourio")); 15 lib_mod.addImport("stda", ourio_dep.module("stda")); 16 17 const lib_unit_tests = b.addTest(.{ 18 .root_module = lib_mod, 19 }); 20 21 const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests); 22 23 const test_step = b.step("test", "Run unit tests"); 24 test_step.dependOn(&run_lib_unit_tests.step); 25 26 // Example 27 const example_mod = b.createModule(.{ 28 .root_source_file = b.path("example/stream.zig"), 29 .target = target, 30 .optimize = optimize, 31 }); 32 example_mod.addImport("ourio", ourio_dep.module("ourio")); 33 example_mod.addImport("stda", ourio_dep.module("stda")); 34 example_mod.addImport("atproto", lib_mod); 35 const exe = b.addExecutable(.{ 36 .name = "stream", 37 .root_module = example_mod, 38 }); 39 const run_cmd = b.addRunArtifact(exe); 40 run_cmd.step.dependOn(b.getInstallStep()); 41 b.installArtifact(exe); 42 43 if (b.args) |args| { 44 run_cmd.addArgs(args); 45 } 46 47 const run_step = b.step("run", "Run the app"); 48 run_step.dependOn(&run_cmd.step); 49}