ci: uhhhhhh????

This commit is contained in:
Rekai Nyangadzayi Musuka 2024-03-06 15:59:34 -06:00
parent d79cee7e2b
commit 8629429f52
1 changed files with 2 additions and 2 deletions

View File

@ -39,14 +39,14 @@ pub fn build(b: *std.Build) void {
// https://github.com/MasterQ32/SDL.zig // https://github.com/MasterQ32/SDL.zig
const sdk = Sdk.init(b, null); const sdk = Sdk.init(b, null);
sdk.link(exe, .static); sdk.link(exe, .dynamic);
exe.root_module.addImport("sdl2", sdk.getNativeModule()); exe.root_module.addImport("sdl2", sdk.getNativeModule());
// https://git.musuka.dev/paoda/zgui // https://git.musuka.dev/paoda/zgui
// .shared option should stay in sync with SDL.zig call above where true == .dynamic, and false == .static // .shared option should stay in sync with SDL.zig call above where true == .dynamic, and false == .static
const zgui_pkg = zgui.package(b, target, optimize, .{ .options = .{ .backend = .sdl2_opengl3 } }); const zgui_pkg = zgui.package(b, target, optimize, .{ .options = .{ .backend = .sdl2_opengl3 } });
zgui_pkg.link(exe); zgui_pkg.link(exe);
sdk.link(zgui_pkg.zgui_c_cpp, .static); sdk.link(zgui_pkg.zgui_c_cpp, .dynamic);
b.installArtifact(exe); b.installArtifact(exe);