diff options
author | Alvaro Soliverez <alvaro.soliverez@collabora.co.uk> | 2011-11-15 13:05:47 -0300 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-11-21 16:17:41 +0000 |
commit | c6e76ac44acd46e8d5a1c9f2cc950548d7a30ead (patch) | |
tree | c65e1d02de3ae1873c6abe3fe001de8e8c6bba6e /autogen.sh | |
parent | 3c830e93b65121c2a6450c97b68922b49d85fde3 (diff) |
Support building on Android
This patch makes it possible to use installed versions of Wocky and
Yell, rather than submodules; adds a missing explicit dependency on gio;
and adds Androgenizer build targets.
Modified from an original patch by Derek Foreman.
https://bugs.freedesktop.org/show_bug.cgi?id=42446
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/autogen.sh b/autogen.sh index 1de819581..27fa0501a 100755 --- a/autogen.sh +++ b/autogen.sh @@ -16,23 +16,36 @@ fi autoreconf -i -f -# Fetch submodules if needed -if test ! -f lib/ext/wocky/autogen.sh -o ! -f lib/ext/telepathy-yell/autogen.sh; -then - echo "+ Setting up submodules" - git submodule init -fi -git submodule update +#Check if submodules should be enabled +enable_submodules=true +for arg in $*; do + case $arg in + --disable-submodules) + enable_submodules=false + ;; + *) + ;; + esac +done + +if test $enable_submodules = true; then + # Fetch submodules if needed + if test ! -f lib/ext/wocky/autogen.sh -o ! -f lib/ext/telepathy-yell/autogen.sh; then + echo "+ Setting up submodules" + git submodule init + fi + git submodule update -# launch Wocky's autogen.sh -cd lib/ext/wocky -sh autogen.sh --no-configure -cd ../../.. + # launch Wocky's autogen.sh + cd lib/ext/wocky + sh autogen.sh --no-configure + cd ../../.. -# launch tp-yell's autogen.sh -cd lib/ext/telepathy-yell -sh autogen.sh --no-configure -cd ../../.. + # launch tp-yell's autogen.sh + cd lib/ext/telepathy-yell + sh autogen.sh --no-configure + cd ../../.. +fi # Honor NOCONFIGURE for compatibility with gnome-autogen.sh if test x"$NOCONFIGURE" = x; then |