1+ $ErrorActionPreference = ' Stop'
2+
13$cwd = $PSScriptRoot
24
35$configs = @ (' Debug' , ' Release' )
@@ -13,14 +15,13 @@ foreach($buildConfig in $configs)
1315 $biglibs_location = (Convert-Path " $cwd \..\..\..\..\..\..\big_libs\RhinoCycles" )
1416 $biglibs_kernel_location = (Convert-Path " $biglibs_location \lib" )
1517 $biglibs_source_location = (Convert-Path " $biglibs_location \ccycles\source" )
18+ New-Item - Type Directory - Force " $biglibs_location \ccycles\win\$lowerconfig "
1619 $biglibs_dll_location = (Convert-Path " $biglibs_location \ccycles\win\$lowerconfig " )
1720 $local_build = (Convert-Path " $cwd \build_$lowerconfig " )
1821 $local_install = (Convert-Path " $cwd \install_$lowerconfig " )
1922 $local_install_release = (Convert-Path " $cwd \install_release" )
2023 $local_install_debug = (Convert-Path " $cwd \install_debug" )
2124
22- # Remove-Item -Recurse -Force .\install
23-
2425 Push-Location $cwd
2526
2627 .\make_rhino.bat $lowerconfig all
@@ -88,15 +89,6 @@ foreach($buildConfig in $configs)
8889 $_.Name.ToLower () -notmatch ' o_2' `
8990 -and $_.Name.ToLower () -notmatch ' loader.dll'
9091 }
91- # add back openvdb, since that is always linked as openvdb.dll
92- $openvdb = (Convert-Path " $local_install_release \ccycles\openvdb.dll" )
93- $dependencies += Get-Item $openvdb
94- # also need tbb12.dll
95- $tbb12 = (Convert-Path " $local_install_release \ccycles\tbb12.dll" )
96- $dependencies += Get-Item $tbb12
97- # and OpenColorIO_d_2_4.dll
98- $oiio = (Convert-Path " $local_install_release \ccycles\OpenColorIO_d_2_4.dll" )
99- $dependencies += Get-Item $oiio
10092 }
10193 else {
10294 $dependencies = $deps | Where-Object {
@@ -107,12 +99,12 @@ foreach($buildConfig in $configs)
10799 }
108100 }
109101
110- Remove-Item - Recurse - Force " $biglibs_kernel_location \*"
102+ Remove-Item - Confirm - Recurse - Force " $biglibs_kernel_location \*"
111103 Copy-Item - Recurse - Force " $local_install \lib\*" " $biglibs_kernel_location \."
112- Remove-Item - Recurse - Force " $biglibs_source_location \*"
104+ Remove-Item - Confirm - Recurse - Force " $biglibs_source_location \*"
113105 Copy-Item - Recurse - Force " $local_install \source\*" " $biglibs_source_location \."
114106
115- Remove-Item - Recurse - Force " $biglibs_dll_location \*"
107+ Remove-Item - Confirm - Recurse - Force " $biglibs_dll_location \*"
116108 foreach ($dependency in $dependencies )
117109 {
118110 Write-Host " ${buildConfig} : Copying $dependency "
0 commit comments