mirror of
https://github.com/bdnugget/zig-gamedev.git
synced 2026-11-07 09:07:31 +00:00
Added submodule with Dawn binaries (experimental).
This commit is contained in:
1 parent
dabca537d0
commit
0b6eed4d80
4 files changed
+13
No files matched your search
@@ -34,6 +34,7 @@
|
||||
!.vimrc
|
||||
!.gitkeep
|
||||
|
||||
!/libs/zgpu/libs/**
|
||||
!/libs/zwin32/bin/x64/*
|
||||
|
||||
# Ignore some special directories
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
[submodule "libs/zgpu/libs/dawn"]
|
||||
path = libs/zgpu/libs/dawn
|
||||
url = https://github.com/michal-z/dawn-bin
|
||||
branch = main
|
||||
@@ -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
+1
Submodule libs/zgpu/libs/dawn added at 7ba2a7a9fa.
Reference in new issue
Block a user