Changeset 1090

Show
Ignore:
Timestamp:
11/06/06 12:10:37
Author:
pvanhoof
Message:

Build env improvements

Files:

Legend:

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

    r1005 r1090  
    1212tinymaildir = $(pythondir)/tinymail-$(API_VERSION)/tinymail 
    1313ptinymaildir = $(pythondir)/tinymail-$(API_VERSION)/tinymail 
    14 tinymail_LTLIBRARIES = _tinymail.la ui.la uigtk.la platform.la 
     14 
     15tinymail_LTLIBRARIES = _tinymail.la ui.la  
     16if BUILD_UIGTK 
     17tinymail_LTLIBRARIES += uigtk.la  
     18endif 
     19tinymail_LTLIBRARIES += platform.la  
     20 
    1521ptinymail_PYTHON = __init__.py 
    1622 
  • trunk/configure.ac

    r1089 r1090  
    5858build_gtkhtml=false 
    5959build_doxygen=false 
     60build_tests=false 
     61build_unittests=false 
    6062PLATFORMDIR=libtinymail-gnome-desktop 
    6163PLATFORM=1 
     
    109111AC_SUBST(PLATFORM) 
    110112 
    111  
    112 dnl ### Enable uigtk ## 
    113 AC_ARG_ENABLE(uigtk,  
    114 AC_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) ;; 
    120 esac],[build_uigtk=$build_uigtk]) 
    121 AM_CONDITIONAL(BUILD_UIGTK, test x$build_uigtk = xtrue) 
    122  
    123 dnl ### Enable demoui ## 
    124 AC_ARG_ENABLE(demoui, 
    125 AC_HELP_STRING([--enable-demoui], 
    126   [Build the demo user interface (yes, no)]), 
    127 [case "${enableval}" in 
    128   yes) build_demoui=true ;; 
    129   no)  build_demoui=false ;; 
    130   *) AC_MSG_ERROR(bad value ${enableval} for --enable-demoui) ;; 
    131 esac],[build_demoui=$build_demoui]) 
    132 AM_CONDITIONAL(BUILD_DEMOUI, test x$build_demoui = xtrue) 
    133  
    134 dnl ### Enable gnome features ## 
    135 AC_ARG_ENABLE(gnome, 
    136 AC_HELP_STRING([--enable-gnome], 
    137   [Build using gnome features]), 
    138 [case "${enableval}" in 
    139   yes) build_gnome=true ;; 
    140   no)  build_gnome=false ;; 
    141   *) AC_MSG_ERROR(bad value ${enableval} for --enable-gnome) ;; 
    142 esac],[build_gnome=$build_gnome]) 
    143 AM_CONDITIONAL(BUILD_GNOME, test x$build_gnome = xtrue) 
    144  
    145113dnl ### Select the html component ## 
    146114AC_ARG_WITH(html-component, 
     
    171139AM_CONDITIONAL(BUILD_GTKHTML, test x$build_gtkhtml = xtrue) 
    172140 
     141dnl ### Enable demoui ## 
     142AC_ARG_ENABLE(demoui, 
     143AC_HELP_STRING([--enable-demoui], 
     144  [Build the demo user interface (yes, no)]), 
     145[case "${enableval}" in 
     146  yes)  
     147        build_demoui=true  
     148        build_uigtk=true 
     149  ;; 
     150  no)  build_demoui=false ;; 
     151  *) AC_MSG_ERROR(bad value ${enableval} for --enable-demoui) ;; 
     152esac],[build_demoui=$build_demoui]) 
     153AM_CONDITIONAL(BUILD_DEMOUI, test x$build_demoui = xtrue) 
     154 
     155dnl ### Enable gnome features ## 
     156AC_ARG_ENABLE(gnome, 
     157AC_HELP_STRING([--enable-gnome], 
     158  [Build using gnome features]), 
     159[case "${enableval}" in 
     160  yes)  
     161        build_gnome=true  
     162        build_uigtk=true 
     163  ;; 
     164  no)  build_gnome=false ;; 
     165  *) AC_MSG_ERROR(bad value ${enableval} for --enable-gnome) ;; 
     166esac],[build_gnome=$build_gnome]) 
     167AM_CONDITIONAL(BUILD_GNOME, test x$build_gnome = xtrue) 
     168 
     169dnl ### Enable building the unit tests ## 
     170AC_ARG_ENABLE(unit-tests, 
     171AC_HELP_STRING([--enable-unit-tests], 
     172  [Build unit tests (no, yes)]), 
     173[case "${enableval}" in 
     174  yes)  
     175        build_tests=true  
     176        build_unittests=true  
     177        build_uigtk=true 
     178  ;; 
     179  no)  build_unittests=false ;; 
     180  *) AC_MSG_ERROR(bad value ${enableval} for --enable-unit-tests) ;; 
     181esac],[build_unittests=$build_unittests]) 
     182AM_CONDITIONAL(BUILD_UNITTESTS, test x$build_unittests = xtrue) 
     183 
     184dnl ### Enable building the tests ## 
     185AC_ARG_ENABLE(tests, 
     186AC_HELP_STRING([--enable-tests], 
     187  [Build tests (no, yes)]), 
     188[case "${enableval}" in 
     189  yes)  
     190        build_tests=true  
     191        build_uigtk=true 
     192  ;; 
     193  no)  build_tests=false ;; 
     194  *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;; 
     195esac],[build_tests=$build_tests]) 
     196AM_CONDITIONAL(BUILD_TESTS, test x$build_tests = xtrue) 
     197 
     198dnl ### Enable uigtk ## 
     199AC_ARG_ENABLE(uigtk,  
     200AC_HELP_STRING([--enable-uigtk], 
     201  [Build the gtk+ implementation for the ui components (yes, no)]), 
     202[case "${enableval}" in 
     203  yes) build_uigtk=true ;; 
     204  no)  build_uigtk=false ;; 
     205  *) AC_MSG_ERROR(bad value ${enableval} for --enable-uigtk) ;; 
     206esac],[build_uigtk=$build_uigtk]) 
     207AM_CONDITIONAL(BUILD_UIGTK, test x$build_uigtk = xtrue) 
     208 
    173209dnl ### Enable the python language bindings ## 
    174210AC_ARG_ENABLE(python-bindings, 
     
    182218AM_CONDITIONAL(BUILD_PYTINYMAIL, test x$build_pytinymail = xtrue) 
    183219 
    184 dnl ### Enable building the unit tests ## 
    185 AC_ARG_ENABLE(unit-tests, 
    186 AC_HELP_STRING([--enable-unit-tests], 
    187   [Build unit tests (no, yes)]), 
    188 [case "${enableval}" in 
    189   yes) build_unittests=true ;; 
    190   no)  build_unittests=false ;; 
    191   *) AC_MSG_ERROR(bad value ${enableval} for --enable-unit-tests) ;; 
    192 esac],[build_unittests=false]) 
    193 AM_CONDITIONAL(BUILD_UNITTESTS, test x$build_unittests = xtrue) 
    194  
    195 dnl ### Enable building the tests ## 
    196 AC_ARG_ENABLE(tests, 
    197 AC_HELP_STRING([--enable-tests], 
    198   [Build tests (no, yes)]), 
    199 [case "${enableval}" in 
    200   yes) build_tests=true ;; 
    201   no)  build_tests=false ;; 
    202   *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;; 
    203 esac],[build_tests=false]) 
    204 AM_CONDITIONAL(BUILD_TESTS, test x$build_tests = xtrue) 
    205220 
    206221dnl ### doxygen