45 lines
1.4 KiB
PowerShell
Executable File
45 lines
1.4 KiB
PowerShell
Executable File
$tbb = "tbb-4.4.6"
|
|
$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
|
|
}
|
|
|
|
Remove-Item $target\lib\debug\*tbb*.*
|
|
Remove-Item $target\lib\release\*tbb*.*
|
|
if (Test-Path $target\include\tbb) {
|
|
Remove-Item -Force -Recurse $target\include\tbb
|
|
}
|
|
|
|
# expand
|
|
unzip -q $src\tbb\$tbb -d $work
|
|
|
|
# copy headers
|
|
Copy-Item $work\$tbb\include\tbb $target\include\tbb -Recurse
|
|
|
|
# Copy fixed build files
|
|
Copy-Item $src\tbb\vs2017\*.* $work\$tbb\build\vs2010
|
|
|
|
# build
|
|
cd $work\$tbb\build\vs2010
|
|
msbuild makefile.sln /p:Configuration=Debug-MT
|
|
Copy-Item .\x64\Debug-MT\tbb_debug.lib $target\lib\Debug\libtbb.lib
|
|
Copy-Item .\x64\Debug-MT\tbbmalloc_debug.lib $target\lib\Debug\libtbbmalloc.lib
|
|
Copy-Item .\x64\Debug-MT\tbbmalloc_proxy_debug.lib $target\lib\Debug\libtbbmalloc_proxy.lib
|
|
Copy-Item .\x64\tbb\Debug-MT\*.pdb $target\lib\Debug
|
|
Copy-Item .\x64\tbbmalloc\Debug-MT\*.pdb $target\lib\Debug
|
|
Copy-Item .\x64\tbbmalloc_proxy\Debug-MT\*.pdb $target\lib\Debug
|
|
|
|
msbuild makefile.sln /p:Configuration=Release-MT
|
|
Copy-Item .\x64\Release-MT\tbb.lib $target\lib\Release\libtbb.lib
|
|
Copy-Item .\x64\Release-MT\tbbmalloc.lib $target\lib\Release\libtbbmalloc.lib
|
|
Copy-Item .\x64\Release-MT\tbbmalloc_proxy.lib $target\lib\Release\libtbbmalloc_proxy.lib
|
|
|
|
cd $root
|
|
Remove-Item -Force -Recurse $work
|
|
Pop-Location
|