source: pkg/kev/main/iceweasel/trunk/browser/components/build/Makefile.in @ 5919

Revision 5919, 2.2 KB checked in by alanbach-guest, 4 years ago (diff)

[svn-inject] Applying Debian modifications to trunk

Line 
1DEPTH=../../..
2topsrcdir=@top_srcdir@
3srcdir=@srcdir@
4VPATH=@srcdir@
5
6include $(DEPTH)/config/autoconf.mk
7
8MODULE = browsercomps
9LIBRARY_NAME = browsercomps
10SHORT_LIBNAME = brwsrcmp
11IS_COMPONENT = 1
12MODULE_NAME = nsBrowserCompsModule
13FORCE_SHARED_LIB = 1
14
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)
17ifndef MOZ_MEMORY
18USE_STATIC_LIBS = 1
19endif
20
21REQUIRES = \
22        xpcom \
23        string \
24        rdf \
25        uriloader \
26        intl \
27        necko \
28        shellservice \
29        xulapp \
30        places \
31        browserplaces \
32        microsummaries \
33        privatebrowsing \
34        $(NULL)
35
36EXPORTS = nsBrowserCompsCID.h
37
38CPPSRCS = nsModule.cpp \
39          $(NULL)
40
41ifeq ($(OS_ARCH),WINNT)
42DEFINES += -DPSTOREC_DLL=\"$(subst \,\\,$(WINDIR))\\system32\\pstorec.dll\"
43
44OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32)
45endif
46
47LOCAL_INCLUDES = \
48        -I$(srcdir)/../shell/src \
49        -I$(srcdir)/../feeds/src \
50        -I$(srcdir)/../places/src \
51        -I$(srcdir)/../privatebrowsing/src \
52        $(NULL)
53
54ifeq ($(OS_ARCH),WINNT)
55OS_LIBS += $(call EXPAND_LIBNAME,version)
56endif
57
58SHARED_LIBRARY_LIBS = \
59        ../feeds/src/$(LIB_PREFIX)browser_feeds_s.$(LIB_SUFFIX) \
60        ../places/src/$(LIB_PREFIX)browserplaces_s.$(LIB_SUFFIX) \
61  ../privatebrowsing/src/$(LIB_PREFIX)privatebrowsing_s.$(LIB_SUFFIX) \
62        $(NULL)
63
64ifneq (,$(filter windows mac cocoa gtk2, $(MOZ_WIDGET_TOOLKIT)))
65SHARED_LIBRARY_LIBS += ../shell/src/$(LIB_PREFIX)shellservice_s.$(LIB_SUFFIX)
66endif
67
68EXTRA_DSO_LDOPTS += \
69        $(call EXPAND_LIBNAME_PATH,unicharutil_external_s,$(LIBXUL_DIST)/lib) \
70        $(LIBXUL_DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
71        $(MOZ_COMPONENT_LIBS) \
72        $(NULL)
73
74# migration requires mozreg, which doesn't build on WINCE; only include
75# it on non-CE
76ifndef WINCE
77REQUIRES += migration
78LOCAL_INCLUDES += -I$(srcdir)/../migration/src
79SHARED_LIBRARY_LIBS += ../migration/src/$(LIB_PREFIX)migration_s.$(LIB_SUFFIX)
80EXTRA_DSO_LDOPTS += $(LIBXUL_DIST)/lib/$(LIB_PREFIX)mozreg_s.$(LIB_SUFFIX) $(NSPR_LIBS)
81endif
82
83# Mac: Need to link with CoreFoundation for Mac Migrators (PList reading code)
84# GTK2: Need to link with glib for GNOME shell service
85ifneq (,$(filter mac cocoa gtk2,$(MOZ_WIDGET_TOOLKIT)))
86EXTRA_DSO_LDOPTS += \
87  $(TK_LIBS) \
88  $(NULL)
89endif
90
91include $(topsrcdir)/config/rules.mk
Note: See TracBrowser for help on using the repository browser.