From: Dirk-Jan C. Binnema Date: Thu, 5 Apr 2007 14:23:02 +0000 (+0000) Subject: * make modest build on both N800(bora) and the OSSO 1.1 target; X-Git-Tag: git_migration_finished~3937 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=8aa6b6f8c346e44c4a1234e2d644d442eec877a7 * make modest build on both N800(bora) and the OSSO 1.1 target; there are some differences in Hildon and library names MODEST_HILDON_VERSION_0 will be defined (config.h) if we are using the 'old' (bora) hildon. pmo-trunk-r1515 --- diff --git a/configure.ac b/configure.ac index 0662937..dc335c4 100644 --- a/configure.ac +++ b/configure.ac @@ -87,8 +87,18 @@ esac], [MODEST_PLATFORM=gnome with_platform=gnome]) AC_SUBST(MODEST_PLATFORM) + if test "x$with_platform" = "xmaemo"; then - PKG_CHECK_MODULES(MODEST_LIBTINYMAIL_MAEMO,libtinymail-maemo-1.0 hildon-libs libosso libossomime osso-addressbook-1.0 wpeditor) + + PKG_CHECK_MODULES(HILDON, hildon-1 >= 0.9.9, hildon1=yes, hildon1=no) + if test "$hildon1" == "yes"; then # the 'new' hildon + PKG_CHECK_MODULES(MODEST_LIBTINYMAIL_MAEMO, libtinymail-maemo-1.0 hildon-libs libosso libhildonmime osso-addressbook-1.0 wpeditor hildon-help libebook-1.2) + + else # the old hildon + PKG_CHECK_MODULES(MODEST_LIBTINYMAIL_MAEMO,libtinymail-maemo-1.0 hildon-libs >= 0.12.0 libosso libossomime libossohelp osso-addressbook-1.0 wpeditor libebook-1.2) + AC_DEFINE_UNQUOTED(MODEST_HILDON_VERSION_0, 1, ["The Hildon version we support."]) + fi + AC_SUBST(MODEST_LIBTINYMAIL_MAEMO_CFLAGS) AC_SUBST(MODEST_LIBTINYMAIL_MAEMO_LIBS) @@ -139,7 +149,6 @@ AC_SUBST(MODEST_PLATFORM_ID) - dnl ## setup the testing framework (ie., make check) build_tests=false AC_ARG_ENABLE(tests, @@ -152,6 +161,8 @@ AC_HELP_STRING([--enable-tests], esac],[build_tests=false]) AM_CONDITIONAL(BUILD_TESTS, test x$build_tests = xtrue) + + dnl ## is the check package installed? if test x$build_tests = xtrue; then PKG_CHECK_MODULES(CHECK, check >= 0.9.4 glib-2.0) @@ -195,7 +206,6 @@ src/maemo/modest.service ]) - echo echo "modest configure results" echo "-----------------------------------" diff --git a/debian/control b/debian/control index 078c543..cf1a8eb 100644 --- a/debian/control +++ b/debian/control @@ -7,6 +7,6 @@ Standards-Version: 3.6.0 Package: modest Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends}, operator-wizard, osso-af-settings Description: an e-mail client for platforms with modest resources, built on top of the tinymail framework diff --git a/src/maemo/modest-msg-edit-window.c b/src/maemo/modest-msg-edit-window.c index 714fe77..6e74091 100644 --- a/src/maemo/modest-msg-edit-window.c +++ b/src/maemo/modest-msg-edit-window.c @@ -26,13 +26,16 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + +#include #include #include #include #include #include -#include +#include + #include #include @@ -53,7 +56,13 @@ #include #include #include + +#ifdef MODEST_HILDON_VERSION_0 #include +#else +#include +#endif /*MODEST_HILDON_VERSION_0 */ + #define DEFAULT_FONT_SIZE 3 #define DEFAULT_FONT 2 diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index 5e34e77..01a908b 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -30,7 +30,13 @@ #include #include #include + +#ifdef MODEST_HILDON_VERSION_0 #include +#else +#include +#endif /*MODEST_HILDON_VERSION_0*/ + #include #include @@ -103,8 +109,11 @@ modest_platform_get_file_icon_name (const gchar* name, const gchar* mime_type, mime_str = g_string_new (mime_type); g_string_ascii_down (mime_str); } - +#ifdef MODEST_HILDON_VERSION_0 icons = osso_mime_get_icon_names (mime_str->str, NULL); +#else + icons = hildon_mime_get_icon_names (mime_str->str, NULL); +#endif /*MODEST_HILDON_VERSION_0*/ for (cursor = icons; cursor; ++cursor) { if (gtk_icon_theme_has_icon (gtk_icon_theme_get_default(), *cursor)) { icon_name = g_strdup (*cursor);