aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2013-04-30 00:59:23 -0700
committerMemphiz <memphis@machzwo.de>2013-04-30 00:59:23 -0700
commitea1250e8120da9888ca7d1c94e3836069594f92f (patch)
treeeaae364fa1367a30a6b38a6037dc8c20177e649d /tools
parent1d30f75e2becdac7727517be86799e3a68f0ef3d (diff)
parent502ae686993320c59fa2092782c089ec1ab4306b (diff)
Merge pull request #2673 from Memphiz/jenkins
[jenkins] - add buildsteps for linux32
Diffstat (limited to 'tools')
-rw-r--r--tools/buildsteps/defaultenv5
-rwxr-xr-xtools/buildsteps/linux32/configure-depends9
-rwxr-xr-xtools/buildsteps/linux32/configure-xbmc5
-rwxr-xr-xtools/buildsteps/linux32/make-depends9
-rwxr-xr-xtools/buildsteps/linux32/make-xbmc5
-rwxr-xr-xtools/buildsteps/linux32/package10
-rwxr-xr-xtools/buildsteps/linux32/prepare-depends13
-rwxr-xr-xtools/buildsteps/linux32/prepare-xbmc5
-rwxr-xr-xtools/buildsteps/linux64/configure-depends9
-rwxr-xr-xtools/buildsteps/linux64/configure-xbmc5
-rwxr-xr-xtools/buildsteps/linux64/make-depends9
-rwxr-xr-xtools/buildsteps/linux64/make-xbmc5
-rwxr-xr-xtools/buildsteps/linux64/package10
-rwxr-xr-xtools/buildsteps/linux64/prepare-depends13
-rwxr-xr-xtools/buildsteps/linux64/prepare-xbmc5
15 files changed, 117 insertions, 0 deletions
diff --git a/tools/buildsteps/defaultenv b/tools/buildsteps/defaultenv
index 9547e835c0..98c011e611 100644
--- a/tools/buildsteps/defaultenv
+++ b/tools/buildsteps/defaultenv
@@ -30,10 +30,15 @@ case $XBMC_PLATFORM_DIR in
DEFAULT_XBMC_DEPENDS_ROOT=$WORKSPACE/tools/depends/xbmc-depends
DEFAULT_CONFIGURATION="Debug"
;;
+
android)
DEFAULT_SDK_VERSION=10
DEFAULT_XBMC_DEPENDS_ROOT=$WORKSPACE/tools/depends/xbmc-depends
DEFAULT_CONFIGURATION="Debug"
+ ;;
+
+ linux*)
+ DEFAULT_XBMC_DEPENDS_ROOT=$WORKSPACE/tools/depends/xbmc-depends
esac
if [ $SDK_VERSION == "Default" ]
diff --git a/tools/buildsteps/linux32/configure-depends b/tools/buildsteps/linux32/configure-depends
new file mode 100755
index 0000000000..757951be87
--- /dev/null
+++ b/tools/buildsteps/linux32/configure-depends
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux32
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
+then
+ cd $WORKSPACE/tools/depends;./configure \
+ --with-toolchain=/usr --prefix=$XBMC_DEPENDS_ROOT --host=i386-linux-gnu
+fi
diff --git a/tools/buildsteps/linux32/configure-xbmc b/tools/buildsteps/linux32/configure-xbmc
new file mode 100755
index 0000000000..5e532760bf
--- /dev/null
+++ b/tools/buildsteps/linux32/configure-xbmc
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux32
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+cd $WORKSPACE/;./configure
diff --git a/tools/buildsteps/linux32/make-depends b/tools/buildsteps/linux32/make-depends
new file mode 100755
index 0000000000..73e21a6ada
--- /dev/null
+++ b/tools/buildsteps/linux32/make-depends
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux32
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
+then
+ cd $WORKSPACE/tools/depends;make -j $BUILDTHREADS && tagSuccessFulBuild .
+fi
+
diff --git a/tools/buildsteps/linux32/make-xbmc b/tools/buildsteps/linux32/make-xbmc
new file mode 100755
index 0000000000..a2bc0a7afc
--- /dev/null
+++ b/tools/buildsteps/linux32/make-xbmc
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux32
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+cd $WORKSPACE;make -j$BUILDTHREADS
diff --git a/tools/buildsteps/linux32/package b/tools/buildsteps/linux32/package
new file mode 100755
index 0000000000..45dc4c34cf
--- /dev/null
+++ b/tools/buildsteps/linux32/package
@@ -0,0 +1,10 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux32
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+#nothing for linux atm
+
+#rename for upload
+#e.x. xbmc-20130314-8c2fb31-Frodo-armeabi-v7a.apk
+UPLOAD_FILENAME="xbmc-$(getBuildRevDateStr)-armeabi-v7a.apk"
+#mv xbmcapp-armeabi-*.apk $UPLOAD_FILENAME
diff --git a/tools/buildsteps/linux32/prepare-depends b/tools/buildsteps/linux32/prepare-depends
new file mode 100755
index 0000000000..51878d9f1a
--- /dev/null
+++ b/tools/buildsteps/linux32/prepare-depends
@@ -0,0 +1,13 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux32
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+#clean without depends for skipping depends build if possible
+cd $WORKSPACE;git clean -xfd -e "tools/depends"
+
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
+then
+ #clean up the rest too
+ cd $WORKSPACE;git clean -xfd
+ cd $WORKSPACE/tools/depends/;./bootstrap
+fi
diff --git a/tools/buildsteps/linux32/prepare-xbmc b/tools/buildsteps/linux32/prepare-xbmc
new file mode 100755
index 0000000000..ca3a3d2774
--- /dev/null
+++ b/tools/buildsteps/linux32/prepare-xbmc
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux32
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+#nothing on linux
diff --git a/tools/buildsteps/linux64/configure-depends b/tools/buildsteps/linux64/configure-depends
new file mode 100755
index 0000000000..1460e3c630
--- /dev/null
+++ b/tools/buildsteps/linux64/configure-depends
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64
+. $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
+fi
diff --git a/tools/buildsteps/linux64/configure-xbmc b/tools/buildsteps/linux64/configure-xbmc
new file mode 100755
index 0000000000..38a5e2d862
--- /dev/null
+++ b/tools/buildsteps/linux64/configure-xbmc
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+cd $WORKSPACE/;./configure
diff --git a/tools/buildsteps/linux64/make-depends b/tools/buildsteps/linux64/make-depends
new file mode 100755
index 0000000000..c9c98aa09a
--- /dev/null
+++ b/tools/buildsteps/linux64/make-depends
@@ -0,0 +1,9 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
+then
+ cd $WORKSPACE/tools/depends;make -j $BUILDTHREADS && tagSuccessFulBuild .
+fi
+
diff --git a/tools/buildsteps/linux64/make-xbmc b/tools/buildsteps/linux64/make-xbmc
new file mode 100755
index 0000000000..10200c8529
--- /dev/null
+++ b/tools/buildsteps/linux64/make-xbmc
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+cd $WORKSPACE;make -j$BUILDTHREADS
diff --git a/tools/buildsteps/linux64/package b/tools/buildsteps/linux64/package
new file mode 100755
index 0000000000..243f5097ff
--- /dev/null
+++ b/tools/buildsteps/linux64/package
@@ -0,0 +1,10 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+#nothing for linux atm
+
+#rename for upload
+#e.x. xbmc-20130314-8c2fb31-Frodo-armeabi-v7a.apk
+UPLOAD_FILENAME="xbmc-$(getBuildRevDateStr)-armeabi-v7a.apk"
+#mv xbmcapp-armeabi-*.apk $UPLOAD_FILENAME
diff --git a/tools/buildsteps/linux64/prepare-depends b/tools/buildsteps/linux64/prepare-depends
new file mode 100755
index 0000000000..710ad5b8ff
--- /dev/null
+++ b/tools/buildsteps/linux64/prepare-depends
@@ -0,0 +1,13 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+#clean without depends for skipping depends build if possible
+cd $WORKSPACE;git clean -xfd -e "tools/depends"
+
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
+then
+ #clean up the rest too
+ cd $WORKSPACE;git clean -xfd
+ cd $WORKSPACE/tools/depends/;./bootstrap
+fi
diff --git a/tools/buildsteps/linux64/prepare-xbmc b/tools/buildsteps/linux64/prepare-xbmc
new file mode 100755
index 0000000000..f71fcf6fef
--- /dev/null
+++ b/tools/buildsteps/linux64/prepare-xbmc
@@ -0,0 +1,5 @@
+WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
+XBMC_PLATFORM_DIR=linux64
+. $WORKSPACE/tools/buildsteps/defaultenv
+
+#nothing on linux