webgpu: add libs/mach-glfw
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
b2aca7fdde
commit
d7be41e35f
3 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
const Builder = @import("std").build.Builder;
|
const Builder = @import("std").build.Builder;
|
||||||
const dawn = @import("build_dawn.zig");
|
const dawn = @import("build_dawn.zig");
|
||||||
|
|
||||||
const glfw = @import("./libs/dawn/mach-old/glfw/build.zig"); // TODO: mach-old path
|
const glfw = @import("libs/mach-glfw/build.zig");
|
||||||
|
|
||||||
pub fn build(b: *Builder) void {
|
pub fn build(b: *Builder) void {
|
||||||
const mode = b.standardReleaseOptions();
|
const mode = b.standardReleaseOptions();
|
||||||
|
|
@ -24,7 +24,7 @@ pub fn build(b: *Builder) void {
|
||||||
dawn_example.setTarget(target);
|
dawn_example.setTarget(target);
|
||||||
dawn.link(b, dawn_example, .{});
|
dawn.link(b, dawn_example, .{});
|
||||||
glfw.link(b, dawn_example, .{.system_sdk = .{.set_sysroot = false}});
|
glfw.link(b, dawn_example, .{.system_sdk = .{.set_sysroot = false}});
|
||||||
dawn_example.addPackagePath("glfw", "./libs/dawn/mach-old/glfw/src/main.zig"); // TODO: mach-old path
|
dawn_example.addPackagePath("glfw", "libs/mach-glfw/src/main.zig");
|
||||||
dawn_example.addIncludeDir("libs/dawn/out/Debug/gen/src/include");
|
dawn_example.addIncludeDir("libs/dawn/out/Debug/gen/src/include");
|
||||||
dawn_example.addIncludeDir("libs/dawn/out/Debug/gen/src");
|
dawn_example.addIncludeDir("libs/dawn/out/Debug/gen/src");
|
||||||
dawn_example.addIncludeDir("libs/dawn/src/include");
|
dawn_example.addIncludeDir("libs/dawn/src/include");
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const Builder = std.build.Builder;
|
const Builder = std.build.Builder;
|
||||||
//const glfw = @import("../glfw/build.zig");
|
const glfw = @import("libs/mach-glfw/build.zig");
|
||||||
const glfw = @import("./libs/dawn/mach-old/glfw/build.zig"); // TODO: mach-old path
|
|
||||||
|
|
||||||
pub fn build(b: *Builder) void {
|
pub fn build(b: *Builder) void {
|
||||||
const mode = b.standardReleaseOptions();
|
const mode = b.standardReleaseOptions();
|
||||||
|
|
@ -18,7 +17,7 @@ pub fn build(b: *Builder) void {
|
||||||
example.setTarget(target);
|
example.setTarget(target);
|
||||||
link(b, example, .{});
|
link(b, example, .{});
|
||||||
glfw.link(b, example, .{.system_sdk = .{.set_sysroot = false}});
|
glfw.link(b, example, .{.system_sdk = .{.set_sysroot = false}});
|
||||||
example.addPackagePath("glfw", "./libs/dawn/mach-old/glfw/src/main.zig"); // TODO: mach-old path
|
example.addPackagePath("glfw", "libs/mach-glfw/src/main.zig");
|
||||||
example.addIncludeDir("out/Debug/gen/src/include");
|
example.addIncludeDir("out/Debug/gen/src/include");
|
||||||
example.addIncludeDir("out/Debug/gen/src");
|
example.addIncludeDir("out/Debug/gen/src");
|
||||||
example.addIncludeDir("examples");
|
example.addIncludeDir("examples");
|
||||||
|
|
|
||||||
1
webgpu/libs/mach-glfw
Symbolic link
1
webgpu/libs/mach-glfw
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
../../glfw
|
||||||
Loading…
Add table
Add a link
Reference in a new issue