Update deps to not copy dlls if odin wasn't updated.

This commit is contained in:
Edward R. Gonzalez 2024-01-25 11:31:21 -05:00
parent c9a10c3b41
commit 0c2a95c796
2 changed files with 12 additions and 6 deletions

View File

@ -125,7 +125,7 @@ render :: proc()
draw_text( "Monitor : %v", rl.GetMonitorName(0) )
draw_text( "Screen Width : %v", rl.GetScreenWidth() )
draw_text( "Screen Height: %v", rl.GetScreenHeight() )
draw_text( "HOT RELOAD BITCHES" )
// draw_text( "HOT RELOAD BITCHES" )
draw_debug_text_y = 50
}

View File

@ -34,6 +34,8 @@ if (Test-Path -Path $path_odin)
push-location $path_odin
& .\build.bat
pop-location
$binaries_dirty = true
}
else
{
@ -48,16 +50,20 @@ else
push-location $path_odin
& .\build.bat
pop-location
$binaries_dirty = true
}
$path_vendor = join-path $path_odin 'vendor'
$path_vendor_raylib = join-path $path_vendor 'raylib'
$path_raylib_dlls = join-path $path_vendor_raylib 'windows'
$third_party_dlls = Get-ChildItem -Path $path_raylib_dlls -Filter '*.dll'
foreach ($dll in $third_party_dlls) {
$destination = join-path $path_build $dll.Name
Copy-Item $dll.FullName -Destination $destination -Force
if ( $binaries_dirty )
{
$third_party_dlls = Get-ChildItem -Path $path_raylib_dlls -Filter '*.dll'
foreach ($dll in $third_party_dlls) {
$destination = join-path $path_build $dll.Name
Copy-Item $dll.FullName -Destination $destination -Force
}
}
pop-location