2007-03-22 10:30:00 -07:00
|
|
|
DEPTH=../../..
|
|
|
|
topsrcdir=@top_srcdir@
|
|
|
|
srcdir=@srcdir@
|
|
|
|
VPATH=@srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = browsercomps
|
|
|
|
LIBRARY_NAME = browsercomps
|
|
|
|
SHORT_LIBNAME = brwsrcmp
|
|
|
|
IS_COMPONENT = 1
|
|
|
|
MODULE_NAME = nsBrowserCompsModule
|
|
|
|
FORCE_SHARED_LIB = 1
|
|
|
|
|
2007-04-23 12:25:39 -07:00
|
|
|
# Because we are an application component, link against the CRT statically
|
2008-03-13 11:34:13 -07:00
|
|
|
# (on Windows, but only if we're not building our own CRT for jemalloc)
|
|
|
|
ifndef MOZ_MEMORY
|
2007-04-23 12:25:39 -07:00
|
|
|
USE_STATIC_LIBS = 1
|
2008-03-13 11:34:13 -07:00
|
|
|
endif
|
2007-04-23 12:25:39 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
EXPORTS = nsBrowserCompsCID.h
|
|
|
|
|
|
|
|
CPPSRCS = nsModule.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,ole32 shell32)
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_INCLUDES = \
|
|
|
|
-I$(srcdir)/../shell/src \
|
|
|
|
-I$(srcdir)/../feeds/src \
|
2007-07-17 14:08:24 -07:00
|
|
|
-I$(srcdir)/../places/src \
|
2009-02-22 06:51:52 -08:00
|
|
|
-I$(srcdir)/../privatebrowsing/src \
|
2009-08-19 23:24:10 -07:00
|
|
|
-I$(srcdir)/../about \
|
2009-11-06 23:19:44 -08:00
|
|
|
-I$(srcdir)/../dirprovider \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,version)
|
|
|
|
endif
|
|
|
|
|
|
|
|
SHARED_LIBRARY_LIBS = \
|
|
|
|
../feeds/src/$(LIB_PREFIX)browser_feeds_s.$(LIB_SUFFIX) \
|
2009-02-22 06:51:52 -08:00
|
|
|
../privatebrowsing/src/$(LIB_PREFIX)privatebrowsing_s.$(LIB_SUFFIX) \
|
2009-08-19 23:24:10 -07:00
|
|
|
../about/$(LIB_PREFIX)browserabout_s.$(LIB_SUFFIX) \
|
2009-11-06 23:19:44 -08:00
|
|
|
../dirprovider/$(LIB_PREFIX)browserdir_s.$(LIB_SUFFIX) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2009-09-18 19:59:53 -07:00
|
|
|
ifneq (,$(filter windows cocoa gtk2, $(MOZ_WIDGET_TOOLKIT)))
|
2009-02-11 18:24:53 -08:00
|
|
|
SHARED_LIBRARY_LIBS += ../shell/src/$(LIB_PREFIX)shellservice_s.$(LIB_SUFFIX)
|
2007-03-22 10:30:00 -07:00
|
|
|
endif
|
|
|
|
|
2009-05-06 13:02:05 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,unicharutil_external_s,$(LIBXUL_DIST)/lib)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-02-11 18:24:53 -08:00
|
|
|
# migration requires mozreg, which doesn't build on WINCE; only include
|
|
|
|
# it on non-CE
|
|
|
|
ifndef WINCE
|
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/../migration/src
|
|
|
|
SHARED_LIBRARY_LIBS += ../migration/src/$(LIB_PREFIX)migration_s.$(LIB_SUFFIX)
|
|
|
|
EXTRA_DSO_LDOPTS += $(LIBXUL_DIST)/lib/$(LIB_PREFIX)mozreg_s.$(LIB_SUFFIX)
|
|
|
|
endif
|
|
|
|
|
2009-05-06 13:02:05 -07:00
|
|
|
# This has to come after the above chunk, because mozreg_s has dependencies on
|
|
|
|
# stuff in MOZ_COMPONENT_LIBS.
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(LIBXUL_DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
|
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
# Mac: Need to link with CoreFoundation for Mac Migrators (PList reading code)
|
|
|
|
# GTK2: Need to link with glib for GNOME shell service
|
2009-09-18 19:59:53 -07:00
|
|
|
ifneq (,$(filter cocoa gtk2,$(MOZ_WIDGET_TOOLKIT)))
|
2007-03-22 10:30:00 -07:00
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(TK_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
Bug 753 - Remove nsIImage, gfxIImageFrame, and their implementations, and expose an equivalent api on imgIContainer. r=roc,josh,bz,longsonr,vlad,karlt,jimm,bsmedberg,mfinkle,peterw,peterv sr=vlad,roc
--HG--
rename : gfx/src/shared/gfxImageFrame.cpp => modules/libpr0n/src/imgFrame.cpp
rename : gfx/src/shared/gfxImageFrame.h => modules/libpr0n/src/imgFrame.h
2009-07-20 18:50:15 -07:00
|
|
|
ifndef MOZ_ENABLE_LIBXUL
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
# Doesn't work, couldn't figure out why
|
|
|
|
#EXTRA_DSO_LIBS += thebes
|
2009-08-20 17:48:12 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(LIBXUL_DIST)/lib/$(LIB_PREFIX)thebes.$(IMPORT_LIB_SUFFIX)
|
Bug 753 - Remove nsIImage, gfxIImageFrame, and their implementations, and expose an equivalent api on imgIContainer. r=roc,josh,bz,longsonr,vlad,karlt,jimm,bsmedberg,mfinkle,peterw,peterv sr=vlad,roc
--HG--
rename : gfx/src/shared/gfxImageFrame.cpp => modules/libpr0n/src/imgFrame.cpp
rename : gfx/src/shared/gfxImageFrame.h => modules/libpr0n/src/imgFrame.h
2009-07-20 18:50:15 -07:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|