зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1344038
- Remove --disable-gio. r=karlt
--HG-- extra : rebase_source : 3b5b820536b0e9b1fb1da3a16c444ed7839770b9
This commit is contained in:
Родитель
3deb62f2b2
Коммит
94c16743bb
|
@ -179,7 +179,6 @@ def old_configure_options(*options):
|
|||
'--enable-gamepad',
|
||||
'--enable-gconf',
|
||||
'--enable-gczeal',
|
||||
'--enable-gio',
|
||||
'--enable-gnomeui',
|
||||
'--enable-gold',
|
||||
'--enable-hardware-aec-ns',
|
||||
|
|
|
@ -1271,9 +1271,7 @@ hunspell.hxx
|
|||
#if MOZ_SYSTEM_BZ2==1
|
||||
bzlib.h
|
||||
#endif
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
gio/gio.h
|
||||
#endif
|
||||
#if MOZ_SYSTEM_LIBEVENT==1
|
||||
event.h
|
||||
#else
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
#include "mozilla/EndianUtils.h"
|
||||
#include <algorithm>
|
||||
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
#include <gio/gio.h>
|
||||
#endif
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
@ -168,7 +166,6 @@ moz_gtk_icon_size(const char* name)
|
|||
return GTK_ICON_SIZE_MENU;
|
||||
}
|
||||
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
static int32_t
|
||||
GetIconSize(nsIMozIconURI* aIconURI)
|
||||
{
|
||||
|
@ -301,7 +298,6 @@ nsIconChannel::InitWithGIO(nsIMozIconURI* aIconURI)
|
|||
g_object_unref(buf);
|
||||
return rv;
|
||||
}
|
||||
#endif // MOZ_ENABLE_GIO
|
||||
|
||||
nsresult
|
||||
nsIconChannel::Init(nsIURI* aURI)
|
||||
|
@ -316,11 +312,7 @@ nsIconChannel::Init(nsIURI* aURI)
|
|||
nsAutoCString stockIcon;
|
||||
iconURI->GetStockIcon(stockIcon);
|
||||
if (stockIcon.IsEmpty()) {
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
return InitWithGIO(iconURI);
|
||||
#else
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Search for stockIcon
|
||||
|
|
|
@ -542,7 +542,7 @@ nsIOService::GetProtocolHandler(const char* scheme, nsIProtocolHandler* *result)
|
|||
return rv;
|
||||
}
|
||||
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
// check to see whether GVFS can handle this URI scheme. if it can
|
||||
// create a nsIURI for the "scheme:", then we assume it has support for
|
||||
// the requested protocol. otherwise, we failover to using the default
|
||||
|
|
|
@ -10,7 +10,7 @@ SOURCES += [
|
|||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
CXXFLAGS += CONFIG['MOZ_GIO_CFLAGS']
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
|
||||
with Files('**'):
|
||||
BUG_COMPONENT = ('Core', 'Widget: Gtk')
|
||||
|
|
|
@ -57,7 +57,6 @@ GLIB_VERSION=2.22
|
|||
# 2_26 is the earliest version we can set GLIB_VERSION_MIN_REQUIRED.
|
||||
# The macro won't be used when compiling with earlier versions anyway.
|
||||
GLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26
|
||||
GIO_VERSION=2.22
|
||||
CAIRO_VERSION=1.10
|
||||
GTK2_VERSION=2.18.0
|
||||
GTK3_VERSION=3.4.0
|
||||
|
@ -2537,49 +2536,16 @@ MOZ_ANDROID_INSTALL_TRACKING
|
|||
|
||||
|
||||
dnl ========================================================
|
||||
dnl = GIO and GConf support module
|
||||
dnl = GConf support module
|
||||
dnl ========================================================
|
||||
|
||||
if test "$MOZ_X11"
|
||||
then
|
||||
dnl build the GIO extension by default only when the
|
||||
dnl GTK2 toolkit is in use.
|
||||
if test "$MOZ_ENABLE_GTK"
|
||||
then
|
||||
MOZ_ENABLE_GIO=1
|
||||
MOZ_ENABLE_GCONF=1
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl = GIO support module
|
||||
dnl ========================================================
|
||||
MOZ_ARG_DISABLE_BOOL(gio,
|
||||
[ --disable-gio Disable GIO support],
|
||||
MOZ_ENABLE_GIO=,
|
||||
MOZ_ENABLE_GIO=force)
|
||||
|
||||
if test "$MOZ_ENABLE_GIO" -a "$MOZ_ENABLE_GTK"
|
||||
then
|
||||
if test "$MOZ_WIDGET_TOOLKIT" = gtk2
|
||||
then
|
||||
PKG_CHECK_MODULES(_GTKCHECK, gtk+-2.0 >= 2.14, ,
|
||||
[AC_MSG_ERROR([* * * Could not find gtk+-2.0 > 2.14. Required for build with gio.])])
|
||||
fi
|
||||
PKG_CHECK_MODULES(MOZ_GIO, gio-2.0 >= $GIO_VERSION,[
|
||||
MOZ_GIO_LIBS=`echo $MOZ_GIO_LIBS | sed 's/-llinc\>//'`
|
||||
MOZ_ENABLE_GIO=1
|
||||
AC_DEFINE(MOZ_ENABLE_GIO)
|
||||
],[
|
||||
if test "$MOZ_ENABLE_GIO" = "force"
|
||||
then
|
||||
AC_MSG_ERROR([* * * Could not find gio-2.0 >= $GIO_VERSION])
|
||||
fi
|
||||
MOZ_ENABLE_GIO=
|
||||
])
|
||||
fi
|
||||
|
||||
AC_SUBST(MOZ_ENABLE_GIO)
|
||||
|
||||
dnl ========================================================
|
||||
dnl = GConf support module
|
||||
dnl ========================================================
|
||||
|
|
|
@ -2648,7 +2648,7 @@ NS_IMETHODIMP nsDownload::SetRedirects(nsIArray* aRedirects) {
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
static void gio_set_metadata_done(GObject *source_obj, GAsyncResult *res, gpointer user_data)
|
||||
{
|
||||
GError *err = nullptr;
|
||||
|
@ -2817,7 +2817,7 @@ nsDownload::SetState(DownloadState aState)
|
|||
#endif
|
||||
}
|
||||
#endif
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
// Use GIO to store the source URI for later display in the file manager.
|
||||
GFile* gio_file = g_file_new_for_path(NS_ConvertUTF16toUTF8(path).get());
|
||||
nsCString source_uri;
|
||||
|
|
|
@ -59,7 +59,7 @@ DownloadPlatform* DownloadPlatform::GetDownloadPlatform()
|
|||
return gDownloadPlatformService;
|
||||
}
|
||||
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
static void gio_set_metadata_done(GObject *source_obj, GAsyncResult *res, gpointer user_data)
|
||||
{
|
||||
GError *err = nullptr;
|
||||
|
@ -131,7 +131,7 @@ nsresult DownloadPlatform::DownloadDone(nsIURI* aSource, nsIURI* aReferrer, nsIF
|
|||
#endif
|
||||
}
|
||||
#endif
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
#ifdef MOZ_WIDGET_GTK
|
||||
// Use GIO to store the source URI for later display in the file manager.
|
||||
GFile* gio_file = g_file_new_for_path(NS_ConvertUTF16toUTF8(path).get());
|
||||
nsCString source_uri;
|
||||
|
|
|
@ -15,12 +15,11 @@ if CONFIG['MOZ_ENABLE_GCONF']:
|
|||
'nsGConfService.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GIO']:
|
||||
SOURCES += [
|
||||
'nsGIOService.cpp',
|
||||
'nsGSettingsService.cpp',
|
||||
'nsPackageKitService.cpp'
|
||||
]
|
||||
SOURCES += [
|
||||
'nsGIOService.cpp',
|
||||
'nsGSettingsService.cpp',
|
||||
'nsPackageKitService.cpp'
|
||||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
|
@ -29,9 +28,6 @@ LOCAL_INCLUDES += [
|
|||
]
|
||||
|
||||
CXXFLAGS += CONFIG['MOZ_GCONF_CFLAGS']
|
||||
CXXFLAGS += CONFIG['MOZ_GIO_CFLAGS']
|
||||
CXXFLAGS += CONFIG['GLIB_CFLAGS']
|
||||
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
|
||||
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
|
|
|
@ -12,36 +12,30 @@
|
|||
#include "nsGConfService.h"
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGConfService, Init)
|
||||
#endif
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
#include "nsGIOService.h"
|
||||
#include "nsGSettingsService.h"
|
||||
#include "nsPackageKitService.h"
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsGIOService)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGSettingsService, Init)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPackageKitService, Init)
|
||||
#endif
|
||||
#include "nsSystemAlertsService.h"
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsSystemAlertsService, Init)
|
||||
|
||||
#ifdef MOZ_ENABLE_GCONF
|
||||
NS_DEFINE_NAMED_CID(NS_GCONFSERVICE_CID);
|
||||
#endif
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
NS_DEFINE_NAMED_CID(NS_GIOSERVICE_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_GSETTINGSSERVICE_CID);
|
||||
NS_DEFINE_NAMED_CID(NS_PACKAGEKITSERVICE_CID);
|
||||
#endif
|
||||
NS_DEFINE_NAMED_CID(NS_SYSTEMALERTSSERVICE_CID);
|
||||
|
||||
static const mozilla::Module::CIDEntry kGnomeCIDs[] = {
|
||||
#ifdef MOZ_ENABLE_GCONF
|
||||
{ &kNS_GCONFSERVICE_CID, false, nullptr, nsGConfServiceConstructor },
|
||||
#endif
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
{ &kNS_GIOSERVICE_CID, false, nullptr, nsGIOServiceConstructor },
|
||||
{ &kNS_GSETTINGSSERVICE_CID, false, nullptr, nsGSettingsServiceConstructor },
|
||||
{ &kNS_PACKAGEKITSERVICE_CID, false, nullptr, nsPackageKitServiceConstructor },
|
||||
#endif
|
||||
{ &kNS_SYSTEMALERTSSERVICE_CID, false, nullptr, nsSystemAlertsServiceConstructor },
|
||||
{ nullptr }
|
||||
};
|
||||
|
@ -50,11 +44,9 @@ static const mozilla::Module::ContractIDEntry kGnomeContracts[] = {
|
|||
#ifdef MOZ_ENABLE_GCONF
|
||||
{ NS_GCONFSERVICE_CONTRACTID, &kNS_GCONFSERVICE_CID },
|
||||
#endif
|
||||
#ifdef MOZ_ENABLE_GIO
|
||||
{ NS_GIOSERVICE_CONTRACTID, &kNS_GIOSERVICE_CID },
|
||||
{ NS_GSETTINGSSERVICE_CONTRACTID, &kNS_GSETTINGSSERVICE_CID },
|
||||
{ NS_PACKAGEKITSERVICE_CONTRACTID, &kNS_PACKAGEKITSERVICE_CID },
|
||||
#endif
|
||||
{ NS_SYSTEMALERTSERVICE_CONTRACTID, &kNS_SYSTEMALERTSSERVICE_CID },
|
||||
{ nullptr }
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче