Description: Support building globalmenu-extension from the Thunderbird source Author: Chris Coulson Forwarded: not-needed --- a/mozilla/config/autoconf.mk.in +++ b/mozilla/config/autoconf.mk.in @@ -555,6 +555,11 @@ MOZ_ENABLE_D3D10_LAYER = @MOZ_ENABLE_D3 MOZ_GTK2_CFLAGS = @MOZ_GTK2_CFLAGS@ MOZ_GTK2_LIBS = @MOZ_GTK2_LIBS@ +DBUSMENU_CFLAGS = @DBUSMENU_CFLAGS@ +DBUSMENU_LIBS = @DBUSMENU_LIBS@ + +UNITY_GLOBALMENU = @UNITY_GLOBALMENU@ + MOZ_QT_CFLAGS = @MOZ_QT_CFLAGS@ MOZ_QT_LIBS = @MOZ_QT_LIBS@ MOZ_ENABLE_QTNETWORK = @MOZ_ENABLE_QTNETWORK@ --- a/mozilla/config/system-headers +++ b/mozilla/config/system-headers @@ -395,6 +395,10 @@ LFocusBox.h LGrafPortView.h LHandleStream.h libc_r.h +#ifdef UNITY_GLOBALMENU +libdbusmenu-glib/server.h +libdbusmenu-gtk/menuitem.h +#endif libelf.h libelf/libelf.h libgen.h @@ -1030,6 +1034,11 @@ osso-mem.h #ifdef MOZ_ENABLE_GIO gio/gio.h #endif +#ifdef UNITY_GLOBALMENU +#ifndef MOZ_ENABLE_GIO +gio/gio.h +#endif +#endif #ifdef MOZ_ENABLE_LIBCONIC conic/conicconnection.h conic/conicconnectionevent.h --- a/mozilla/configure.in +++ b/mozilla/configure.in @@ -8810,6 +8810,20 @@ AC_SUBST(MOZ_CAIRO_LIBS) AC_SUBST(MOZ_TREE_PIXMAN) dnl ======================================================== +dnl Dbus-Menu +dnl ======================================================== + +UNITY_GLOBALMENU=0 +if test `echo "$MOZ_EXTENSIONS" | grep -c globalmenu` -ne 0; then + PKG_CHECK_MODULES(DBUSMENU, dbusmenu-gtk-0.4 gio-2.0) + UNITY_GLOBALMENU=1 + AC_SUBST(DBUSMENU_CFLAGS) + AC_SUBST(DBUSMENU_LIBS) + AC_DEFINE(UNITY_GLOBALMENU) +fi +AC_SUBST(UNITY_GLOBALMENU) + +dnl ======================================================== dnl qcms dnl ========================================================