| 1 | DEPTH=../../.. |
|---|
| 2 | topsrcdir=@top_srcdir@ |
|---|
| 3 | srcdir=@srcdir@ |
|---|
| 4 | VPATH=@srcdir@ |
|---|
| 5 | |
|---|
| 6 | include $(DEPTH)/config/autoconf.mk |
|---|
| 7 | |
|---|
| 8 | MODULE = browsercomps |
|---|
| 9 | LIBRARY_NAME = browsercomps |
|---|
| 10 | SHORT_LIBNAME = brwsrcmp |
|---|
| 11 | IS_COMPONENT = 1 |
|---|
| 12 | MODULE_NAME = nsBrowserCompsModule |
|---|
| 13 | FORCE_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) |
|---|
| 17 | ifndef MOZ_MEMORY |
|---|
| 18 | USE_STATIC_LIBS = 1 |
|---|
| 19 | endif |
|---|
| 20 | |
|---|
| 21 | REQUIRES = \ |
|---|
| 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 | |
|---|
| 36 | EXPORTS = nsBrowserCompsCID.h |
|---|
| 37 | |
|---|
| 38 | CPPSRCS = nsModule.cpp \ |
|---|
| 39 | $(NULL) |
|---|
| 40 | |
|---|
| 41 | ifeq ($(OS_ARCH),WINNT) |
|---|
| 42 | DEFINES += -DPSTOREC_DLL=\"$(subst \,\\,$(WINDIR))\\system32\\pstorec.dll\" |
|---|
| 43 | |
|---|
| 44 | OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32) |
|---|
| 45 | endif |
|---|
| 46 | |
|---|
| 47 | LOCAL_INCLUDES = \ |
|---|
| 48 | -I$(srcdir)/../shell/src \ |
|---|
| 49 | -I$(srcdir)/../feeds/src \ |
|---|
| 50 | -I$(srcdir)/../places/src \ |
|---|
| 51 | -I$(srcdir)/../privatebrowsing/src \ |
|---|
| 52 | $(NULL) |
|---|
| 53 | |
|---|
| 54 | ifeq ($(OS_ARCH),WINNT) |
|---|
| 55 | OS_LIBS += $(call EXPAND_LIBNAME,version) |
|---|
| 56 | endif |
|---|
| 57 | |
|---|
| 58 | SHARED_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 | |
|---|
| 64 | ifneq (,$(filter windows mac cocoa gtk2, $(MOZ_WIDGET_TOOLKIT))) |
|---|
| 65 | SHARED_LIBRARY_LIBS += ../shell/src/$(LIB_PREFIX)shellservice_s.$(LIB_SUFFIX) |
|---|
| 66 | endif |
|---|
| 67 | |
|---|
| 68 | EXTRA_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 |
|---|
| 76 | ifndef WINCE |
|---|
| 77 | REQUIRES += migration |
|---|
| 78 | LOCAL_INCLUDES += -I$(srcdir)/../migration/src |
|---|
| 79 | SHARED_LIBRARY_LIBS += ../migration/src/$(LIB_PREFIX)migration_s.$(LIB_SUFFIX) |
|---|
| 80 | EXTRA_DSO_LDOPTS += $(LIBXUL_DIST)/lib/$(LIB_PREFIX)mozreg_s.$(LIB_SUFFIX) $(NSPR_LIBS) |
|---|
| 81 | endif |
|---|
| 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 |
|---|
| 85 | ifneq (,$(filter mac cocoa gtk2,$(MOZ_WIDGET_TOOLKIT))) |
|---|
| 86 | EXTRA_DSO_LDOPTS += \ |
|---|
| 87 | $(TK_LIBS) \ |
|---|
| 88 | $(NULL) |
|---|
| 89 | endif |
|---|
| 90 | |
|---|
| 91 | include $(topsrcdir)/config/rules.mk |
|---|