2024-12-10 19:27:35 -08:00
|
|
|
$misc = Join-Path $PSScriptRoot 'helpers/misc.psm1'
|
|
|
|
Import-Module $misc
|
|
|
|
|
|
|
|
$path_root = Get-ScriptRepoRoot
|
2024-12-10 13:38:01 -08:00
|
|
|
$path_base = Join-Path $path_root base
|
|
|
|
$path_base_build = Join-Path $path_base build
|
2024-12-10 19:27:35 -08:00
|
|
|
$path_segmented = Join-Path $path_root gen_segmented
|
|
|
|
$path_segmented_build = Join-Path $path_segmented build
|
|
|
|
$path_segmented_gen = Join-Path $path_segmented gen
|
|
|
|
$path_singleheader = Join-Path $path_root gen_singleheader
|
2023-07-28 00:15:50 -07:00
|
|
|
$path_singleheader_build = Join-Path $path_singleheader build
|
|
|
|
$path_singleheader_gen = Join-Path $path_singleheader gen
|
2024-12-10 19:27:35 -08:00
|
|
|
$path_unreal = Join-Path $path_root gen_unreal_engine
|
2024-12-10 13:38:01 -08:00
|
|
|
$path_unreal_build = Join-Path $path_unreal build
|
|
|
|
$path_unreal_gen = Join-Path $path_unreal gen
|
|
|
|
$path_test = Join-Path $path_root test
|
|
|
|
$path_test_build = Join-Path $path_test build
|
|
|
|
$path_test_gen = Join-Path $path_test gen
|
|
|
|
$path_x64 = Join-Path $path_root x64
|
|
|
|
$path_release = Join-Path $path_root release
|
|
|
|
|
2024-12-10 19:27:35 -08:00
|
|
|
if ( Test-Path $path_base_build) {
|
|
|
|
Remove-Item $path_base_build -Recurse -Verbose
|
|
|
|
}
|
|
|
|
if ( Test-Path $path_segmented_build) {
|
|
|
|
Remove-Item $path_segmented_build -Recurse -Verbose
|
2023-07-24 15:56:15 -07:00
|
|
|
}
|
2024-12-10 19:27:35 -08:00
|
|
|
if ( Test-Path $path_segmented_gen ) {
|
|
|
|
Remove-Item $path_segmented_gen -Recurse -Verbose
|
2023-07-28 00:15:50 -07:00
|
|
|
}
|
2024-12-10 13:38:01 -08:00
|
|
|
if ( Test-Path $path_singleheader_build) {
|
2024-12-10 19:27:35 -08:00
|
|
|
Remove-Item $path_singleheader_build -Recurse -Verbose
|
2023-04-01 19:21:46 -07:00
|
|
|
}
|
2024-12-10 13:38:01 -08:00
|
|
|
if ( Test-Path $path_singleheader_gen ) {
|
2024-12-10 19:27:35 -08:00
|
|
|
Remove-Item $path_singleheader_gen -Recurse -Verbose
|
|
|
|
}
|
|
|
|
if ( Test-Path $path_unreal_build ) {
|
|
|
|
Remove-Item $path_unreal_build -Recurse -Verbose
|
2023-07-28 00:15:50 -07:00
|
|
|
}
|
2024-12-10 19:27:35 -08:00
|
|
|
if ( Test-Path $path_unreal_gen ) {
|
|
|
|
Remove-Item $path_unreal_gen -Recurse -Verbose
|
2024-12-10 13:38:01 -08:00
|
|
|
}
|
|
|
|
if ( Test-Path $path_test_build ) {
|
2024-12-10 19:27:35 -08:00
|
|
|
Remove-Item $path_test_build -Recurse -Verbose
|
2023-04-01 19:21:46 -07:00
|
|
|
}
|
2024-12-10 13:38:01 -08:00
|
|
|
if ( Test-Path $path_test_gen ) {
|
2024-12-10 19:27:35 -08:00
|
|
|
Remove-Item $path_test_gen -Recurse -Verbose
|
2023-04-01 22:07:44 -07:00
|
|
|
}
|
2024-12-10 13:38:01 -08:00
|
|
|
if ( Test-Path $path_x64) {
|
2024-12-10 19:27:35 -08:00
|
|
|
Remove-Item $path_x64 -Recurse -Verbose
|
2023-07-25 12:12:51 -07:00
|
|
|
}
|
2024-12-10 13:38:01 -08:00
|
|
|
if ( Test-Path $path_release ) {
|
2024-12-10 19:27:35 -08:00
|
|
|
Remove-Item $path_release -Recurse -Verbose
|
2023-08-09 15:47:59 -07:00
|
|
|
}
|