browser/components/build/Makefile.in
author Jeff Walden <jwalden@mit.edu>
Wed, 12 Oct 2011 12:21:53 -0700
changeset 79992 9408e8c33a1ccc5348a140e8c81ea4c63e0492bf
parent 78554 183d0e60d82c2b0e81b0ac2d0675f9aabd07b8f5
child 81543 29a99f414124c6c0d5bbeaac738c7b88b7ecfebe
child 84051 f5578fdc50ef11b7f12451c88297f327abb0e9da
permissions -rw-r--r--
Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail

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

# Because we are an application component, link against the CRT statically
# (on Windows, but only if we're not building our own CRT for jemalloc)
ifndef MOZ_MEMORY
USE_STATIC_LIBS = 1
endif


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 \
	-I$(srcdir)/../places/src \
	-I$(srcdir)/../privatebrowsing/src \
	-I$(srcdir)/../about \
	-I$(srcdir)/../dirprovider \
	$(NULL)

ifeq ($(OS_ARCH),WINNT)
OS_LIBS += $(call EXPAND_LIBNAME,version)
endif

SHARED_LIBRARY_LIBS = \
	../feeds/src/$(LIB_PREFIX)browser_feeds_s.$(LIB_SUFFIX) \
	../privatebrowsing/src/$(LIB_PREFIX)privatebrowsing_s.$(LIB_SUFFIX) \
	../about/$(LIB_PREFIX)browserabout_s.$(LIB_SUFFIX) \
	../dirprovider/$(LIB_PREFIX)browserdir_s.$(LIB_SUFFIX) \
	$(NULL)

ifneq (,$(filter windows cocoa gtk2, $(MOZ_WIDGET_TOOLKIT)))
SHARED_LIBRARY_LIBS += ../shell/src/$(LIB_PREFIX)shellservice_s.$(LIB_SUFFIX)
endif

EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,unicharutil_external_s,$(LIBXUL_DIST)/lib)

# migration requires mozreg
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)

# 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)

# Mac: Need to link with CoreFoundation for Mac Migrators (PList reading code)
# GTK2: Need to link with glib for GNOME shell service
ifneq (,$(filter cocoa gtk2,$(MOZ_WIDGET_TOOLKIT)))
EXTRA_DSO_LDOPTS += \
  $(TK_LIBS) \
  $(NULL)
endif

include $(topsrcdir)/config/rules.mk