aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2018-02-11 22:00:00 +0100
committerRechi <Rechi@users.noreply.github.com>2018-02-11 22:00:00 +0100
commita3dcc3ffc6fb1a9d9e6f85c6f538efffebd36d72 (patch)
tree40b9f3e07e4b78685f36a2554201bbf02421abcc /tools
parent4e6f04d0e83f2f19afa288da31609c7c3d42ef7b (diff)
[buildsteps] linux64-gbm
Diffstat (limited to 'tools')
-rw-r--r--tools/buildsteps/linux64-gbm/configure-depends9
-rw-r--r--tools/buildsteps/linux64-gbm/configure-xbmc5
-rw-r--r--tools/buildsteps/linux64-gbm/make-binary-addons28
-rw-r--r--tools/buildsteps/linux64-gbm/make-depends8
-rw-r--r--tools/buildsteps/linux64-gbm/make-native-depends9
-rw-r--r--tools/buildsteps/linux64-gbm/make-xbmc5
-rw-r--r--tools/buildsteps/linux64-gbm/package5
-rw-r--r--tools/buildsteps/linux64-gbm/prepare-depends15
-rw-r--r--tools/buildsteps/linux64-gbm/prepare-xbmc9
-rw-r--r--tools/buildsteps/linux64-gbm/run-tests14
10 files changed, 107 insertions, 0 deletions
diff --git a/tools/buildsteps/linux64-gbm/configure-depends b/tools/buildsteps/linux64-gbm/configure-depends
new file mode 100644
index 0000000000..0dd6111bf8
--- /dev/null
+++ b/tools/buildsteps/linux64-gbm/configure-depends
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64-gbm
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
+then
+ cd $WORKSPACE/tools/depends;./configure \
+ --with-toolchain=/usr --prefix=$XBMC_DEPENDS_ROOT --host=x86_64-linux-gnu --with-platform=gbm --with-tarballs=$TARBALLS $DEBUG_SWITCH
+fi
diff --git a/tools/buildsteps/linux64-gbm/configure-xbmc b/tools/buildsteps/linux64-gbm/configure-xbmc
new file mode 100644
index 0000000000..b5ccaf8e8d
--- /dev/null
+++ b/tools/buildsteps/linux64-gbm/configure-xbmc
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64-gbm
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+make -C $WORKSPACE/tools/depends/target/cmakebuildsys
diff --git a/tools/buildsteps/linux64-gbm/make-binary-addons b/tools/buildsteps/linux64-gbm/make-binary-addons
new file mode 100644
index 0000000000..ea4e4e3315
--- /dev/null
+++ b/tools/buildsteps/linux64-gbm/make-binary-addons
@@ -0,0 +1,28 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64-gbm
+. $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
+ 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/cmake
+else
+ #mark the build failure in the filesystem but leave jenkins running
+ tagFailedBuild $WORKSPACE/cmake
+fi
diff --git a/tools/buildsteps/linux64-gbm/make-depends b/tools/buildsteps/linux64-gbm/make-depends
new file mode 100644
index 0000000000..ebcf446c1d
--- /dev/null
+++ b/tools/buildsteps/linux64-gbm/make-depends
@@ -0,0 +1,8 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64-gbm
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
+then
+ cd $WORKSPACE/tools/depends;make -j $BUILDTHREADS || make && tagSuccessFulBuild $WORKSPACE/tools/depends
+fi
diff --git a/tools/buildsteps/linux64-gbm/make-native-depends b/tools/buildsteps/linux64-gbm/make-native-depends
new file mode 100644
index 0000000000..804751e293
--- /dev/null
+++ b/tools/buildsteps/linux64-gbm/make-native-depends
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64-gbm
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ] && [ "$BINARY_ADDONS_CLEAN_NATIVETOOLS" != "0" ]
+then
+ git clean -xffd $WORKSPACE/tools/depends/native
+ cd $WORKSPACE/tools/depends/native;make -j $BUILDTHREADS && tagSuccessFulBuild $WORKSPACE/tools/depends
+fi
diff --git a/tools/buildsteps/linux64-gbm/make-xbmc b/tools/buildsteps/linux64-gbm/make-xbmc
new file mode 100644
index 0000000000..025988db1a
--- /dev/null
+++ b/tools/buildsteps/linux64-gbm/make-xbmc
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64-gbm
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+cd $WORKSPACE/build;make -j$BUILDTHREADS || make
diff --git a/tools/buildsteps/linux64-gbm/package b/tools/buildsteps/linux64-gbm/package
new file mode 100644
index 0000000000..052caea54b
--- /dev/null
+++ b/tools/buildsteps/linux64-gbm/package
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64-gbm
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+#nothing for linux atm
diff --git a/tools/buildsteps/linux64-gbm/prepare-depends b/tools/buildsteps/linux64-gbm/prepare-depends
new file mode 100644
index 0000000000..1f4d0d5e48
--- /dev/null
+++ b/tools/buildsteps/linux64-gbm/prepare-depends
@@ -0,0 +1,15 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64-gbm
+. $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
diff --git a/tools/buildsteps/linux64-gbm/prepare-xbmc b/tools/buildsteps/linux64-gbm/prepare-xbmc
new file mode 100644
index 0000000000..72d4f9af96
--- /dev/null
+++ b/tools/buildsteps/linux64-gbm/prepare-xbmc
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64-gbm
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+#build binary addons before building xbmc...
+#make sure that binary_addons don't clean the native tools
+#here (e.x. on release builds where pathChanged always returns 1
+BINARY_ADDONS_CLEAN_NATIVETOOLS="0"
+. $WORKSPACE/tools/buildsteps/$XBMC_PLATFORM_DIR/make-binary-addons
diff --git a/tools/buildsteps/linux64-gbm/run-tests b/tools/buildsteps/linux64-gbm/run-tests
new file mode 100644
index 0000000000..bab7e75331
--- /dev/null
+++ b/tools/buildsteps/linux64-gbm/run-tests
@@ -0,0 +1,14 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64-gbm
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+cd $WORKSPACE/build;make -j$BUILDTHREADS kodi-test
+if [ "$Configuration" != "Coverage" ]; then
+ cd $WORKSPACE;build/kodi-test --gtest_output=xml:gtestresults.xml
+else
+ cd $WORKSPACE/build;GTEST_OUTPUT="xml:$WORKSPACE/gtestresults.xml" make coverage
+fi
+
+awk '{ if ($1 == "<testcase" && match($0, "notrun")) print substr($0,0,length($0)-2) "><skipped/></testcase>"; else print $0;}' gtestresults.xml > gtestresults-skipped.xml
+rm gtestresults.xml
+mv gtestresults-skipped.xml gtestresults.xml