2002-09-27 23:42:56 +00:00
|
|
|
DEPTH=../../..
|
|
|
|
topsrcdir=@top_srcdir@
|
|
|
|
srcdir=@srcdir@
|
|
|
|
VPATH=@srcdir@
|
2002-04-02 10:34:47 +00:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2002-09-27 23:42:56 +00:00
|
|
|
MODULE = browsercomps
|
|
|
|
LIBRARY_NAME = browsercomps
|
2002-11-05 22:00:46 +00:00
|
|
|
SHORT_LIBNAME = brwsrcmp
|
2002-04-02 10:34:47 +00:00
|
|
|
EXPORT_LIBRARY = 1
|
2002-09-27 23:42:56 +00:00
|
|
|
IS_COMPONENT = 1
|
2002-11-24 05:59:39 +00:00
|
|
|
MODULE_NAME = nsBrowserCompsModule
|
2006-08-10 14:06:47 +00:00
|
|
|
MOZILLA_INTERNAL_API = 1
|
2002-04-02 10:34:47 +00:00
|
|
|
|
2002-09-28 01:31:19 +00:00
|
|
|
REQUIRES = \
|
2006-09-21 17:20:43 +00:00
|
|
|
docshell \
|
2002-09-28 01:31:19 +00:00
|
|
|
xpcom \
|
|
|
|
string \
|
|
|
|
pref \
|
|
|
|
rdf \
|
2005-06-23 02:25:06 +00:00
|
|
|
uriloader \
|
|
|
|
webbrowserpersist \
|
2002-09-28 01:31:19 +00:00
|
|
|
intl \
|
|
|
|
necko \
|
2003-04-15 04:21:24 +00:00
|
|
|
nkcache \
|
|
|
|
txmgr \
|
2006-09-21 17:20:43 +00:00
|
|
|
chardet \
|
2003-04-15 04:21:24 +00:00
|
|
|
bookmarks \
|
2004-03-03 07:52:59 +00:00
|
|
|
migration \
|
2004-03-08 09:56:16 +00:00
|
|
|
shellservice \
|
2004-06-17 21:23:51 +00:00
|
|
|
xulapp \
|
2002-09-28 01:31:19 +00:00
|
|
|
$(NULL)
|
2002-04-02 10:34:47 +00:00
|
|
|
|
2002-09-27 23:42:56 +00:00
|
|
|
EXPORTS = nsBrowserCompsCID.h
|
2002-04-02 10:34:47 +00:00
|
|
|
|
2002-09-27 23:42:56 +00:00
|
|
|
CPPSRCS = nsModule.cpp \
|
|
|
|
$(NULL)
|
2002-04-02 10:34:47 +00:00
|
|
|
|
2003-04-14 23:28:49 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2004-03-03 21:00:30 +00:00
|
|
|
DEFINES += -DPSTOREC_DLL=\"$(subst \,\\,$(WINDIR))\\system32\\pstorec.dll\"
|
2004-02-15 01:49:37 +00:00
|
|
|
|
2003-04-13 00:42:00 +00:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32)
|
2003-04-14 23:28:49 +00:00
|
|
|
endif
|
2003-04-13 00:42:00 +00:00
|
|
|
|
2002-09-27 23:42:56 +00:00
|
|
|
LOCAL_INCLUDES = \
|
2003-04-15 04:21:24 +00:00
|
|
|
-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 \
|
2006-10-09 23:57:40 +00:00
|
|
|
-I$(srcdir)/../feeds/src \
|
2002-09-28 01:31:19 +00:00
|
|
|
$(NULL)
|
2006-07-18 19:41:12 +00:00
|
|
|
|
2004-02-15 01:49:37 +00:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,version)
|
|
|
|
endif
|
|
|
|
|
2002-09-27 23:42:56 +00:00
|
|
|
SHARED_LIBRARY_LIBS = \
|
2006-02-14 15:57:04 +00:00
|
|
|
../migration/src/$(LIB_PREFIX)migration_s.$(LIB_SUFFIX) \
|
2006-10-09 23:57:40 +00:00
|
|
|
../feeds/src/$(LIB_PREFIX)browser_feeds_s.$(LIB_SUFFIX) \
|
2004-03-08 10:28:57 +00:00
|
|
|
$(NULL)
|
2004-02-15 23:51:10 +00:00
|
|
|
|
2005-01-18 20:55:59 +00:00
|
|
|
ifneq (,$(filter windows mac cocoa gtk2, $(MOZ_WIDGET_TOOLKIT)))
|
2006-02-14 15:57:04 +00:00
|
|
|
SHARED_LIBRARY_LIBS += ../shell/src/$(LIB_PREFIX)shellservice_s.$(LIB_SUFFIX)
|
2004-07-15 22:51:19 +00:00
|
|
|
endif
|
|
|
|
|
2006-11-04 04:48:06 +00:00
|
|
|
ifndef MOZ_PLACES_BOOKMARKS
|
2005-12-16 05:17:33 +00:00
|
|
|
SHARED_LIBRARY_LIBS += \
|
2006-02-14 15:57:04 +00:00
|
|
|
../bookmarks/src/$(LIB_PREFIX)bookmarks_s.$(LIB_SUFFIX) \
|
2005-12-16 05:17:33 +00:00
|
|
|
$(NULL)
|
2005-11-08 02:25:22 +00:00
|
|
|
endif
|
|
|
|
|
2006-05-19 20:29:24 +00:00
|
|
|
ifdef MOZ_SAFE_BROWSING
|
2006-05-19 23:59:09 +00:00
|
|
|
REQUIRES += safebrowsing
|
2006-05-19 20:29:24 +00:00
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/../safebrowsing/src
|
|
|
|
SHARED_LIBRARY_LIBS += ../safebrowsing/src/$(LIB_PREFIX)safebrowsing_s.$(LIB_SUFFIX)
|
|
|
|
endif
|
|
|
|
|
2006-08-10 14:06:47 +00:00
|
|
|
# Link to gkgfx for GNOME shell service
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT), gtk2)
|
|
|
|
EXTRA_DSO_LIBS += gkgfx
|
|
|
|
endif
|
|
|
|
|
2002-09-27 23:42:56 +00:00
|
|
|
EXTRA_DSO_LDOPTS += \
|
2006-08-10 14:06:47 +00:00
|
|
|
$(LIBS_DIR) \
|
|
|
|
$(EXTRA_DSO_LIBS) \
|
2004-02-15 01:49:37 +00:00
|
|
|
$(MOZ_UNICHARUTIL_LIBS) \
|
2006-04-19 18:02:39 +00:00
|
|
|
$(LIBXUL_DIST)/../modules/libreg/src/$(LIB_PREFIX)mozreg_s.$(LIB_SUFFIX) \
|
2004-02-21 04:51:44 +00:00
|
|
|
$(MOZ_JS_LIBS) \
|
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
2002-09-28 01:31:19 +00:00
|
|
|
$(NULL)
|
2002-04-02 10:34:47 +00:00
|
|
|
|
2006-03-28 20:06:17 +00:00
|
|
|
# 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
|
|
|
|
|
2002-04-02 10:34:47 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|