root/gs2-extensions/gnome-lib/trunk/src/packages/CASCADE-MAKE/GLIB.sh @ 26813

Revision 26813, 1.8 KB (checked in by davidb, 7 years ago)

Adjustments to help compilation with Android NDK

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3package=glib
4#version=-2.24.2
5version=-2.28.1
6#version=-2.34.3
7
8progname=$0
9
10source ../cascade-make/lib/cascade-lib.bash GEXTGNOME ../.. $*
11
12prefix=$GEXTGNOME_INSTALLED
13
14export CFLAGS="$CFLAGS -I$GEXTGNOME_INSTALLED/include"
15export CPPFLAGS="$CPPFLAGS -I$GEXTGNOME_INSTALLED/include"
16export CXXFLAGS="$CXXFLAGS -I$GEXTGNOME_INSTALLED/include"
17export LDFLAGS="$LDFLAGS -L$GEXTGNOME_INSTALLED/lib"
18
19if [ "x$crossOS" = "xandroid" ] ; then
20  # Based on details found at:
21  #   http://axcoto.com/blog/article/836
22  extra_config_args="glib_cv_stack_grows=${glib_cv_stack_grows=no} glib_cv_uscore=${glib_cv_uscore=no} ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no} ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}"
23
24  # Not clear how many of the following are needed.
25  # List came from:
26  #  https://mail.gnome.org/archives/gtk-devel-list/2011-March/msg00096.html
27  #
28  # Could be that some of these are helpful in general (i.e. move out to
29  #   main section of this script) in making a more minimal glib
30
31  extra_config_args="--without-included-regex --disable-java --disable-openmp --without-libiconv-prefix --without-libintl-prefix --without-libglib-2.0-prefix --without-libcroco-0.6-prefix --with-included-libxml --without-libncurses-prefix --without-libtermcap-prefix --without-libcurses-prefix --without-libexpat-prefix --without-emacs $extra_config_args"
32
33
34else
35  extra_config_args=
36fi
37
38opt_run_untar $force_untar $auto_untar $package $version
39opt_run_configure $force_config $auto_config $package $version $prefix \
40  $extra_config_args
41
42opt_run_make $compile $package $version
43opt_run_make $install $package $version "install"
44opt_run_make $clean $package $version "clean"
45opt_run_make $distclean $package $version "distclean"
46
47opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the browser.