Make snav build statically for minimo. npodb

git-svn-id: svn://10.0.0.236/trunk@177106 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%meer.net 2005-08-04 16:50:33 +00:00
parent 0772d78e7b
commit 237e1d2aab
2 changed files with 9 additions and 1 deletions

View File

@ -48,9 +48,15 @@ IS_COMPONENT = 1
MOZILLA_INTERNAL_API = 1
ifdef MINIMO
MODULE_NAME = snav
EXPORT_LIBRARY = 1
else
ifdef MOZ_XUL_APP
XPI_NAME = snav
endif
endif
# We should really pull FIREFOX_VERSION and THUNDERBIRD_VERSION from
# # browser/config/version.txt mail/config/version.txt but we can't be assured
@ -99,8 +105,10 @@ CPPSRCS = nsSpatialNavigation.cpp \
# defined. We do not use this class anywhere in this
# extension.
ifndef MINIMO
DEFINES += -D_IMPL_NS_GFX
CPPSRCS += nsRect.cpp nsFont.cpp
endif
EXTRA_DSO_LDOPTS += $(LIBS_DIR) \
$(EXTRA_DSO_LIBS) \

View File

@ -105,7 +105,7 @@ nsSpatialNavigationService::Observe(nsISupports *aSubject, const char *aTopic, c
NS_ENSURE_SUCCESS(rv, rv);
windowWatcher->RegisterNotification(this);
nsCOMPtr<nsIPrefBranchInternal> prefBranch = do_GetService(NS_PREFSERVICE_CONTRACTID);
nsCOMPtr<nsIPrefBranch2> prefBranch = do_GetService(NS_PREFSERVICE_CONTRACTID);
NS_ENSURE_SUCCESS(rv, rv);
prefBranch->AddObserver("snav.", this, PR_FALSE);