From 28d6f4be15c681c987ee10803b264bcd88382c4f Mon Sep 17 00:00:00 2001 From: Vivianne Langdon Date: Fri, 8 Jul 2022 01:52:31 -0700 Subject: [PATCH] imgui! --- build.zig | 4 ++++ gyro.lock | 2 ++ gyro.zzz | 10 ++++++++++ 3 files changed, 16 insertions(+) diff --git a/build.zig b/build.zig index bcc3856..07e8f73 100644 --- a/build.zig +++ b/build.zig @@ -6,6 +6,7 @@ const pkgs = @import("deps.zig").pkgs; const build_pkgs = @import("deps.zig").build_pkgs; const build_glfw = build_pkgs.build_glfw; const build_vma = build_pkgs.build_vma; +const build_imgui = build_pkgs.build_imgui; const vkgen = build_pkgs.build_vulkan; pub const ResourceGenStep = struct { @@ -100,6 +101,9 @@ pub fn build(b: *std.build.Builder) void { exe.addPackage(pkgs.vma); build_vma.linkVma(exe, gen.output_file.getPath(), mode, target); + exe.addPackage(pkgs.imgui); + build_imgui.link(exe); + exe.install(); const run_cmd = exe.run(); diff --git a/gyro.lock b/gyro.lock index cfc6466..1b1aec4 100644 --- a/gyro.lock +++ b/gyro.lock @@ -4,3 +4,5 @@ git https://github.com/viviicat/Zig-VMA.git zig-0.10 vma.zig 4eb07330e875fb5109f git https://github.com/Snektron/vulkan-zig.git fdf43d846a4c3ff4d977bd4395898e4e16ca62cf generator/index.zig fdf43d846a4c3ff4d977bd4395898e4e16ca62cf git https://github.com/hexops/mach-glfw.git 99bf7df61b9afe7c80aae29d664a566f42a8db35 build.zig 99bf7df61b9afe7c80aae29d664a566f42a8db35 git https://github.com/viviicat/Zig-VMA.git zig-0.10 build.zig 4eb07330e875fb5109f855ae901f3e21df95c897 +git https://github.com/SpexGuy/Zig-ImGui.git 0a2cfca89de2ef1ff5a346c6e2c29e8b3347d2e3 zig-imgui/imgui.zig 0a2cfca89de2ef1ff5a346c6e2c29e8b3347d2e3 +git https://github.com/SpexGuy/Zig-ImGui.git 0a2cfca89de2ef1ff5a346c6e2c29e8b3347d2e3 zig-imgui/imgui_build.zig 0a2cfca89de2ef1ff5a346c6e2c29e8b3347d2e3 diff --git a/gyro.zzz b/gyro.zzz index 1b71542..607c07b 100644 --- a/gyro.zzz +++ b/gyro.zzz @@ -14,6 +14,11 @@ deps: url: "https://github.com/viviicat/Zig-VMA.git" ref: zig-0.10 root: vma.zig + imgui: + git: + url: "https://github.com/SpexGuy/Zig-ImGui.git" + ref: 0a2cfca89de2ef1ff5a346c6e2c29e8b3347d2e3 + root: zig-imgui/imgui.zig build_deps: build_vulkan: git: @@ -30,3 +35,8 @@ build_deps: url: "https://github.com/viviicat/Zig-VMA.git" ref: zig-0.10 root: build.zig + build_imgui: + git: + url: "https://github.com/SpexGuy/Zig-ImGui.git" + ref: 0a2cfca89de2ef1ff5a346c6e2c29e8b3347d2e3 + root: zig-imgui/imgui_build.zig