summaryrefslogtreecommitdiff
path: root/runtime/root.zig
blob: 3297db5eb35f26a4befe6596ecf838bd597e8046 (plain) (blame)
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
//! What runs a session: the daemon and a session's link to it, the
//! upgrade, the crash file, `--addon-test`, the 9P listener and client
//! (9p_io) over cloud9's options (9p). Module `runtime`; a product's root
//! (main.zig, macos.zig) sits beside it as a module of its own, naming it
//! and `core`.
pub const daemon = @import("daemon.zig");
pub const upgrade = @import("upgrade.zig");
pub const crash = @import("crash.zig");
pub const addon_test = @import("addon_test.zig");
pub const ninep_io = @import("9p_io.zig");
pub const ninep = @import("9p.zig");

test {
    _ = daemon;
    _ = upgrade;
    _ = ninep_io;
    _ = ninep_io.Client;
    _ = ninep;
    // main.zig's test block collected the crash file's: a shell's build
    // (shell-test); the core without a terminal (core-test) never compiled it.
    if (comptime @import("term_options").terminal) _ = crash;
    // A window's build links the window's C (font.c over FreeType and
    // HarfBuzz) into each of its programs, and their allocator (ui_malloc
    // and the rest) is gui.zig's.
    if (comptime @import("term_options").terminal and @import("pardes_config").platform == .gui) _ = @import("dev").gui;
}