Add dist directory for gathering builds

This commit is contained in:
2017-05-16 00:17:22 -05:00
parent 2c43777477
commit 6ca6ae82ba
4 changed files with 10 additions and 5 deletions

View File

@ -15,15 +15,17 @@ fi
if [[ $BUILD_TYPE == debug ]]; then
buildTypeArgs="-DUSE_ASAN=ON -DCMAKE_BUILD_TYPE=Debug"
buildDir="build/${TARGET}-debug"
else
elif [[ $BUILD_TYPE == release ]]; then
buildTypeArgs="-DCMAKE_BUILD_TYPE=Release"
buildDir="build/${TARGET}-release"
fi
buildDir="build/${TARGET}-${BUILD_TYPE}"
distDir="../../dist/${TARGET}-${BUILD_TYPE}"
mkdir -p $buildDir
pushd $buildDir
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_INSTALL_PREFIX="$distDir" \
$buildTypeArgs \
$toolchain \
$project