Bug 393842 Move xpfe/components/search to suite/common r=kairo,sr=neil

This commit is contained in:
bugzilla%standard8.plus.com 2007-09-07 14:25:04 +00:00
Родитель 59111f8f8a
Коммит 7e76774d39
5 изменённых файлов: 61 добавлений и 31 удалений

Просмотреть файл

@ -42,11 +42,15 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
ifeq ($(OS_ARCH),WINNT)
MODULE = suitebrowser
XPIDL_MODULE = suitebrowser
XPIDLSRCS = nsIUrlWidget.idl
XPIDLSRCS = \
nsISearchService.idl \
$(NULL)
ifeq ($(OS_ARCH),WINNT)
XPIDLSRCS += nsIUrlWidget.idl
endif
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -42,28 +42,38 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
ifeq ($(OS_ARCH),WINNT)
MODULE = suitebrowser
LIBRARY_NAME = suitebrowser_s
META_COMPONENT = suite
REQUIRES = \
xpcom \
string \
docshell \
dom \
content \
js \
widget \
gfx \
layout \
necko \
$(NULL)
REQUIRES = \
xpcom \
string \
docshell \
dom \
content \
js \
widget \
gfx \
layout \
necko \
pref \
rdf \
uconv \
intl \
appcomps \
$(NULL)
CPPSRCS = nsUrlWidget.cpp
CPPSRCS = \
nsInternetSearchService.cpp \
nsLocalSearchService.cpp \
$(NULL)
ifeq ($(OS_ARCH),WINNT)
CPPSRCS += nsUrlWidget.cpp
endif
FORCE_STATIC_LIB = 1
endif
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -58,7 +58,6 @@ tier_app_dirs += editor/ui
endif
tier_app_dirs += \
xpfe/components/search \
xpfe/components/bookmarks \
themes \
suite \

Просмотреть файл

@ -60,8 +60,8 @@ REQUIRES = \
rdf \
unicharutil \
windowwatcher \
suitemigration \
suitebrowser \
suitemigration \
appcomps \
$(NULL)
@ -72,23 +72,14 @@ CPPSRCS = \
LOCAL_INCLUDES += \
-I$(topsrcdir)/suite/profile \
-I$(topsrcdir)/suite/profile/migration/src \
-I$(topsrcdir)/suite/browser/src \
$(NULL)
SHARED_LIBRARY_LIBS = \
../profile/$(LIB_PREFIX)suiteprofile_s.$(LIB_SUFFIX) \
../profile/migration/src/$(LIB_PREFIX)suitemigration_s.$(LIB_SUFFIX) \
$(NULL)
# For now browser items are windows only
ifeq ($(OS_ARCH),WINNT)
LOCAL_INCLUDES += \
-I$(topsrcdir)/suite/browser/src \
$(NULL)
SHARED_LIBRARY_LIBS += \
../browser/src/$(LIB_PREFIX)suitebrowser_s.$(LIB_SUFFIX) \
$(NULL)
endif # WINNT
$(NULL)
# Link to gkgfx for GNOME shell service
ifeq ($(MOZ_WIDGET_TOOLKIT), gtk2)

Просмотреть файл

@ -41,6 +41,10 @@
#include "nsProfileMigrator.h"
#include "nsSeamonkeyProfileMigrator.h"
#include "nsThunderbirdProfileMigrator.h"
#include "nsInternetSearchService.h"
#include "nsLocalSearchService.h"
#include "nsIGenericFactory.h"
#include "nsRDFCID.h"
#if defined(XP_WIN)
#include "nsUrlWidget.h"
@ -55,6 +59,8 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsSuiteDirectoryProvider)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsProfileMigrator)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSeamonkeyProfileMigrator)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsThunderbirdProfileMigrator)
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(LocalSearchDataSource, Init)
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(InternetSearchDataSource, Init)
/////////////////////////////////////////////////////////////////////////////
@ -84,7 +90,27 @@ static const nsModuleComponentInfo components[] = {
{ "Thunderbird Profile Migrator",
NS_THUNDERBIRDPROFILEMIGRATOR_CID,
NS_SUITEPROFILEMIGRATOR_CONTRACTID_PREFIX "thunderbird",
nsThunderbirdProfileMigratorConstructor }
nsThunderbirdProfileMigratorConstructor },
{ "Local Search",
NS_RDFFINDDATASOURCE_CID,
NS_LOCALSEARCH_SERVICE_CONTRACTID,
LocalSearchDataSourceConstructor },
{ "Local Search",
NS_RDFFINDDATASOURCE_CID,
NS_LOCALSEARCH_DATASOURCE_CONTRACTID,
LocalSearchDataSourceConstructor },
{ "Internet Search",
NS_RDFSEARCHDATASOURCE_CID,
NS_INTERNETSEARCH_SERVICE_CONTRACTID,
InternetSearchDataSourceConstructor },
{ "Internet Search",
NS_RDFSEARCHDATASOURCE_CID,
NS_INTERNETSEARCH_DATASOURCE_CONTRACTID,
InternetSearchDataSourceConstructor }
};
NS_IMPL_NSGETMODULE(SuiteModule, components)