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 78922b64ea
commit 55efe08bdf
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ pub fn package(
.sdl2_opengl3 => { .sdl2_opengl3 => {
zgui_c_cpp.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_sdl.cpp", cflags); zgui_c_cpp.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_sdl.cpp", cflags);
zgui_c_cpp.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_opengl3.cpp", cflags); zgui_c_cpp.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_opengl3.cpp", cflags);
zgui_c_cpp.linkSystemLibrary("SDL2");
}, },
.no_backend => {}, .no_backend => {},
} }