polish
This commit is contained in:
parent
f3fc86ac3d
commit
eb9ef541e7
2 changed files with 152 additions and 105 deletions
11
build.zig
11
build.zig
|
|
@ -28,8 +28,15 @@ pub fn build(b: *Build) !void {
|
|||
odin_exec.addArg("-define:TRACY_ENABLE=true");
|
||||
odin_exec.addArg(b.fmt("-define:TRACY_CALLSTACK={}", .{tracy_callstack}));
|
||||
}
|
||||
const dancer_static_lib = odin_exec.addPrefixedOutputFileArg("-out:", switch (target.result.abi) {
|
||||
else => "game.a",
|
||||
odin_exec.addArg(b.fmt("-target:{s}", .{switch (target.result.os.tag) {
|
||||
.linux => "linux_amd64",
|
||||
.windows => "windows_amd64",
|
||||
else => return error.OsNotSupported,
|
||||
}}));
|
||||
const dancer_static_lib = odin_exec.addPrefixedOutputFileArg("-out:", switch (target.result.os.tag) {
|
||||
.linux => "game.a",
|
||||
.windows => "game.obj",
|
||||
else => return error.OsNotSupported,
|
||||
});
|
||||
odin_exec.addDirectoryArg(b.path(switch (target.result.cpu.arch) {
|
||||
.wasm32, .wasm64 => "src/main_web",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue