-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.zig
More file actions
48 lines (44 loc) · 1.4 KB
/
Copy pathbuild.zig
File metadata and controls
48 lines (44 loc) · 1.4 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const version: std.SemanticVersion = .{ .major = 1, .minor = 0, .patch = 0};
const index = b.addExecutable(.{
.name = "FFL-Index",
.version = version,
.root_module = b.createModule(.{
.root_source_file = b.path("src/FFL-Index.zig"),
.target = target,
.optimize = optimize,
.error_tracing = false,
.strip = true,
.single_threaded = true,
.unwind_tables = .none,
}),
});
const lookup = b.addExecutable(.{
.name = "FFL-Lookup",
.version = version,
.root_module = b.createModule(.{
.root_source_file = b.path("src/FFL-Lookup.zig"),
.target = target,
.optimize = optimize,
.error_tracing = false,
.strip = true,
.single_threaded = true,
.unwind_tables = .none,
}),
});
const FFL = b.addModule(
"FFL",
.{
.root_source_file = b.path("src/FFL.zig"),
.target = target,
.optimize = optimize,
},
);
index.root_module.addImport("FFL", FFL);
lookup.root_module.addImport("FFL", FFL);
b.installArtifact(index);
b.installArtifact(lookup);
}