25 lines
542 B
Bash
Executable File
25 lines
542 B
Bash
Executable File
#!/bin/bash
|
|
|
|
tbb="tbb-4.4.6"
|
|
root=`realpath ../..`
|
|
work=$root/work
|
|
src=$root/src
|
|
target=$root/linux
|
|
|
|
if [ -d "$work" ]; then rm -Rf $work; fi
|
|
mkdir $work
|
|
|
|
rm -f $target/lib/Debug/libtbb*
|
|
rm -f $target/lib/Release/libtbb*
|
|
rm -rf $target/include/tbb
|
|
|
|
unzip -q $src/tbb/$tbb -d $work
|
|
cp -R $work/$tbb/include/tbb $target/include/
|
|
|
|
cd $work/$tbb
|
|
make -j $(nproc) extra_inc=big_iron.inc tbb
|
|
find -name libtbb_debug.a | xargs -I {} cp {} $target/lib/Debug/libtbb.a
|
|
find -name libtbb.a | xargs -I {} cp {} $target/lib/Release/libtbb.a
|
|
|
|
rm -Rf $work
|