diff options
author | Memphiz <memphis@machzwo.de> | 2013-03-24 02:23:37 +0100 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2013-03-26 21:23:06 +0100 |
commit | 6db72f913d66f3d5fd21129fc0c60958e72a4733 (patch) | |
tree | 28bfc9db5f7a2741c3b3b954c10089b523d66016 /tools/buildsteps/android | |
parent | 16c7ddf4f307a8efb9c8687bb649f54ff896c466 (diff) |
[jenkins] - welcome jenkins support for osx/ios/atv2/android to mainline :o) - add buildsteps for usage with jenkins
Diffstat (limited to 'tools/buildsteps/android')
-rw-r--r-- | tools/buildsteps/android/configure-depends | 15 | ||||
-rw-r--r-- | tools/buildsteps/android/configure-xbmc | 5 | ||||
-rw-r--r-- | tools/buildsteps/android/make-depends | 9 | ||||
-rw-r--r-- | tools/buildsteps/android/make-xbmc | 5 | ||||
-rw-r--r-- | tools/buildsteps/android/package | 10 | ||||
-rw-r--r-- | tools/buildsteps/android/prepare-depends | 13 | ||||
-rw-r--r-- | tools/buildsteps/android/prepare-xbmc | 5 |
7 files changed, 62 insertions, 0 deletions
diff --git a/tools/buildsteps/android/configure-depends b/tools/buildsteps/android/configure-depends new file mode 100644 index 0000000000..13ab6cdd53 --- /dev/null +++ b/tools/buildsteps/android/configure-depends @@ -0,0 +1,15 @@ +WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )} +XBMC_PLATFORM_DIR=android +. $WORKSPACE/tools/buildsteps/defaultenv + +if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ] +then + cd $WORKSPACE/tools/depends;./configure \ + --with-tarballs=/opt/xbmc-tarballs \ + --host=arm-linux-androideabi \ + --with-sdk-path=$SDK_PATH \ + --with-ndk=$NDK_PATH \ + --with-sdk=android-$SDK_VERSION \ + --with-toolchain=$TOOLCHAIN \ + --prefix=$XBMC_DEPENDS_ROOT +fi diff --git a/tools/buildsteps/android/configure-xbmc b/tools/buildsteps/android/configure-xbmc new file mode 100644 index 0000000000..afdd82a1d9 --- /dev/null +++ b/tools/buildsteps/android/configure-xbmc @@ -0,0 +1,5 @@ +WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )} +XBMC_PLATFORM_DIR=android +. $WORKSPACE/tools/buildsteps/defaultenv + +make -C $WORKSPACE/tools/depends/target/xbmc diff --git a/tools/buildsteps/android/make-depends b/tools/buildsteps/android/make-depends new file mode 100644 index 0000000000..2deb44a7cb --- /dev/null +++ b/tools/buildsteps/android/make-depends @@ -0,0 +1,9 @@ +WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )} +XBMC_PLATFORM_DIR=android +. $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/android/make-xbmc b/tools/buildsteps/android/make-xbmc new file mode 100644 index 0000000000..738656fddb --- /dev/null +++ b/tools/buildsteps/android/make-xbmc @@ -0,0 +1,5 @@ +WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )} +XBMC_PLATFORM_DIR=android +. $WORKSPACE/tools/buildsteps/defaultenv + +cd $WORKSPACE;make -j$BUILDTHREADS diff --git a/tools/buildsteps/android/package b/tools/buildsteps/android/package new file mode 100644 index 0000000000..4708d969bb --- /dev/null +++ b/tools/buildsteps/android/package @@ -0,0 +1,10 @@ +WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )} +XBMC_PLATFORM_DIR=android +. $WORKSPACE/tools/buildsteps/defaultenv + +cd $WORKSPACE;make apk + +#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/android/prepare-depends b/tools/buildsteps/android/prepare-depends new file mode 100644 index 0000000000..8aabe48b7c --- /dev/null +++ b/tools/buildsteps/android/prepare-depends @@ -0,0 +1,13 @@ +WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )} +XBMC_PLATFORM_DIR=android +. $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/android/prepare-xbmc b/tools/buildsteps/android/prepare-xbmc new file mode 100644 index 0000000000..020bc03022 --- /dev/null +++ b/tools/buildsteps/android/prepare-xbmc @@ -0,0 +1,5 @@ +WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )} +XBMC_PLATFORM_DIR=android +. $WORKSPACE/tools/buildsteps/defaultenv + +#nothing on android |