Files
externals/src/rxcpp/build_rxcpp.ps1
T
2017-08-07 17:06:36 -04:00

22 lines
511 B
PowerShell

$rxcpp = "rxcpp-4.0.0"
$root = Resolve-Path "../.."
$work = Join-Path $root "work"
$src = Join-Path $root src
$target = Join-Path $root "windows"
Push-Location
if (Test-Path $work) {
Remove-Item -Force -Recurse $work
}
if (Test-Path $target\include\rxcpp) {
Remove-Item -Force -Recurse $target\include\rxcpp
}
# expand
unzip -q $src\rxcpp\$rxcpp -d $work
Copy-Item $work\$rxcpp\Rx\v2\src\rxcpp $target\include\rxcpp -Recurse
cd $root
Remove-Item -Force -Recurse $work
Pop-Location