Skip to content

Commit

Permalink
commit build.zig and zon
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnite committed May 17, 2024
1 parent 957deba commit 28f489e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
33 changes: 33 additions & 0 deletions showcase/build.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const std = @import("std");
//const zine = @import("zine");

const root = @import("root");
// cart imports
const carts = .{
.{ "zeroman", @import("zeroman") },
//.{ "blobs", @import("blobs") },
};

pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});

inline for (carts) |cart| {
const cart_name = cart[0];
const cart_import = cart[1];
_ = cart_import.author_name;
if (@hasDecl(cart_import, "author_handle"))
_ = cart_import.author_handle;
_ = cart_import.cart_title;
_ = cart_import.description;
const dep = b.dependency(cart_name, .{ .optimize = optimize });
b.getInstallStep().dependOn(dep.builder.getInstallStep());
}

//zine.addWebsite(b, .{
// .title = "SYCL Badge Showcase",
// .host_url = "https://sample.com",
// .layouts_dir_path = "layouts",
// .content_dir_path = "content",
// .static_dir_path = "static",
//}) catch unreachable;
}
22 changes: 22 additions & 0 deletions showcase/build.zig.zon
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.{
.name = "sycl-badge/showcase",
.version = "0.0.0",
.dependencies = .{
.sycl_badge = .{
.path = "..",
},
//.zine = .{
// .path = "../../zine",
//},

// Carts go here
.zeroman = .{ .path = "carts/zeroman" },
.blobs = .{ .path = "carts/blobs" },
},
.paths = .{
"README.md",
"build.zig.zon",
"build.zig",
"carts",
},
}

0 comments on commit 28f489e

Please sign in to comment.