Changeset 1089

Show
Ignore:
Timestamp:
11/06/06 11:50:30
Author:
pvanhoof
Message:

Build env improvements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Makefile.am

    r1014 r1089  
    88endif 
    99 
     10if BUILD_UIGTK 
    1011SUBDIRS += libtinymailui-gtk  
     12endif 
    1113 
    1214if BUILD_MOZEMBED 
  • trunk/configure.ac

    r1088 r1089  
    5353dnl ### default values (will get overwritten) 
    5454build_gnome=true 
     55build_uigtk=true 
    5556build_demoui=true 
    5657build_mozembed=false 
     
    6263dnl ### Select the platform library ## 
    6364AC_ARG_WITH(platform, 
    64 [  --with-platform=gnome-desktop                platform to compile [gnome-desktop]], 
     65AC_HELP_STRING([--with-platform=gnome-desktop],  
     66  [Platform to compile (gnome-desktop, maemo, olpc or gpe)]), 
    6567[case "${with_platform}" in 
    6668  gnome-desktop)  
    6769        PLATFORMDIR=libtinymail-gnome-desktop  
     70        build_uigtk=true 
    6871        build_demoui=true 
    6972        PLATFORM=1 
     
    7578        build_gnome=false 
    7679        with_html_component=none 
     80        build_uigtk=true 
    7781        build_demoui=true 
    7882        PLATFORM=2 
     
    8084  gpe)  
    8185        PLATFORMDIR=libtinymail-gpe  
     86        build_uigtk=true 
    8287        build_demoui=true 
    8388        PLATFORM=3 
     
    8994        build_gnome=false 
    9095        with_html_component=none 
     96        build_uigtk=true 
    9197        build_demoui=true 
    9298        PLATFORM=4 
     
    94100  *)  
    95101        PLATFORMDIR=${with_platform} 
     102        build_uigtk=false 
    96103        build_demoui=false 
    97104        PLATFORM=0 
     
    102109AC_SUBST(PLATFORM) 
    103110 
     111 
     112dnl ### Enable uigtk ## 
     113AC_ARG_ENABLE(uigtk,  
     114AC_HELP_STRING([--enable-uigtk], 
     115  [Build the gtk+ implementation for the ui components (yes, no)]), 
     116[case "${enableval}" in 
     117  yes) build_uigtk=true ;; 
     118  no)  build_uigtk=false ;; 
     119  *) AC_MSG_ERROR(bad value ${enableval} for --enable-uigtk) ;; 
     120esac],[build_uigtk=$build_uigtk]) 
     121AM_CONDITIONAL(BUILD_UIGTK, test x$build_uigtk = xtrue) 
     122 
    104123dnl ### Enable demoui ## 
    105124AC_ARG_ENABLE(demoui, 
    106 [  --enable-demoui               build the demo user interface [default=$build_demoui]], 
     125AC_HELP_STRING([--enable-demoui], 
     126  [Build the demo user interface (yes, no)]), 
    107127[case "${enableval}" in 
    108128  yes) build_demoui=true ;; 
     
    114134dnl ### Enable gnome features ## 
    115135AC_ARG_ENABLE(gnome, 
    116 [  --enable-gnome               build using gnome features [default=yes]], 
     136AC_HELP_STRING([--enable-gnome], 
     137  [Build using gnome features]), 
    117138[case "${enableval}" in 
    118139  yes) build_gnome=true ;; 
     
    124145dnl ### Select the html component ## 
    125146AC_ARG_WITH(html-component, 
    126 [  --with-html-component                set which html component to use [default=none]], 
     147AC_HELP_STRING([--with-html-component], 
     148  [Set which html component to use (none, mozembed, gtkhtml)]), 
    127149[case "$with_html_component" in 
    128150  mozembed)  
    129151        build_mozembed=true 
    130152        build_gtkhtml=false 
     153        build_demoui=true 
    131154  ;; 
    132155  gtkhtml) 
    133156        build_mozembed=false 
    134157        build_gtkhtml=false 
     158        build_demoui=true 
    135159  ;; 
    136160  none) 
     
    149173dnl ### Enable the python language bindings ## 
    150174AC_ARG_ENABLE(python-bindings, 
    151 [  --enable-python-bindings             build python bindings [default=no]], 
     175AC_HELP_STRING([--enable-python-bindings], 
     176  [Build python bindings (no, yes)]), 
    152177[case "${enableval}" in 
    153178  yes) build_pytinymail=true ;; 
     
    159184dnl ### Enable building the unit tests ## 
    160185AC_ARG_ENABLE(unit-tests, 
    161 [  --enable-unit-tests          build unit tests [default=no]], 
     186AC_HELP_STRING([--enable-unit-tests], 
     187  [Build unit tests (no, yes)]), 
    162188[case "${enableval}" in 
    163189  yes) build_unittests=true ;; 
     
    169195dnl ### Enable building the tests ## 
    170196AC_ARG_ENABLE(tests, 
    171 [  --enable-tests          build tests [default=no]], 
     197AC_HELP_STRING([--enable-tests], 
     198  [Build tests (no, yes)]), 
    172199[case "${enableval}" in 
    173200  yes) build_tests=true ;; 
     
    179206dnl ### doxygen 
    180207AC_ARG_ENABLE(doxygen, 
    181 [  --enable-doxygen          build doxygen docs [default=no]], 
     208AC_HELP_STRING([--enable-doxygen], 
     209  [Build doxygen docs (no, yes)]), 
    182210[case "${enableval}" in 
    183211  yes) build_doxygen=true ;;