diff options
Diffstat (limited to 'src/sketch/root.zig')
| -rw-r--r-- | src/sketch/root.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sketch/root.zig b/src/sketch/root.zig index cb20ab9..bc09add 100644 --- a/src/sketch/root.zig +++ b/src/sketch/root.zig @@ -317,6 +317,7 @@ pub fn exportSketch(comptime App: type) void { @export(&G.update, .{ .name = names.update }); @export(&G.draw, .{ .name = names.draw }); @export(&G.command, .{ .name = names.command }); + @export(&G.build, .{ .name = "sketch_build" }); } pub fn Glue(comptime App: type) type { @@ -325,6 +326,8 @@ pub fn Glue(comptime App: type) type { pub const Session = if (@hasDecl(App, "Session")) App.Session else struct {}; pub const Store = if (@hasDecl(App, "Store")) App.Store else struct {}; + const build: [abi.build.len:0]u8 = abi.build.*; + pub const description: abi.Info = .{ .abi = abi.hash, .name = if (@hasDecl(App, "name")) App.name else "sketch", |
