From 0c2a95c796fe4a7c16e318f37c5c8de209b893f3 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Thu, 25 Jan 2024 11:31:21 -0500 Subject: [PATCH] Update deps to not copy dlls if odin wasn't updated. --- code/api.odin | 2 +- scripts/update_deps.ps1 | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/code/api.odin b/code/api.odin index 6a178b4..a902b74 100644 --- a/code/api.odin +++ b/code/api.odin @@ -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 } diff --git a/scripts/update_deps.ps1 b/scripts/update_deps.ps1 index 4f9dbc2..4b57d09 100644 --- a/scripts/update_deps.ps1 +++ b/scripts/update_deps.ps1 @@ -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