Backed out changeset 7c0438df6767

This commit is contained in:
Bas Schouten 2010-08-27 22:52:02 +00:00
parent 4d1e606675
commit f0e8d2cc0b
8 changed files with 18 additions and 24 deletions

View File

@ -92,12 +92,6 @@ endif
CPPSRCS = nsBrowserApp.cpp
LIBS += \
$(call EXPAND_LIBNAME_PATH,browsercomps,../components/build) \
$(call EXPAND_LIBNAME_PATH,unicharutil_external_s,$(LIBXUL_DIST)/lib) \
$(LIBXUL_DIST)/lib/$(LIB_PREFIX)mozreg_s.$(LIB_SUFFIX) \
$(NULL)
LOCAL_INCLUDES += -I$(topsrcdir)/toolkit/xre
ifdef BUILD_STATIC_LIBS

View File

@ -106,8 +106,6 @@ public:
~ScopedLogging() { NS_LogTerm(); }
};
extern const mozilla::Module kBrowserModule;
int main(int argc, char* argv[])
{
ScopedLogging log;
@ -157,8 +155,6 @@ int main(int argc, char* argv[])
return 255;
}
XRE_AddStaticComponent(&kBrowserModule);
int result = XRE_main(argc, argv, appData);
XRE_FreeAppData(appData);
if (appEnv)

View File

@ -7,15 +7,18 @@ include $(DEPTH)/config/autoconf.mk
MODULE = browsercomps
LIBRARY_NAME = browsercomps
ifdef LIBXUL_SDK
SHORT_LIBNAME = brwsrcmp
IS_COMPONENT = 1
MODULE_NAME = nsBrowserCompsModule
FORCE_SHARED_LIB = 1
else
FORCE_STATIC_LIB = 1
DEFINES += -DBROWSERCOMPS_LINK_STATICALLY
# Because we are an application component, link against the CRT statically
# (on Windows, but only if we're not building our own CRT for jemalloc)
ifndef MOZ_MEMORY
USE_STATIC_LIBS = 1
endif
EXPORTS = nsBrowserCompsCID.h
CPPSRCS = nsModule.cpp \

View File

@ -237,13 +237,12 @@ static const mozilla::Module::CategoryEntry kBrowserCategories[] = {
{ NULL }
};
extern const mozilla::Module kBrowserModule = {
static const mozilla::Module kBrowserModule = {
mozilla::Module::kVersion,
kBrowserCIDs,
kBrowserContracts,
kBrowserCategories
};
#ifndef BROWSERCOMPS_LINK_STATICALLY
NSMODULE_DEFN(nsBrowserCompsModule) = &kBrowserModule;
#endif

View File

@ -63,4 +63,9 @@ CPPSRCS = DirectoryProvider.cpp
LOCAL_INCLUDES = -I$(srcdir)/../build
EXTRA_DSO_LDOPTS = \
$(XPCOM_GLUE_LDOPTS) \
$(NSPR_LIBS) \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@ -110,8 +110,6 @@ endif
ifndef LIBXUL_SDK
INSTALL_SDK = 1
else
DEFINES += -DLIBXUL_SDK=1
endif
include $(topsrcdir)/toolkit/mozapps/installer/packager.mk

View File

@ -334,8 +334,10 @@
@BINPATH@/components/nsSessionStore.js
@BINPATH@/components/nsURLFormatter.manifest
@BINPATH@/components/nsURLFormatter.js
#ifdef LIBXUL_SDK
#ifndef XP_OS2
@BINPATH@/components/@DLL_PREFIX@browsercomps@DLL_SUFFIX@
#else
@BINPATH@/components/brwsrcmp@DLL_SUFFIX@
#endif
@BINPATH@/components/txEXSLTRegExFunctions.manifest
@BINPATH@/components/txEXSLTRegExFunctions.js

View File

@ -37,9 +37,6 @@ chrome/toolkit.manifest
component.reg
components/browser.manifest
components/components.list
#ifndef LIBXUL_SDK
components/@DLL_PREFIX@browsercomps@DLL_SUFFIX@
#endif
components/@DLL_PREFIX@browserdirprovider@DLL_SUFFIX@
components/@DLL_PREFIX@brwsrdir@DLL_SUFFIX@
components/@DLL_PREFIX@myspell@DLL_SUFFIX@