copy dlls on windows

This commit is contained in:
Srayan Jana
2025-08-31 18:21:20 -07:00
parent 8e4a63a5f2
commit 355fd438c5

View File

@@ -18,6 +18,10 @@ target sdl.o pkg : FilePath := do
target libleansdl pkg : FilePath := do target libleansdl pkg : FilePath := do
let sdlO sdl.o.fetch let sdlO sdl.o.fetch
let name := nameToStaticLib "leansdl" let name := nameToStaticLib "leansdl"
if Platform.isWindows then
-- manually copy the DLLs we need to .lake/build/bin/ for the game to work
copyFile "vendor/SDL/build/SDL3.dll" ".lake/build/bin/SDL3.DLL"
copyFile "vendor/SDL_image/build/SDL3_image.dll" ".lake/build/bin/SDL3_image.DLL"
buildStaticLib (pkg.staticLibDir / name) #[sdlO] buildStaticLib (pkg.staticLibDir / name) #[sdlO]
lean_lib SDL where lean_lib SDL where