~ntgg/serdes-zig

serdes-zig/build.zig -rw-r--r-- 725 bytes View raw
cf6a979dNoah Graff changed serialize functions from (type, T) to (var) 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const Builder = @import("std").build.Builder;

pub fn build(b: *Builder) void {
    const mode = b.standardReleaseOptions();
    const lib = b.addStaticLibrary("serdes", "src/main.zig");
    lib.setBuildMode(mode);
    lib.install();

    var main_tests = b.addTest("src/main.zig");
    main_tests.setBuildMode(mode);

    var deserialize_tests = b.addTest("src/deserialize.zig");
    deserialize_tests.setBuildMode(mode);

    var serialize_tests = b.addTest("src/serialize.zig");
    serialize_tests.setBuildMode(mode);

    const test_step = b.step("test", "Run library tests");
    test_step.dependOn(&main_tests.step);
    // test_step.dependOn(&deserialize_tests.step);
    test_step.dependOn(&serialize_tests.step);
}