gecko-dev/browser/components/build/Makefile.in

101 lines
2.1 KiB
Makefile
Raw Normal View History

DEPTH=../../..
topsrcdir=@top_srcdir@
srcdir=@srcdir@
VPATH=@srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = browsercomps
LIBRARY_NAME = browsercomps
SHORT_LIBNAME = brwsrcmp
EXPORT_LIBRARY = 1
IS_COMPONENT = 1
MODULE_NAME = nsBrowserCompsModule
MOZILLA_INTERNAL_API = 1
2002-09-28 01:31:19 +00:00
REQUIRES = \
docshell \
2002-09-28 01:31:19 +00:00
xpcom \
string \
pref \
rdf \
uriloader \
webbrowserpersist \
2002-09-28 01:31:19 +00:00
intl \
necko \
nkcache \
txmgr \
chardet \
bookmarks \
2004-03-03 07:52:59 +00:00
migration \
shellservice \
xulapp \
2002-09-28 01:31:19 +00:00
$(NULL)
EXPORTS = nsBrowserCompsCID.h
CPPSRCS = nsModule.cpp \
$(NULL)
ifeq ($(OS_ARCH),WINNT)
DEFINES += -DPSTOREC_DLL=\"$(subst \,\\,$(WINDIR))\\system32\\pstorec.dll\"
2003-04-13 00:42:00 +00:00
OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32)
endif
2003-04-13 00:42:00 +00:00
LOCAL_INCLUDES = \
-I$(srcdir)/../bookmarks/src \
2004-03-03 07:52:59 +00:00
-I$(srcdir)/../migration/src \
2004-03-08 10:27:18 +00:00
-I$(srcdir)/../shell/src \
-I$(srcdir)/../feeds/src \
2002-09-28 01:31:19 +00:00
$(NULL)
ifeq ($(OS_ARCH),WINNT)
OS_LIBS += $(call EXPAND_LIBNAME,version)
endif
SHARED_LIBRARY_LIBS = \
../migration/src/$(LIB_PREFIX)migration_s.$(LIB_SUFFIX) \
../feeds/src/$(LIB_PREFIX)browser_feeds_s.$(LIB_SUFFIX) \
$(NULL)
2005-01-18 20:55:59 +00:00
ifneq (,$(filter windows mac cocoa gtk2, $(MOZ_WIDGET_TOOLKIT)))
SHARED_LIBRARY_LIBS += ../shell/src/$(LIB_PREFIX)shellservice_s.$(LIB_SUFFIX)
endif
ifndef MOZ_PLACES_BOOKMARKS
SHARED_LIBRARY_LIBS += \
../bookmarks/src/$(LIB_PREFIX)bookmarks_s.$(LIB_SUFFIX) \
$(NULL)
endif
ifdef MOZ_SAFE_BROWSING
REQUIRES += safebrowsing
LOCAL_INCLUDES += -I$(srcdir)/../safebrowsing/src
SHARED_LIBRARY_LIBS += ../safebrowsing/src/$(LIB_PREFIX)safebrowsing_s.$(LIB_SUFFIX)
endif
# Link to gkgfx for GNOME shell service
ifeq ($(MOZ_WIDGET_TOOLKIT), gtk2)
EXTRA_DSO_LIBS += gkgfx
endif
EXTRA_DSO_LDOPTS += \
$(LIBS_DIR) \
$(EXTRA_DSO_LIBS) \
$(MOZ_UNICHARUTIL_LIBS) \
$(LIBXUL_DIST)/../modules/libreg/src/$(LIB_PREFIX)mozreg_s.$(LIB_SUFFIX) \
$(MOZ_JS_LIBS) \
$(MOZ_COMPONENT_LIBS) \
2002-09-28 01:31:19 +00:00
$(NULL)
# Mac: Need to link with CoreFoundation for Mac Migrators (PList reading code)
# GTK2: Need to link with glib for GNOME shell service
ifneq (,$(filter mac cocoa gtk2,$(MOZ_WIDGET_TOOLKIT)))
2004-03-03 21:26:48 +00:00
EXTRA_DSO_LDOPTS += \
$(TK_LIBS) \
$(NULL)
endif
include $(topsrcdir)/config/rules.mk