diff options
author | fuzzard <fuzzard@kodi.tv> | 2021-11-14 18:56:01 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2021-11-23 19:59:14 +1000 |
commit | c45cad06edfc656d4a1ef7632f5c35ad353f357f (patch) | |
tree | 727749cd5fd6ba7dd5800195089d505504c6ab22 /tools/buildsteps/osx-arm64/make-binary-addons | |
parent | 9c056acc45b03bdc24594eb70a6ad654030c1548 (diff) |
[tools/depends][buildsteps] macos-arm64 build kodi/addons build steps
Diffstat (limited to 'tools/buildsteps/osx-arm64/make-binary-addons')
-rwxr-xr-x | tools/buildsteps/osx-arm64/make-binary-addons | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/buildsteps/osx-arm64/make-binary-addons b/tools/buildsteps/osx-arm64/make-binary-addons new file mode 100755 index 0000000000..458f9f1b98 --- /dev/null +++ b/tools/buildsteps/osx-arm64/make-binary-addons @@ -0,0 +1,30 @@ +WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )} +XBMC_PLATFORM_DIR=osx-arm64 +. $WORKSPACE/tools/buildsteps/defaultenv + +. $WORKSPACE/tools/buildsteps/$XBMC_PLATFORM_DIR/make-native-depends + +#clear the build failed file +rm -f $WORKSPACE/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 + + INSTALL_PREFIX="../../../../../build/addons/" + cd $WORKSPACE/$BINARY_ADDONS_ROOT/$addon;make -j $BUILDTHREADS V=99 VERBOSE=1 INSTALL_PREFIX="$INSTALL_PREFIX" || ALL_BINARY_ADDONS_BUILT="0" + done +fi + +if [ "$ALL_BINARY_ADDONS_BUILT" == "1" ] +then + tagSuccessFulBuild $WORKSPACE/cmake +else + #mark the build failure in the filesystem but leave jenkins running + tagFailedBuild $WORKSPACE/cmake +fi |