chore: explicitly link SDL2

TODO: What happens on Windows? macOS?
This commit is contained in:
Rekai Nyangadzayi Musuka 2023-03-10 22:04:35 -06:00
parent 12e480f30d
commit ceca3dd660
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ pub fn link(exe: *std.Build.CompileStep, options: Options) void {
exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_opengl3.cpp", cflags); exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_opengl3.cpp", cflags);
}, },
.sdl2_opengl3 => { .sdl2_opengl3 => {
exe.linkSystemLibrary("SDL2");
exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_sdl.cpp", cflags); exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_sdl.cpp", cflags);
exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_opengl3.cpp", cflags); exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_opengl3.cpp", cflags);
}, },