aboutsummaryrefslogtreecommitdiff
path: root/src/zeroscript/AppBundle.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-12 09:43:19 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-12 09:43:19 +0200
commit0b2af471b6d5dfc4eaf53639102c1b854bbb324b (patch)
treeaba3943b8c54d26d8552d0685d4178bc995d91c3 /src/zeroscript/AppBundle.zig
parent812f547d84b5ce1a2924ae16f6257e4fd19efcc0 (diff)
first version of zilch
Diffstat (limited to 'src/zeroscript/AppBundle.zig')
-rw-r--r--src/zeroscript/AppBundle.zig49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/zeroscript/AppBundle.zig b/src/zeroscript/AppBundle.zig
deleted file mode 100644
index 1d4ebb9..0000000
--- a/src/zeroscript/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, zeroscript_mod: *std.Build.Module) @This() {
- const module = b.addModule("site", .{
- .root_source_file = options.root_source_file,
- .target = options.target,
- .imports = &.{ .{ .name = "zeroscript", .module = zeroscript_mod } },
- });
-
- const wasm_module = b.createModule(.{
- .root_source_file = options.root_source_file,
- .target = b.resolveTargetQuery(.{
- .cpu_arch = .wasm32,
- .os_tag = .freestanding,
- }),
- .imports = &.{ .{ .name = "zeroscript", .module = zeroscript_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();
-}