Last change
on this file since 26813 was 26813, checked in by davidb, 11 years ago |
Adjustments to help compilation with Android NDK
|
-
Property svn:executable
set to
*
|
File size:
1.8 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | package=glib
|
---|
4 | #version=-2.24.2
|
---|
5 | version=-2.28.1
|
---|
6 | #version=-2.34.3
|
---|
7 |
|
---|
8 | progname=$0
|
---|
9 |
|
---|
10 | source ../cascade-make/lib/cascade-lib.bash GEXTGNOME ../.. $*
|
---|
11 |
|
---|
12 | prefix=$GEXTGNOME_INSTALLED
|
---|
13 |
|
---|
14 | export CFLAGS="$CFLAGS -I$GEXTGNOME_INSTALLED/include"
|
---|
15 | export CPPFLAGS="$CPPFLAGS -I$GEXTGNOME_INSTALLED/include"
|
---|
16 | export CXXFLAGS="$CXXFLAGS -I$GEXTGNOME_INSTALLED/include"
|
---|
17 | export LDFLAGS="$LDFLAGS -L$GEXTGNOME_INSTALLED/lib"
|
---|
18 |
|
---|
19 | if [ "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 |
|
---|
34 | else
|
---|
35 | extra_config_args=
|
---|
36 | fi
|
---|
37 |
|
---|
38 | opt_run_untar $force_untar $auto_untar $package $version
|
---|
39 | opt_run_configure $force_config $auto_config $package $version $prefix \
|
---|
40 | $extra_config_args
|
---|
41 |
|
---|
42 | opt_run_make $compile $package $version
|
---|
43 | opt_run_make $install $package $version "install"
|
---|
44 | opt_run_make $clean $package $version "clean"
|
---|
45 | opt_run_make $distclean $package $version "distclean"
|
---|
46 |
|
---|
47 | opt_run_tarclean $tarclean $package $version
|
---|
Note:
See
TracBrowser
for help on using the repository browser.