aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/androidx86/configure-depends
blob: 5c35987fadc482e4d21c97f55b9ee692c4199f9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
XBMC_PLATFORM_DIR=android
. $WORKSPACE/tools/buildsteps/defaultenv

NDK_ARCH=x86
#the following pathes must exist on the slave and use the defined scheme here!
CURRENT_NDK_PATH=$ANDROID_DEV_ROOT/android-ndk-r$NDK_VERSION
CURRENT_TOOLCHAIN=$ANDROID_DEV_ROOT/android-toolchain-$NDK_ARCH-$SDK_VERSION-r$NDK_VERSION

if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
then
  cd $WORKSPACE/tools/depends;./configure \
    --with-tarballs=$TARBALLS \
    --host=i686-linux-android \
    --with-sdk-path=$SDK_PATH \
    --with-ndk=$CURRENT_NDK_PATH \
    $(if [ "$SDK_VERSION" != "Default" ]; then echo --with-sdk=android-$SDK_VERSION;fi) \
    --with-toolchain=$CURRENT_TOOLCHAIN \
    --prefix=$XBMC_DEPENDS_ROOT
fi