Skip to content

Commit b0b2b4f

Browse files
committed
Source the Android environment script just before starting jhbuild
This prevents problems with the Android compiler being set while configuring jhbuild.
1 parent 3ff773c commit b0b2b4f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build-clutter-android.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
set -ex
1818

19-
source ./android-env.sh
20-
2119
# download Android NDK and create standalone toolchain
2220
if ! test -d android-ndk-r8c; then
2321
wget http://dl.google.com/android/ndk/android-ndk-r8c-linux-x86.tar.bz2
@@ -28,23 +26,25 @@ if ! test -d android-ndk-r8c; then
2826
popd
2927
fi
3028

31-
PREFIX=$PWD/jhbuild/.local
29+
JHB_PREFIX=$PWD/jhbuild/.local
3230

3331
# set up patched version of jhbuild
3432
if ! test -d jhbuild; then
3533
git clone git://git.gnome.org/jhbuild
3634
pushd jhbuild
3735
patch -p1 -i ../modulesets/patches/jhbuild/disable-clean-la-files.patch
38-
./autogen.sh --prefix=$PREFIX
36+
./autogen.sh --prefix=$JHB_PREFIX
3937
make install
4038
popd
4139
fi
4240

43-
mkdir -p $PREFIX/share/aclocal
44-
cp /usr/share/aclocal/gtk-doc.m4 $PREFIX/share/aclocal/
41+
mkdir -p $JHB_PREFIX/share/aclocal
42+
cp /usr/share/aclocal/gtk-doc.m4 $JHB_PREFIX/share/aclocal/
43+
44+
source ./android-env.sh
4545

4646
# start the build
47-
$PREFIX/bin/jhbuild -f jhbuildrc-android build -q mx libsoup
47+
$JHB_PREFIX/bin/jhbuild -f jhbuildrc-android build -q mx libsoup
4848

4949
# download Android SDK
5050
if ! test -d android-sdk-linux; then

0 commit comments

Comments
 (0)