Commit 9164077c authored by Nicolas Fella's avatar Nicolas Fella Committed by Aleix Pol Gonzalez

[android] Allow building local sources with build-cmake-native

parent 7ba069a8
Pipeline #20058 skipped with stage
......@@ -9,16 +9,21 @@ shift
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR/git-clone-macro.sh
git-clone $name $repo
# Check whether repo is a local folder, try to clone it otherwise
if [ -d $repo ]; then
srcdir=$repo
else
source $DIR/git-clone-macro.sh
git-clone $name $repo
srcdir=`pwd`/src/$name
fi
srcdir="`pwd`/src"
BUILDROOT=${BUILD:-build}
mkdir $BUILDROOT/$name -p
pushd $BUILDROOT/$name
cmake "$srcdir"/$name/$EXTRA_CMAKE_SUBDIR $@
cmake "$srcdir"/$EXTRA_CMAKE_SUBDIR $@
cmake --build . -- install -j`nproc`
popd
if [ "${PERSIST-1}" -eq 1 ]; then
......
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