aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/linux64/make-binary-addons
blob: beda7297f025a4be7eb3e7b62b40a1c945b51de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
XBMC_PLATFORM_DIR=linux64
. $WORKSPACE/tools/buildsteps/defaultenv

. $WORKSPACE/tools/buildsteps/$XBMC_PLATFORM_DIR/make-native-depends

#clear the build failed file
rm -f $WORKSPACE/project/cmake/$FAILED_BUILD_FILENAME

ALL_BINARY_ADDONS_BUILT="1"
#only build binary addons when requested by env/jenkins
if [ "$BUILD_BINARY_ADDONS" == "true" ]
then
  for addon in $BINARY_ADDONS
  do
    echo "building $addon"
    git clean -xffd $WORKSPACE/$BINARY_ADDONS_ROOT/$addon
    cd $WORKSPACE/$BINARY_ADDONS_ROOT/$addon;make -j $BUILDTHREADS V=99 VERBOSE=1  || ALL_BINARY_ADDONS_BUILT="0"
  done
fi

if [ "$ALL_BINARY_ADDONS_BUILT" == "1" ]
then
  tagSuccessFulBuild $WORKSPACE/project/cmake
else
  #mark the build failure in the filesystem but leave jenkins running
  tagFailedBuild $WORKSPACE/project/cmake
fi