all: update to latest mach-glfw build API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
a59531ee84
commit
f4c72c3f27
5 changed files with 31 additions and 11 deletions
18
build.zig
18
build.zig
|
|
@ -1,19 +1,23 @@
|
|||
const std = @import("std");
|
||||
const builtin = @import("builtin");
|
||||
const glfw = @import("libs/glfw/build.zig");
|
||||
const freetype = @import("libs/freetype/build.zig");
|
||||
pub const gpu_dawn = @import("libs/gpu-dawn/sdk.zig").Sdk(.{
|
||||
const glfw = @import("libs/glfw/sdk.zig").Sdk(.{
|
||||
// TODO(build-system): This cannot be imported with the Zig package manager
|
||||
// error: TarUnsupportedFileType
|
||||
.xcode_frameworks = @import("libs/mach-gpu-dawn/libs/xcode-frameworks/build.zig"),
|
||||
});
|
||||
const gpu = @import("libs/gpu/sdk.zig").Sdk(.{
|
||||
.gpu_dawn = gpu_dawn,
|
||||
.xcode_frameworks = @import("libs/gpu-dawn/libs/xcode-frameworks/build.zig"),
|
||||
});
|
||||
const sysaudio = @import("libs/sysaudio/sdk.zig").Sdk(.{
|
||||
// TODO(build-system): This cannot be imported with the Zig package manager
|
||||
// error: TarUnsupportedFileType
|
||||
.xcode_frameworks = @import("libs/mach-gpu-dawn/libs/xcode-frameworks/build.zig"),
|
||||
.xcode_frameworks = @import("libs/gpu-dawn/libs/xcode-frameworks/build.zig"),
|
||||
});
|
||||
pub const gpu_dawn = @import("libs/gpu-dawn/sdk.zig").Sdk(.{
|
||||
// TODO(build-system): This cannot be imported with the Zig package manager
|
||||
// error: TarUnsupportedFileType
|
||||
.xcode_frameworks = @import("libs/gpu-dawn/libs/xcode-frameworks/build.zig"),
|
||||
});
|
||||
const gpu = @import("libs/gpu/sdk.zig").Sdk(.{
|
||||
.gpu_dawn = gpu_dawn,
|
||||
});
|
||||
const core = @import("libs/core/sdk.zig").Sdk(.{
|
||||
.gpu = gpu,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
const std = @import("std");
|
||||
const builtin = @import("builtin");
|
||||
const glfw = @import("libs/mach-glfw/build.zig");
|
||||
const glfw = @import("libs/mach-glfw/sdk.zig").Sdk(.{
|
||||
// TODO(build-system): This cannot be imported with the Zig package manager
|
||||
// error: TarUnsupportedFileType
|
||||
.xcode_frameworks = @import("libs/mach-gpu-dawn/libs/xcode-frameworks/build.zig"),
|
||||
});
|
||||
const gpu_dawn = @import("libs/mach-gpu-dawn/sdk.zig").Sdk(.{
|
||||
// TODO(build-system): This cannot be imported with the Zig package manager
|
||||
// error: TarUnsupportedFileType
|
||||
|
|
|
|||
|
|
@ -54,7 +54,11 @@ Then in your `build.zig` add:
|
|||
|
||||
```zig
|
||||
...
|
||||
const glfw = @import("libs/mach-glfw/build.zig");
|
||||
const glfw = @import("libs/mach-glfw/sdk.zig").Sdk(.{
|
||||
// TODO(build-system): This cannot be imported with the Zig package manager
|
||||
// error: TarUnsupportedFileType
|
||||
.xcode_frameworks = @import("libs/mach-glfw/libs/xcode-frameworks/build.zig"),
|
||||
});
|
||||
|
||||
pub fn build(b: *Build) !void {
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
const std = @import("std");
|
||||
const Build = std.Build;
|
||||
const glfw = @import("libs/mach-glfw/build.zig");
|
||||
const glfw = @import("libs/mach-glfw/sdk.zig").Sdk(.{
|
||||
// TODO(build-system): This cannot be imported with the Zig package manager
|
||||
// error: TarUnsupportedFileType
|
||||
.xcode_frameworks = @import("libs/xcode-frameworks/build.zig"),
|
||||
});
|
||||
const gpu_dawn_sdk = @import("sdk.zig");
|
||||
|
||||
pub fn build(b: *Build) !void {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
const std = @import("std");
|
||||
const glfw = @import("libs/mach-glfw/build.zig");
|
||||
const glfw = @import("libs/mach-glfw/sdk.zig").Sdk(.{
|
||||
// TODO(build-system): This cannot be imported with the Zig package manager
|
||||
// error: TarUnsupportedFileType
|
||||
.xcode_frameworks = @import("libs/mach-gpu-dawn/libs/xcode-frameworks/build.zig"),
|
||||
});
|
||||
const gpu_dawn_sdk = @import("libs/mach-gpu-dawn/sdk.zig");
|
||||
const gpu_sdk = @import("sdk.zig");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue