-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathbuild.zig
More file actions
24 lines (19 loc) · 680 Bytes
/
build.zig
File metadata and controls
24 lines (19 loc) · 680 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
const std = @import("std");
pub fn build(b: *std.Build) !void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseSafe });
const client_exe = b.addExecutable(.{
.name = "zpm",
.target = target,
.optimize = optimize,
.root_source_file = b.path("src/client/client-main.zig"),
});
b.installArtifact(client_exe);
const server_exe = b.addExecutable(.{
.name = "zpm-server",
.target = target,
.optimize = optimize,
.root_source_file = b.path("src/server/server-main.zig"),
});
b.installArtifact(server_exe);
}