Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / browser / components / build / Makefile.in
blob19a7ef9595d54d1bcc0ef53762fe1d80012bfef7
1 DEPTH=../../..
2 topsrcdir=@top_srcdir@
3 srcdir=@srcdir@
4 VPATH=@srcdir@
6 include $(DEPTH)/config/autoconf.mk
8 MODULE = browsercomps
9 LIBRARY_NAME = browsercomps
10 SHORT_LIBNAME = brwsrcmp
11 IS_COMPONENT = 1
12 MODULE_NAME = nsBrowserCompsModule
13 FORCE_SHARED_LIB = 1
15 # Because we are an application component, link against the CRT statically
16 # (on Windows, but only if we're not building our own CRT for jemalloc)
17 ifndef MOZ_MEMORY
18 USE_STATIC_LIBS = 1
19 endif
21 REQUIRES = \
22 xpcom \
23 string \
24 rdf \
25 uriloader \
26 intl \
27 necko \
28 migration \
29 shellservice \
30 xulapp \
31 places \
32 browserplaces \
33 microsummaries \
34 $(NULL)
36 EXPORTS = nsBrowserCompsCID.h
38 CPPSRCS = nsModule.cpp \
39 $(NULL)
41 ifeq ($(OS_ARCH),WINNT)
42 DEFINES += -DPSTOREC_DLL=\"$(subst \,\\,$(WINDIR))\\system32\\pstorec.dll\"
44 OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32)
45 endif
47 LOCAL_INCLUDES = \
48 -I$(srcdir)/../migration/src \
49 -I$(srcdir)/../shell/src \
50 -I$(srcdir)/../feeds/src \
51 -I$(srcdir)/../places/src \
52 $(NULL)
54 ifeq ($(OS_ARCH),WINNT)
55 OS_LIBS += $(call EXPAND_LIBNAME,version)
56 endif
58 SHARED_LIBRARY_LIBS = \
59 ../migration/src/$(LIB_PREFIX)migration_s.$(LIB_SUFFIX) \
60 ../feeds/src/$(LIB_PREFIX)browser_feeds_s.$(LIB_SUFFIX) \
61 ../places/src/$(LIB_PREFIX)browserplaces_s.$(LIB_SUFFIX) \
62 $(NULL)
64 ifneq (,$(filter windows mac cocoa gtk2, $(MOZ_WIDGET_TOOLKIT)))
65 SHARED_LIBRARY_LIBS += ../shell/src/$(LIB_PREFIX)shellservice_s.$(LIB_SUFFIX) \
66 $(NULL)
67 endif
69 EXTRA_DSO_LDOPTS += \
70 $(call EXPAND_LIBNAME_PATH,unicharutil_external_s,$(LIBXUL_DIST)/lib) \
71 $(LIBXUL_DIST)/lib/$(LIB_PREFIX)mozreg_s.$(LIB_SUFFIX) \
72 $(LIBXUL_DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
73 $(MOZ_COMPONENT_LIBS) \
74 $(NULL)
76 # Mac: Need to link with CoreFoundation for Mac Migrators (PList reading code)
77 # GTK2: Need to link with glib for GNOME shell service
78 ifneq (,$(filter mac cocoa gtk2,$(MOZ_WIDGET_TOOLKIT)))
79 EXTRA_DSO_LDOPTS += \
80 $(TK_LIBS) \
81 $(NULL)
82 endif
84 include $(topsrcdir)/config/rules.mk