feat(windows): fix windows bugs
This commit is contained in:
16
build.zig
16
build.zig
@@ -4,6 +4,16 @@ pub fn build(b: *std.Build) void {
|
||||
const target = b.standardTargetOptions(.{});
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const sandbox_mod = b.createModule(.{
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
const sandbox_exe = b.addExecutable(.{
|
||||
.name = "sandbox_ftime",
|
||||
.root_module = sandbox_mod,
|
||||
});
|
||||
|
||||
const console_exe_mod = b.createModule(.{
|
||||
.root_source_file = b.path("src/console_main.zig"),
|
||||
.target = target,
|
||||
@@ -41,6 +51,9 @@ pub fn build(b: *std.Build) void {
|
||||
gui_exe.root_module.addImport("dvui", dvui.module("dvui_raylib"));
|
||||
b.installArtifact(gui_exe);
|
||||
|
||||
const run_sandbox_cmd = b.addRunArtifact(sandbox_exe);
|
||||
run_sandbox_cmd.step.dependOn(b.getInstallStep());
|
||||
|
||||
const run_console_cmd = b.addRunArtifact(console_exe);
|
||||
run_console_cmd.step.dependOn(b.getInstallStep());
|
||||
|
||||
@@ -52,6 +65,9 @@ pub fn build(b: *std.Build) void {
|
||||
run_gui_cmd.addArgs(args);
|
||||
}
|
||||
|
||||
const run_sandbox_step = b.step("run:s", "Run the sandbox");
|
||||
run_sandbox_step.dependOn(&run_sandbox_cmd.step);
|
||||
|
||||
const run_console_step = b.step("run:console", "Run the console app");
|
||||
run_console_step.dependOn(&run_console_cmd.step);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user