this repo has no description
13
fork

Configure Feed

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

Skip everything else when external_uucode

authored by

Jacob Sandlund and committed by
Tim Culverhouse
fc908c75 7655966a

+9 -9
+9 -9
build.zig
··· 35 35 vaxis_mod.addImport("zigimg", zigimg_dep.module("zigimg")); 36 36 if (uucode_mod) |mod| { 37 37 vaxis_mod.addImport("uucode", mod); 38 + } else { 39 + // External uucode mode: consumer wires up their own uucode module on 40 + // the vaxis module. Skip examples, bench, tests, and docs steps since 41 + // they all depend on uucode being available here. 42 + return; 38 43 } 39 44 40 45 // Examples ··· 113 118 .root_source_file = b.path("src/main.zig"), 114 119 .target = target, 115 120 .optimize = optimize, 116 - .imports = if (uucode_mod) |mod| 117 - &.{ 118 - .{ .name = "zigimg", .module = zigimg_dep.module("zigimg") }, 119 - .{ .name = "uucode", .module = mod }, 120 - } 121 - else 122 - &.{ 123 - .{ .name = "zigimg", .module = zigimg_dep.module("zigimg") }, 124 - }, 121 + .imports = &.{ 122 + .{ .name = "zigimg", .module = zigimg_dep.module("zigimg") }, 123 + .{ .name = "uucode", .module = uucode_mod.? }, 124 + }, 125 125 }), 126 126 }); 127 127