core: remove core_platform build option and remove Null.zig
This commit is contained in:
parent
caf297512c
commit
db186847a7
3 changed files with 10 additions and 96 deletions
15
src/Core.zig
15
src/Core.zig
|
|
@ -420,12 +420,17 @@ pub fn detectBackendType(allocator: std.mem.Allocator) !gpu.BackendType {
|
|||
@panic("unknown MACH_GPU_BACKEND type");
|
||||
}
|
||||
|
||||
const Platform = switch (build_options.core_platform) {
|
||||
.wasm => @panic("TODO: support mach.Core WASM platform"),
|
||||
const Platform = switch (builtin.target.os.tag) {
|
||||
.wasi => @panic("TODO: support mach.Core WASM platform"),
|
||||
.ios => @panic("TODO: support mach.Core IOS platform"),
|
||||
.windows => @import("core/Windows.zig"),
|
||||
.linux => @import("core/Linux.zig"),
|
||||
.darwin => @import("core/Darwin.zig"),
|
||||
.null => @import("core/Null.zig"),
|
||||
.linux => blk: {
|
||||
if (builtin.target.abi.isAndroid())
|
||||
@panic("TODO: support mach.Core Android platform");
|
||||
break :blk @import("core/Linux.zig");
|
||||
},
|
||||
.macos => @import("core/Darwin.zig"),
|
||||
else => {},
|
||||
};
|
||||
|
||||
pub const InputState = struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue