mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 330053 Make SeaMonkey capable of generating a reasonable build with MOZ_XUL_APP set. Part 5 - First stab at sorting out inclusion of modules in xpfe and toolkit. r=benjamin,sr=Neil
This commit is contained in:
parent
653c2b7540
commit
03e756f558
@ -102,16 +102,22 @@ SHARED_LIBRARY_LIBS = \
|
|||||||
../startup/src/$(LIB_PREFIX)appstartup_s.$(LIB_SUFFIX) \
|
../startup/src/$(LIB_PREFIX)appstartup_s.$(LIB_SUFFIX) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
ifndef MOZ_SUITE
|
||||||
|
# XXX Suite isn't ready to build this just yet
|
||||||
ifdef MOZ_XPINSTALL
|
ifdef MOZ_XPINSTALL
|
||||||
SHARED_LIBRARY_LIBS += ../downloads/src/$(LIB_PREFIX)download_s.$(LIB_SUFFIX)
|
SHARED_LIBRARY_LIBS += ../downloads/src/$(LIB_PREFIX)download_s.$(LIB_SUFFIX)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef ALERTS_SERVICE
|
ifdef ALERTS_SERVICE
|
||||||
SHARED_LIBRARY_LIBS += ../alerts/src/$(LIB_PREFIX)alerts_s.$(LIB_SUFFIX)
|
SHARED_LIBRARY_LIBS += ../alerts/src/$(LIB_PREFIX)alerts_s.$(LIB_SUFFIX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifndef MOZ_SUITE
|
||||||
|
# XXX Suite isn't ready to build this just yet
|
||||||
SHARED_LIBRARY_LIBS += ../typeaheadfind/src/$(LIB_PREFIX)fastfind_s.$(LIB_SUFFIX)
|
SHARED_LIBRARY_LIBS += ../typeaheadfind/src/$(LIB_PREFIX)fastfind_s.$(LIB_SUFFIX)
|
||||||
EXTRA_DSO_LIBS = gkgfx
|
EXTRA_DSO_LIBS = gkgfx
|
||||||
|
endif
|
||||||
|
|
||||||
EXTRA_DSO_LDOPTS += \
|
EXTRA_DSO_LDOPTS += \
|
||||||
$(LIBS_DIR) \
|
$(LIBS_DIR) \
|
||||||
|
@ -44,12 +44,15 @@
|
|||||||
#include "nsAlertsService.h"
|
#include "nsAlertsService.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOZ_SUITE
|
||||||
|
// XXX Suite isn't ready to include this just yet
|
||||||
#ifdef MOZ_XPINSTALL
|
#ifdef MOZ_XPINSTALL
|
||||||
#include "nsDownloadManager.h"
|
#include "nsDownloadManager.h"
|
||||||
#include "nsDownloadProxy.h"
|
#include "nsDownloadProxy.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "nsTypeAheadFind.h"
|
#include "nsTypeAheadFind.h"
|
||||||
|
#endif // MOZ_SUITE
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@ -60,12 +63,15 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsUserInfo)
|
|||||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAlertsService)
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAlertsService)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MOZ_SUITE
|
||||||
|
// XXX Suite isn't ready to include this just yet
|
||||||
#ifdef MOZ_XPINSTALL
|
#ifdef MOZ_XPINSTALL
|
||||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsDownloadManager, Init)
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsDownloadManager, Init)
|
||||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDownloadProxy)
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDownloadProxy)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTypeAheadFind)
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTypeAheadFind)
|
||||||
|
#endif // MOZ_SUITE
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@ -86,6 +92,8 @@ static const nsModuleComponentInfo components[] =
|
|||||||
NS_ALERTSERVICE_CONTRACTID,
|
NS_ALERTSERVICE_CONTRACTID,
|
||||||
nsAlertsServiceConstructor },
|
nsAlertsServiceConstructor },
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef MOZ_SUITE
|
||||||
|
// XXX Suite isn't ready to include this just yet
|
||||||
#ifdef MOZ_XPINSTALL
|
#ifdef MOZ_XPINSTALL
|
||||||
{ "Download Manager",
|
{ "Download Manager",
|
||||||
NS_DOWNLOADMANAGER_CID,
|
NS_DOWNLOADMANAGER_CID,
|
||||||
@ -101,6 +109,7 @@ static const nsModuleComponentInfo components[] =
|
|||||||
NS_TYPEAHEADFIND_CONTRACTID,
|
NS_TYPEAHEADFIND_CONTRACTID,
|
||||||
nsTypeAheadFindConstructor
|
nsTypeAheadFindConstructor
|
||||||
},
|
},
|
||||||
|
#endif // MOZ_SUITE
|
||||||
};
|
};
|
||||||
|
|
||||||
NS_IMPL_NSGETMODULE(nsToolkitCompsModule, components)
|
NS_IMPL_NSGETMODULE(nsToolkitCompsModule, components)
|
||||||
|
@ -86,18 +86,23 @@ ifndef MOZ_XULRUNNER
|
|||||||
DIRS += \
|
DIRS += \
|
||||||
related \
|
related \
|
||||||
console \
|
console \
|
||||||
updates \
|
|
||||||
autocomplete \
|
autocomplete \
|
||||||
bookmarks \
|
bookmarks \
|
||||||
download-manager \
|
download-manager \
|
||||||
history \
|
history \
|
||||||
sidebar \
|
sidebar \
|
||||||
|
$(NULL)
|
||||||
|
# XXX When Suite is a fully fledged xul app, this ifdef can be reduced.
|
||||||
|
ifneq (11,$(MOZ_SUITE)$(MOZ_XUL_APP))
|
||||||
|
DIRS += \
|
||||||
|
updates \
|
||||||
startup \
|
startup \
|
||||||
alerts \
|
alerts \
|
||||||
extensions \
|
extensions \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(OS_ARCH),WINNT)
|
ifeq ($(OS_ARCH),WINNT)
|
||||||
ifndef MOZ_PHOENIX
|
ifndef MOZ_PHOENIX
|
||||||
|
@ -52,10 +52,18 @@ LIBXUL_LIBRARY = 1
|
|||||||
PACKAGE_FILE = appcomps.pkg
|
PACKAGE_FILE = appcomps.pkg
|
||||||
PACKAGE_VARS += MOZ_PHOENIX
|
PACKAGE_VARS += MOZ_PHOENIX
|
||||||
|
|
||||||
|
# don't build ALERTS_SERVICE for firefox, xulrunner or toolkit-based suite
|
||||||
|
ifndef MOZ_PHOENIX
|
||||||
|
ifndef MOZ_XULRUNNER
|
||||||
|
# XXX When Suite is a fully fledged xul app, this ifdef can be reduced.
|
||||||
|
ifneq (11,$(MOZ_SUITE)$(MOZ_XUL_APP))
|
||||||
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),windows gtk gtk2))
|
ifneq (,$(filter $(MOZ_GFX_TOOLKIT),windows gtk gtk2))
|
||||||
ALERTS_SERVICE=1
|
ALERTS_SERVICE=1
|
||||||
DEFINES += -DALERTS_SERVICE
|
DEFINES += -DALERTS_SERVICE
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
REQUIRES = xpcom \
|
REQUIRES = xpcom \
|
||||||
string \
|
string \
|
||||||
@ -114,9 +122,14 @@ SHARED_LIBRARY_LIBS += \
|
|||||||
../download-manager/src/$(LIB_PREFIX)downloadmanager_s.$(LIB_SUFFIX) \
|
../download-manager/src/$(LIB_PREFIX)downloadmanager_s.$(LIB_SUFFIX) \
|
||||||
../history/src/$(LIB_PREFIX)history_s.$(LIB_SUFFIX) \
|
../history/src/$(LIB_PREFIX)history_s.$(LIB_SUFFIX) \
|
||||||
../related/src/$(LIB_PREFIX)related_s.$(LIB_SUFFIX) \
|
../related/src/$(LIB_PREFIX)related_s.$(LIB_SUFFIX) \
|
||||||
|
$(NULL)
|
||||||
|
# XXX When Suite is a fully fledged xul app, this ifdef can be reduced.
|
||||||
|
ifneq (11,$(MOZ_SUITE)$(MOZ_XUL_APP))
|
||||||
|
SHARED_LIBRARY_LIBS += \
|
||||||
../startup/src/$(LIB_PREFIX)appstartup_s.$(LIB_SUFFIX) \
|
../startup/src/$(LIB_PREFIX)appstartup_s.$(LIB_SUFFIX) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef ALERTS_SERVICE
|
ifdef ALERTS_SERVICE
|
||||||
SHARED_LIBRARY_LIBS += \
|
SHARED_LIBRARY_LIBS += \
|
||||||
|
@ -52,16 +52,20 @@
|
|||||||
#include "nsDocShellCID.h"
|
#include "nsDocShellCID.h"
|
||||||
#include "nsDownloadManager.h"
|
#include "nsDownloadManager.h"
|
||||||
#include "nsDownloadProxy.h"
|
#include "nsDownloadProxy.h"
|
||||||
|
// XXX When Suite is a fully fledged xul app, this ifdef can be reduced.
|
||||||
|
#if !defined(MOZ_SUITE) || !defined(MOZ_XUL_APP)
|
||||||
#include "nsAppStartup.h"
|
#include "nsAppStartup.h"
|
||||||
#include "nsCommandLineService.h"
|
#include "nsCommandLineService.h"
|
||||||
#include "nsUserInfo.h"
|
#include "nsUserInfo.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER) && !defined(MOZ_MACBROWSER)
|
#endif // !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER) && !defined(MOZ_MACBROWSER)
|
||||||
|
|
||||||
#if !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER)
|
|
||||||
#if defined(ALERTS_SERVICE)
|
#if defined(ALERTS_SERVICE)
|
||||||
#include "nsAlertsService.h"
|
#include "nsAlertsService.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER)
|
||||||
#if defined(XP_WIN)
|
#if defined(XP_WIN)
|
||||||
#include "nsWindowsHooks.h"
|
#include "nsWindowsHooks.h"
|
||||||
#include "nsUrlWidget.h"
|
#include "nsUrlWidget.h"
|
||||||
@ -97,15 +101,19 @@ NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsBookmarksService, Init)
|
|||||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGlobalHistory, Init)
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGlobalHistory, Init)
|
||||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsDownloadManager, Init)
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsDownloadManager, Init)
|
||||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDownloadProxy)
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDownloadProxy)
|
||||||
|
// XXX When Suite is a fully fledged xul app, this ifdef can be reduced.
|
||||||
|
#if !defined(MOZ_SUITE) || !defined(MOZ_XUL_APP)
|
||||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCmdLineService)
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCmdLineService)
|
||||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAppStartup)
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAppStartup)
|
||||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUserInfo)
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUserInfo)
|
||||||
|
#endif
|
||||||
#endif // !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER) && !defined(MOZ_MACBROWSER)
|
#endif // !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER) && !defined(MOZ_MACBROWSER)
|
||||||
|
|
||||||
#if !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER)
|
|
||||||
#if defined(ALERTS_SERVICE)
|
#if defined(ALERTS_SERVICE)
|
||||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAlertsService)
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAlertsService)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER)
|
||||||
#if defined(XP_WIN)
|
#if defined(XP_WIN)
|
||||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsWindowsHooks)
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsWindowsHooks)
|
||||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsUrlWidget, Init)
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsUrlWidget, Init)
|
||||||
@ -194,6 +202,8 @@ static const nsModuleComponentInfo components[] = {
|
|||||||
nsGlobalHistoryConstructor },
|
nsGlobalHistoryConstructor },
|
||||||
{ "Global History", NS_GLOBALHISTORY_CID, NS_GLOBALHISTORY_AUTOCOMPLETE_CONTRACTID,
|
{ "Global History", NS_GLOBALHISTORY_CID, NS_GLOBALHISTORY_AUTOCOMPLETE_CONTRACTID,
|
||||||
nsGlobalHistoryConstructor },
|
nsGlobalHistoryConstructor },
|
||||||
|
// XXX When Suite is a fully fledged xul app, this ifdef can be reduced.
|
||||||
|
#if !defined(MOZ_SUITE) || !defined(MOZ_XUL_APP)
|
||||||
{ "App Startup Service",
|
{ "App Startup Service",
|
||||||
NS_SEAMONKEY_APPSTARTUP_CID,
|
NS_SEAMONKEY_APPSTARTUP_CID,
|
||||||
NS_APPSTARTUP_CONTRACTID,
|
NS_APPSTARTUP_CONTRACTID,
|
||||||
@ -209,6 +219,7 @@ static const nsModuleComponentInfo components[] = {
|
|||||||
NS_USERINFO_CONTRACTID,
|
NS_USERINFO_CONTRACTID,
|
||||||
nsUserInfoConstructor
|
nsUserInfoConstructor
|
||||||
},
|
},
|
||||||
|
#endif
|
||||||
{ "Related Links Handler", NS_RELATEDLINKSHANDLER_CID, NS_RELATEDLINKSHANDLER_CONTRACTID,
|
{ "Related Links Handler", NS_RELATEDLINKSHANDLER_CID, NS_RELATEDLINKSHANDLER_CONTRACTID,
|
||||||
RelatedLinksHandlerImplConstructor},
|
RelatedLinksHandlerImplConstructor},
|
||||||
#endif // !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER) && !defined(MOZ_MACBROWSER)
|
#endif // !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER) && !defined(MOZ_MACBROWSER)
|
||||||
@ -236,11 +247,11 @@ static const nsModuleComponentInfo components[] = {
|
|||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER)
|
|
||||||
#if defined(ALERTS_SERVICE)
|
#if defined(ALERTS_SERVICE)
|
||||||
{ "nsAlertsService", NS_ALERTSSERVICE_CID,
|
{ "nsAlertsService", NS_ALERTSSERVICE_CID,
|
||||||
NS_ALERTSERVICE_CONTRACTID, nsAlertsServiceConstructor },
|
NS_ALERTSERVICE_CONTRACTID, nsAlertsServiceConstructor },
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(MOZ_PHOENIX) && !defined(MOZ_XULRUNNER)
|
||||||
#if defined(XP_WIN)
|
#if defined(XP_WIN)
|
||||||
{ NS_IURLWIDGET_CLASSNAME, NS_IURLWIDGET_CID,
|
{ NS_IURLWIDGET_CLASSNAME, NS_IURLWIDGET_CID,
|
||||||
NS_IURLWIDGET_CONTRACTID, nsUrlWidgetConstructor },
|
NS_IURLWIDGET_CONTRACTID, nsUrlWidgetConstructor },
|
||||||
|
@ -43,7 +43,11 @@ VPATH = @srcdir@
|
|||||||
|
|
||||||
include $(DEPTH)/config/autoconf.mk
|
include $(DEPTH)/config/autoconf.mk
|
||||||
|
|
||||||
|
ifneq (11,$(MOZ_SUITE)$(MOZ_XUL_APP))
|
||||||
EXTRA_COMPONENTS = jsconsole-clhandler.js
|
EXTRA_COMPONENTS = jsconsole-clhandler.js
|
||||||
|
else
|
||||||
|
EXTRA_COMPONENTS = $(topsrcdir)/toolkit/components/console/jsconsole-clhandler.js
|
||||||
|
endif
|
||||||
|
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
||||||
|
@ -66,6 +66,11 @@ REQUIRES = xpcom \
|
|||||||
appcomps \
|
appcomps \
|
||||||
embed_base \
|
embed_base \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
ifdef MOZ_XUL_APP
|
||||||
|
REQUIRES += alerts toolkitcomps
|
||||||
|
endif
|
||||||
|
|
||||||
CPPSRCS = \
|
CPPSRCS = \
|
||||||
nsDownloadManager.cpp \
|
nsDownloadManager.cpp \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
@ -65,6 +65,9 @@
|
|||||||
#include "nsIAlertsService.h"
|
#include "nsIAlertsService.h"
|
||||||
#include "nsEmbedCID.h"
|
#include "nsEmbedCID.h"
|
||||||
#include "nsInt64.h"
|
#include "nsInt64.h"
|
||||||
|
#ifdef MOZ_XUL_APP
|
||||||
|
#include "nsToolkitCompsCID.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Outstanding issues/todo:
|
/* Outstanding issues/todo:
|
||||||
* 1. Implement pause/resume.
|
* 1. Implement pause/resume.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user