-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.zig
More file actions
17 lines (16 loc) · 808 Bytes
/
build.zig
File metadata and controls
17 lines (16 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const std = @import("std");
pub fn build(b: *std.Build) void {
b.installArtifact(@import("node_modules/@thi.ng/wasm-api/zig/build.zig").wasmLib(b, .{
// Declare extra WASM API packages to use
// Each package can also declare dependencies to other such packages
// (wasm-api and wasm-api-bindgen are made available everywhere)
.modules = &.{
.{ .name = "wasm-api-dom", .path = "@thi.ng/wasm-api-dom/zig/lib.zig" },
.{ .name = "wasm-api-schedule", .path = "@thi.ng/wasm-api-schedule/zig/lib.zig" },
},
// (optional) build mode override
// if commented out, we can pass CLI args to choose build mode (default: .Debug)
// see build:zig-prod script alias in package.json
// .optimize = .ReleaseSmall,
}));
}