tangled
alpha
login
or
join now
altagos.dev
/
space
0
fork
atom
A SpaceTraders Agent
0
fork
atom
overview
issues
pulls
pipelines
zig init
altagos.dev
4 months ago
1ce84b0c
+48
4 changed files
expand all
collapse all
unified
split
.gitignore
build.zig
build.zig.zon
src
main.zig
+2
.gitignore
···
1
1
+
.zig-cache
2
2
+
zig-out
+30
build.zig
···
1
1
+
const std = @import("std");
2
2
+
3
3
+
pub fn build(b: *std.Build) void {
4
4
+
const target = b.standardTargetOptions(.{});
5
5
+
const optimize = b.standardOptimizeOption(.{});
6
6
+
7
7
+
const options = b.addOptions();
8
8
+
9
9
+
const space = b.addModule("space", .{
10
10
+
.root_source_file = b.path("src/main.zig"),
11
11
+
.target = target,
12
12
+
.optimize = optimize,
13
13
+
});
14
14
+
15
15
+
space.addOptions("build-options", options);
16
16
+
17
17
+
const exe = b.addExecutable(.{
18
18
+
.root_module = space,
19
19
+
.name = "space",
20
20
+
});
21
21
+
b.installArtifact(exe);
22
22
+
23
23
+
const run_cmd = b.addRunArtifact(exe);
24
24
+
run_cmd.step.dependOn(b.getInstallStep());
25
25
+
26
26
+
if (b.args) |args| run_cmd.addArgs(args);
27
27
+
28
28
+
const run_step = b.step("run", "Run the app");
29
29
+
run_step.dependOn(&run_cmd.step);
30
30
+
}
+11
build.zig.zon
···
1
1
+
.{
2
2
+
.name = .space,
3
3
+
.version = "0.0.1",
4
4
+
.minimum_zig_version = "0.16.0-dev.1246+4b593a6c2",
5
5
+
.paths = .{
6
6
+
"build.zig",
7
7
+
"build.zig.zon",
8
8
+
"src",
9
9
+
},
10
10
+
.fingerprint = 0x2972c13a61953f08,
11
11
+
}
+5
src/main.zig
···
1
1
+
const std = @import("std");
2
2
+
3
3
+
pub fn main() void {
4
4
+
std.debug.print("All your {s} are belong to us.\n", .{"codebase"});
5
5
+
}