2024-01-22 18:38:09 -08:00
|
|
|
write-host 'Updating Dependencies..'
|
|
|
|
|
|
|
|
$path_root = git rev-parse --show-toplevel
|
|
|
|
$path_code = join-path $path_root 'code'
|
|
|
|
$path_build = join-path $path_root 'build'
|
|
|
|
$path_thirdparty = join-path $path_root 'thirdparty'
|
2024-03-19 15:52:33 -07:00
|
|
|
$path_toolchain = join-path $path_root 'toolchain'
|
2024-01-22 18:38:09 -08:00
|
|
|
|
2024-03-19 15:52:33 -07:00
|
|
|
$url_backtrace_repo = 'https://github.com/Ed94/back.git'
|
2024-05-28 22:17:03 -07:00
|
|
|
$url_freetype = 'https://github.com/Ed94/odin-freetype.git'
|
2024-07-02 10:37:17 -07:00
|
|
|
$url_harfbuzz = 'https://github.com/Ed94/harfbuzz-odin.git'
|
2024-03-19 15:52:33 -07:00
|
|
|
$url_ini_parser = 'https://github.com/laytan/odin-ini-parser.git'
|
|
|
|
$url_odin_repo = 'https://github.com/Ed94/Odin.git'
|
2024-05-19 11:04:54 -07:00
|
|
|
$url_sokol = 'https://github.com/Ed94/sokol-odin.git'
|
2024-05-28 22:17:03 -07:00
|
|
|
$url_sokol_tools = 'https://github.com/floooh/sokol-tools-bin.git'
|
2024-05-19 11:04:54 -07:00
|
|
|
|
2024-03-19 15:52:33 -07:00
|
|
|
$path_backtrace = join-path $path_thirdparty 'backtrace'
|
2024-06-02 14:29:44 -07:00
|
|
|
$path_freetype = join-path $path_thirdparty 'freetype'
|
|
|
|
$path_harfbuzz = join-path $path_thirdparty 'harfbuzz'
|
2024-03-19 15:52:33 -07:00
|
|
|
$path_ini_parser = join-path $path_thirdparty 'ini'
|
|
|
|
$path_odin = join-path $path_toolchain 'Odin'
|
2024-05-19 11:04:54 -07:00
|
|
|
$path_sokol = join-path $path_thirdparty 'sokol'
|
2024-05-28 22:17:03 -07:00
|
|
|
$path_sokol_tools = join-path $path_thirdparty 'sokol-tools'
|
2024-01-22 18:38:09 -08:00
|
|
|
|
|
|
|
$incremental_checks = Join-Path $PSScriptRoot 'helpers/incremental_checks.ps1'
|
|
|
|
. $incremental_checks
|
|
|
|
|
2024-05-19 11:04:54 -07:00
|
|
|
$misc = join-path $PSScriptRoot 'helpers/misc.ps1'
|
|
|
|
. $misc
|
|
|
|
|
|
|
|
$result = verify-path $path_build
|
|
|
|
$result = verify-path $path_thirdparty
|
|
|
|
$result = verify-path $path_toolchain
|
2024-01-22 18:38:09 -08:00
|
|
|
|
2024-03-19 08:47:40 -07:00
|
|
|
$binaries_dirty = $false
|
2024-01-22 18:38:09 -08:00
|
|
|
|
2024-05-28 22:17:03 -07:00
|
|
|
clone-gitrepo $path_backtrace $url_backtrace_repo
|
|
|
|
clone-gitrepo $path_freetype $url_freetype
|
|
|
|
clone-gitrepo $path_ini_parser $url_ini_parser
|
|
|
|
clone-gitrepo $path_ini_parser $url_ini_parser
|
|
|
|
clone-gitrepo $path_sokol_tools $url_sokol_tools
|
2024-03-19 15:52:33 -07:00
|
|
|
|
2024-06-17 13:56:51 -07:00
|
|
|
Update-GitRepo -path $path_odin -url $url_odin_repo -build_command '.\scripts\build.ps1'
|
|
|
|
Update-GitRepo -path $path_sokol -url $url_sokol -build_command '.\build_windows.ps1'
|
|
|
|
Update-GitRepo -path $path_harfbuzz -url $url_harfbuzz -build_command '.\scripts\build.ps1'
|
|
|
|
|
2024-01-22 18:38:09 -08:00
|
|
|
$path_vendor = join-path $path_odin 'vendor'
|
|
|
|
$path_vendor_raylib = join-path $path_vendor 'raylib'
|
2024-06-11 19:20:19 -07:00
|
|
|
$path_freetype_dlls = join-path $path_freetype 'binaries/release'
|
2024-06-09 18:39:49 -07:00
|
|
|
$path_harfbuzz_dlls = join-path $path_harfbuzz 'lib/win64'
|
2024-01-22 18:38:09 -08:00
|
|
|
$path_raylib_dlls = join-path $path_vendor_raylib 'windows'
|
2024-06-09 18:39:49 -07:00
|
|
|
$path_sokol_dlls = join-path $path_thirdparty 'sokol'
|
2024-01-22 18:38:09 -08:00
|
|
|
|
2024-06-17 13:56:51 -07:00
|
|
|
push-location $path_thirdparty
|
|
|
|
|
2024-03-19 09:18:39 -07:00
|
|
|
if ( $binaries_dirty -or $true )
|
2024-01-25 08:31:21 -08:00
|
|
|
{
|
2024-06-11 19:20:19 -07:00
|
|
|
$third_party_dlls = Get-ChildItem -path $path_harfbuzz_dlls -Filter '*.dll'
|
2024-06-09 18:39:49 -07:00
|
|
|
foreach ($dll in $third_party_dlls) {
|
|
|
|
$destination = join-path $path_build $dll.Name
|
|
|
|
Copy-Item $dll.FullName -Destination $destination -Force
|
|
|
|
}
|
|
|
|
|
2024-05-22 00:28:16 -07:00
|
|
|
$third_party_dlls = Get-ChildItem -Path $path_sokol_dlls -Filter '*.dll'
|
|
|
|
foreach ($dll in $third_party_dlls) {
|
|
|
|
$destination = join-path $path_build $dll.Name
|
|
|
|
Copy-Item $dll.FullName -Destination $destination -Force
|
|
|
|
}
|
2024-01-22 18:38:09 -08:00
|
|
|
}
|
|
|
|
pop-location
|