1 WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
3 . $WORKSPACE/tools/buildsteps/defaultenv
5 . $WORKSPACE/tools/buildsteps/$XBMC_PLATFORM_DIR/make-native-depends
7 #clear the build failed file
8 rm -f $WORKSPACE/cmake/$FAILED_BUILD_FILENAME
10 ALL_BINARY_ADDONS_BUILT="1"
11 #only build binary addons when requested by env/jenkins
12 if [ "$BUILD_BINARY_ADDONS" == "true" ]
14 for addon in $BINARY_ADDONS
16 echo "building $addon"
17 git clean -xffd $WORKSPACE/$BINARY_ADDONS_ROOT/$addon
19 INSTALL_PREFIX="../../../../../build/addons/"
20 cd $WORKSPACE/$BINARY_ADDONS_ROOT/$addon;make -j $BUILDTHREADS V=99 VERBOSE=1 INSTALL_PREFIX="$INSTALL_PREFIX" || ALL_BINARY_ADDONS_BUILT="0"
24 if [ "$ALL_BINARY_ADDONS_BUILT" == "1" ]
26 tagSuccessFulBuild $WORKSPACE/cmake
28 #mark the build failure in the filesystem but leave jenkins running
29 tagFailedBuild $WORKSPACE/cmake