summaryrefslogtreecommitdiffstats
path: root/tools/buildsteps/android/prepare-depends
blob: b4d02b7a2e38215412f0dff4e423940baf734c7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
XBMC_PLATFORM_DIR=android
. $WORKSPACE/tools/buildsteps/defaultenv

#clean without depends for skipping depends build if possible
#also skip binary addons (pvr, audioencoder) as long as they are deployed in tree
cd $WORKSPACE;git clean -xfd -e "cmake/.last_success_revision" -e "tools/depends" ${DEPLOYED_BINARY_ADDONS}

# if depends path has changed - cleanout everything and do a full rebuild
if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
then
  #clean up the rest too
  cd $WORKSPACE;git clean -xffd
  cd $WORKSPACE/tools/depends/;./bootstrap
fi