create bin directory if it doesn't already exist
This commit is contained in:
@@ -19,9 +19,13 @@ target libleansdl pkg : FilePath := do
|
|||||||
let sdlO ← sdl.o.fetch
|
let sdlO ← sdl.o.fetch
|
||||||
let name := nameToStaticLib "leansdl"
|
let name := nameToStaticLib "leansdl"
|
||||||
-- manually copy the DLLs we need to .lake/build/bin/ for the game to work
|
-- manually copy the DLLs we need to .lake/build/bin/ for the game to work
|
||||||
|
IO.FS.createDirAll ".lake/build/bin/"
|
||||||
if Platform.isWindows then
|
if Platform.isWindows then
|
||||||
copyFile "vendor/SDL/build/SDL3.dll" ".lake/build/bin/SDL3.DLL"
|
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"
|
copyFile "vendor/SDL_image/build/SDL3_image.dll" ".lake/build/bin/SDL3_image.DLL"
|
||||||
|
let lakeBinariesDir ← getLakeLibDir
|
||||||
|
println! "Copying Lake DLLs from {lakeBinariesDir}"
|
||||||
|
|
||||||
buildStaticLib (pkg.staticLibDir / name) #[sdlO]
|
buildStaticLib (pkg.staticLibDir / name) #[sdlO]
|
||||||
|
|
||||||
lean_lib SDL where
|
lean_lib SDL where
|
||||||
|
|||||||
Reference in New Issue
Block a user