-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.zig
More file actions
25 lines (20 loc) · 754 Bytes
/
build.zig
File metadata and controls
25 lines (20 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const std = @import("std");
pub fn build(b: *std.Build) void {
// Standard release options allow the person running `zig build` to select
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const clap_mod = b.addModule("clap-tutorial", .{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
const lib = b.addLibrary(.{
.name = "vst",
.root_module = clap_mod,
.linkage = .dynamic,
});
lib.linkLibC();
const clap_dep = b.dependency("clap", .{});
lib.addIncludePath(clap_dep.path("include")); b.installArtifact(lib);
}