Commit 3c8ce6d7 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

android: make it possible to have a separate root directory for builddirs

It's needed for native builds if we're not cleaning them up
parent b04ca519
......@@ -17,8 +17,10 @@ if ! [ -d "$srcdir"/$name ] ; then
mkdir build/$name -p
pushd build/$name
mkdir $BUILDROOT/$name -p
pushd $BUILDROOT/$name
cmake "$srcdir"/$name/$EXTRA_CMAKE_SUBDIR $@
cmake --build . -- install -j`nproc`
......@@ -26,7 +28,7 @@ popd
if [ "$PERSIST" ]; then
echo "leaving the build directory intact"
rm -rf build/$name
rm -rf $BUILDROOT/$name
if [ "$cloned" ]; then
rm -rf src/$name
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment