aboutsummaryrefslogtreecommitdiff
path: root/src/z/AppBundle.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-09 14:01:20 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-09 14:01:20 +0200
commit32a251aa9645de070727a6ec91490d3e9219ec7c (patch)
tree5dd55205c5df68fa449e766ec2a8d248e21bd2be /src/z/AppBundle.zig
parent09e8d4548361ece6151b914709c39e254eba65e3 (diff)
rename z framework to zeroscript
Diffstat (limited to 'src/z/AppBundle.zig')
-rw-r--r--src/z/AppBundle.zig49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/z/AppBundle.zig b/src/z/AppBundle.zig
deleted file mode 100644
index a99de2c..0000000
--- a/src/z/AppBundle.zig
+++ /dev/null
@@ -1,49 +0,0 @@
-const std = @import("std");
-
-pub const Options = struct {
- root_source_file: std.Build.LazyPath,
- target: std.Build.ResolvedTarget,
-};
-
-mod: *std.Build.Module,
-wasm: struct {
- mod: *std.Build.Module,
- exe: *std.Build.Step.Compile,
-},
-
-pub fn init(b: *std.Build, options: Options, z_mod: anytype) @This() {
- const module = b.addModule("site", .{
- .root_source_file = options.root_source_file,
- .target = options.target,
- .imports = &.{ .{ .name = "z", .module = z_mod } },
- });
-
- const wasm_module = b.createModule(.{
- .root_source_file = options.root_source_file,
- .target = b.resolveTargetQuery(.{
- .cpu_arch = .wasm32,
- .os_tag = .freestanding,
- }),
- .imports = &.{ .{ .name = "z", .module = z_mod } },
- });
-
- const exe = b.addExecutable(.{
- .name = "runtime",
- .root_module = wasm_module,
- });
-
- exe.rdynamic = true;
- exe.entry = .disabled;
-
- return .{
- .mod = module,
- .wasm = .{
- .exe = exe,
- .mod = wasm_module,
- },
- };
-}
-
-pub fn getEmittedWasm(self: *const @This()) std.Build.LazyPath {
- return self.wasm.exe.getEmittedBin();
-}