Added submodule with Dawn binaries (experimental).

This commit is contained in:
Michal Ziulek committed 2022-09-18 12:53:58 +02:00
1 parent dabca537d0
commit 0b6eed4d80
4 files changed
+13

No files matched your search

+1
View File
@@ -34,6 +34,7 @@
!.vimrc
!.gitkeep
!/libs/zgpu/libs/**
!/libs/zwin32/bin/x64/*
# Ignore some special directories
+4
View File
@@ -0,0 +1,4 @@
[submodule "libs/zgpu/libs/dawn"]
path = libs/zgpu/libs/dawn
url = https://github.com/michal-z/dawn-bin
branch = main
+7
View File
@@ -3,6 +3,13 @@ const std = @import("std");
pub fn build(b: *std.build.Builder) void {
ensureGitLfs(b.allocator);
{
var child = std.ChildProcess.init(&.{ "git", "submodule", "update", "--init", "--remote" }, b.allocator);
child.cwd = thisDir();
child.stderr = std.io.getStdErr();
child.stdout = std.io.getStdOut();
_ = child.spawnAndWait() catch unreachable;
}
var options = Options{
.build_mode = b.standardReleaseOptions(),
Submodule libs/zgpu/libs/dawn added at 7ba2a7a9fa.