zig/test/standalone/pkg_import/build.zig

13 lines
378 B
Zig
Raw Normal View History

const Builder = @import("std").build.Builder;
pub fn build(b: &Builder) {
const exe = b.addExecutable("test", "test.zig");
exe.addPackagePath("my_pkg", "pkg.zig");
const run = b.addCommand(".", b.env_map, exe.getOutputPath(), [][]const u8{});
run.step.dependOn(&exe.step);
const test_step = b.step("test", "Test it");
test_step.dependOn(&run.step);
}