2012-02-01 22:09:00 -08:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2011-11-16 10:58:09 -08:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
include $(topsrcdir)/rdf/util/src/objs.mk
|
|
|
|
include $(topsrcdir)/intl/unicharutil/util/objs.mk
|
|
|
|
|
2013-05-16 06:33:26 -07:00
|
|
|
MSVC_ENABLE_PGO := 1
|
2007-03-22 10:30:00 -07:00
|
|
|
FORCE_SHARED_LIB = 1
|
|
|
|
MOZILLA_INTERNAL_API = 1
|
|
|
|
|
2008-02-29 15:24:53 -08:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2007-08-19 17:00:11 -07:00
|
|
|
# Setting MAKE_FRAMEWORK makes DLL_PREFIX and DLL_SUFFIX be ignored when
|
|
|
|
# setting SHARED_LIBRARY; we need to leave DLL_PREFIX and DLL_SUFFIX
|
|
|
|
# as-is so that dependencies of the form -ltracemalloc still work.
|
|
|
|
MAKE_FRAMEWORK=1
|
2007-03-22 10:30:00 -07:00
|
|
|
endif
|
|
|
|
|
2011-04-15 02:03:17 -07:00
|
|
|
VPATH += $(topsrcdir)/build/
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
2013-04-02 12:01:26 -07:00
|
|
|
$(DEPTH)/media/kiss_fft/$(LIB_PREFIX)kiss_fft.$(LIB_SUFFIX) \
|
2012-08-10 08:52:56 -07:00
|
|
|
$(DEPTH)/toolkit/components/osfile/$(LIB_PREFIX)osfile_s.$(LIB_SUFFIX) \
|
2011-11-16 10:58:09 -08:00
|
|
|
$(DEPTH)/toolkit/xre/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-03-30 15:29:47 -07:00
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/accessible/src/base/$(LIB_PREFIX)accessibility_base_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/accessible/src/generic/$(LIB_PREFIX)accessibility_generic_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/accessible/src/html/$(LIB_PREFIX)accessibility_html_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/accessible/src/xpcom/$(LIB_PREFIX)accessibility_xpcom_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/accessible/src/windows/msaa/$(LIB_PREFIX)accessibility_toolkit_msaa_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/accessible/src/windows/ia2/$(LIB_PREFIX)accessibility_toolkit_ia2_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/accessible/src/windows/sdn/$(LIB_PREFIX)accessibility_toolkit_sdn_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/accessible/src/windows/uia/$(LIB_PREFIX)accessibility_toolkit_uia_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
else
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/accessible/src/$(LIB_PREFIX)accessibility_toolkit_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_XUL
|
|
|
|
SHARED_LIBRARY_LIBS += $(DEPTH)/accessible/src/xul/$(LIB_PREFIX)accessibility_xul_s.$(LIB_SUFFIX)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
SHARED_LIBRARY_LIBS += \
|
2013-07-29 08:03:21 -07:00
|
|
|
$(foreach component,$(COMPONENT_LIBS),$(DEPTH)/staticlib/components/$(LIB_PREFIX)$(component).$(LIB_SUFFIX)) \
|
2011-11-16 10:58:09 -08:00
|
|
|
$(foreach lib,$(STATIC_LIBS),$(DEPTH)/staticlib/$(LIB_PREFIX)$(lib).$(LIB_SUFFIX)) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
|
|
|
|
RCINCLUDE = xulrunner.rc
|
|
|
|
|
2012-01-03 19:09:29 -08:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/windows
|
2011-11-16 10:58:09 -08:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/base
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
RESFILE = xulrunos2.res
|
2012-01-03 19:09:29 -08:00
|
|
|
RCFLAGS += -i $(topsrcdir)/widget/os2
|
2011-11-16 10:58:09 -08:00
|
|
|
|
2012-01-03 19:09:29 -08:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/os2
|
2011-11-16 10:58:09 -08:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/base
|
|
|
|
endif
|
|
|
|
|
|
|
|
# dependent libraries
|
|
|
|
STATIC_LIBS += \
|
|
|
|
jsipc_s \
|
|
|
|
domipc_s \
|
|
|
|
domplugins_s \
|
|
|
|
mozipc_s \
|
|
|
|
mozipdlgen_s \
|
|
|
|
ipcshell_s \
|
|
|
|
gfxipc_s \
|
|
|
|
hal_s \
|
2012-03-30 21:42:20 -07:00
|
|
|
dombindings_s \
|
2011-11-16 10:58:09 -08:00
|
|
|
$(NULL)
|
|
|
|
|
2011-12-07 02:58:56 -08:00
|
|
|
ifdef MOZ_B2G_RIL #{
|
|
|
|
STATIC_LIBS += mozril_s
|
|
|
|
endif #}
|
|
|
|
|
2012-05-07 14:50:25 -07:00
|
|
|
ifdef MOZ_B2G_BT #{
|
2013-02-04 02:56:12 -08:00
|
|
|
STATIC_LIBS += mozdbus_s
|
2013-07-30 10:36:54 -07:00
|
|
|
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
OS_LIBS += -ldbus
|
|
|
|
endif
|
2013-02-04 02:56:12 -08:00
|
|
|
endif #}
|
|
|
|
|
|
|
|
ifneq ($(strip $(MOZ_B2G_RIL)$(MOZ_B2G_BT)),) #{
|
|
|
|
STATIC_LIBS += mozipcunixsocket_s
|
2012-05-07 14:50:25 -07:00
|
|
|
endif #}
|
|
|
|
|
2012-08-29 13:35:53 -07:00
|
|
|
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
STATIC_LIBS += moznetd_s
|
|
|
|
endif
|
|
|
|
|
2012-09-28 22:30:52 -07:00
|
|
|
ifdef MOZ_B2G_CAMERA #{
|
|
|
|
OS_LIBS += -lstagefright -lstagefright_omx
|
|
|
|
endif #}
|
|
|
|
|
2011-11-16 10:58:09 -08:00
|
|
|
ifdef MOZ_IPDL_TESTS
|
|
|
|
STATIC_LIBS += ipdlunittest_s
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (Linux,$(OS_ARCH))
|
|
|
|
ifneq (Android,$(OS_TARGET))
|
|
|
|
OS_LIBS += -lrt
|
2013-04-25 15:35:40 -07:00
|
|
|
EXTRA_DSO_LDOPTS += -Wl,-version-script,symverscript
|
|
|
|
|
|
|
|
symverscript: symverscript.in
|
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py \
|
|
|
|
-DVERSION="$(LIBRARY_NAME)$(MOZILLA_VERSION)" $< > $@
|
|
|
|
|
|
|
|
EXTRA_DEPS += symverscript
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
STATIC_LIBS += \
|
|
|
|
xpcom_core \
|
|
|
|
ucvutil_s \
|
|
|
|
chromium_s \
|
2011-12-07 15:24:20 -08:00
|
|
|
snappy_s \
|
2011-11-16 10:58:09 -08:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# component libraries
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
necko \
|
|
|
|
uconv \
|
|
|
|
i18n \
|
|
|
|
chardet \
|
|
|
|
jar$(VERSION_NUMBER) \
|
|
|
|
startupcache \
|
|
|
|
pref \
|
|
|
|
htmlpars \
|
2012-07-03 14:53:37 -07:00
|
|
|
identity \
|
2011-11-16 10:58:09 -08:00
|
|
|
imglib2 \
|
2012-09-04 16:22:34 -07:00
|
|
|
mediasniffer \
|
2011-11-16 10:58:09 -08:00
|
|
|
gkgfx \
|
|
|
|
gklayout \
|
|
|
|
docshell \
|
|
|
|
embedcomponents \
|
|
|
|
webbrwsr \
|
|
|
|
nsappshell \
|
|
|
|
txmgr \
|
|
|
|
commandlines \
|
|
|
|
toolkitcomps \
|
|
|
|
pipboot \
|
|
|
|
pipnss \
|
|
|
|
appcomps \
|
|
|
|
jsreflect \
|
|
|
|
composer \
|
|
|
|
telemetry \
|
2012-02-07 09:22:30 -08:00
|
|
|
jsinspector \
|
2011-11-16 10:58:09 -08:00
|
|
|
jsdebugger \
|
|
|
|
storagecomps \
|
|
|
|
rdf \
|
|
|
|
windowds \
|
2013-05-09 15:57:31 -07:00
|
|
|
diskspacewatcher \
|
2011-11-16 10:58:09 -08:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef BUILD_CTYPES
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
jsctypes \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
jsperf \
|
|
|
|
gkplugin \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef MOZ_XUL
|
2013-06-10 05:36:26 -07:00
|
|
|
ifdef MOZ_ENABLE_GTK
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
unixproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
osxproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_XUL
|
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
unixproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter windows,$(MOZ_WIDGET_TOOLKIT)))
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
windowsproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2012-11-13 11:25:18 -08:00
|
|
|
ifneq (,$(filter android,$(MOZ_WIDGET_TOOLKIT)))
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2012-11-13 11:25:18 -08:00
|
|
|
androidproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2011-11-16 10:58:09 -08:00
|
|
|
ifdef MOZ_JSDEBUGGER
|
|
|
|
DEFINES += -DMOZ_JSDEBUGGER
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
jsd \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_PREF_EXTENSIONS
|
|
|
|
DEFINES += -DMOZ_PREF_EXTENSIONS
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
autoconfig \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_AUTH_EXTENSION
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += auth
|
2011-11-16 10:58:09 -08:00
|
|
|
DEFINES += -DMOZ_AUTH_EXTENSION
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_PERMISSIONS
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += cookie permissions
|
2011-11-16 10:58:09 -08:00
|
|
|
DEFINES += -DMOZ_PERMISSIONS
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_UNIVERSALCHARDET
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += universalchardet
|
2011-11-16 10:58:09 -08:00
|
|
|
DEFINES += -DMOZ_UNIVERSALCHARDET
|
|
|
|
endif
|
|
|
|
|
2011-11-18 11:04:13 -08:00
|
|
|
ifeq (,$(filter android gonk qt os2 cocoa windows,$(MOZ_WIDGET_TOOLKIT)))
|
2011-11-16 10:58:09 -08:00
|
|
|
ifdef MOZ_XUL
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += fileview
|
2011-11-16 10:58:09 -08:00
|
|
|
DEFINES += -DMOZ_FILEVIEW
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_PLACES
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
places \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-11-16 10:58:09 -08:00
|
|
|
ifdef MOZ_XUL
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
tkautocomplete \
|
|
|
|
satchel \
|
|
|
|
pippki \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2013-06-10 05:36:26 -07:00
|
|
|
ifdef MOZ_ENABLE_GTK3
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += widget_gtk3
|
2013-06-10 05:36:26 -07:00
|
|
|
endif
|
|
|
|
|
2011-11-16 10:58:09 -08:00
|
|
|
ifdef MOZ_ENABLE_GTK2
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += widget_gtk2
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
ifdef MOZ_X11
|
|
|
|
STATIC_LIBS += gtkxtbin
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Platform-specific icon channel stuff - supported mostly-everywhere
|
2013-06-10 05:36:26 -07:00
|
|
|
ifneq (,$(filter windows os2 mac cocoa gtk2 gtk3 qt android,$(MOZ_WIDGET_TOOLKIT)))
|
2011-11-16 10:58:09 -08:00
|
|
|
DEFINES += -DICON_DECODER
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += imgicon
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += widget_android
|
|
|
|
STATIC_LIBS += skia_npapi
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
|
2011-11-18 11:04:13 -08:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += widget_gonk
|
2011-11-18 11:04:13 -08:00
|
|
|
endif
|
|
|
|
|
2011-11-18 13:28:29 -08:00
|
|
|
STATIC_LIBS += thebes gl ycbcr
|
2011-11-16 10:58:09 -08:00
|
|
|
|
2012-03-13 01:48:00 -07:00
|
|
|
ifdef MOZ_ENABLE_PROFILER_SPS
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += profiler
|
2012-03-13 01:48:00 -07:00
|
|
|
endif
|
2011-11-16 10:58:09 -08:00
|
|
|
|
|
|
|
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += widget_windows
|
2012-11-04 05:48:46 -08:00
|
|
|
ifdef MOZ_METRO
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += widget_winrt
|
2012-11-04 05:48:46 -08:00
|
|
|
endif
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
ifeq (os2,$(MOZ_WIDGET_TOOLKIT))
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += wdgtos2
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += widget_mac
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += widget_qt
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_XREMOTE
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += remoteservice
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_SPELLCHECK
|
|
|
|
DEFINES += -DMOZ_SPELLCHECK
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += spellchecker
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_ZIPWRITER
|
|
|
|
DEFINES += -DMOZ_ZIPWRITER
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += zipwriter
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += services-crypto
|
2011-11-16 10:58:09 -08:00
|
|
|
|
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
ifdef ENABLE_TESTS
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += gkdebug
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-10-18 05:47:10 -07:00
|
|
|
ifdef MOZ_GIO_COMPONENT
|
|
|
|
DEFINES += -DMOZ_GIO_COMPONENT
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += nkgio
|
2012-10-18 05:47:10 -07:00
|
|
|
endif
|
|
|
|
|
2011-11-16 10:58:09 -08:00
|
|
|
ifdef MOZ_APP_COMPONENT_LIBS
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += $(MOZ_APP_COMPONENT_LIBS)
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
|
|
|
OS_LIBS += -framework OpenGL -lcups
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(LIBS_DIR) \
|
|
|
|
$(MOZ_JS_LIBS) \
|
|
|
|
$(NSS_LIBS) \
|
2012-05-02 13:32:16 -07:00
|
|
|
$(MOZ_CAIRO_OSLIBS) \
|
2011-11-16 10:58:09 -08:00
|
|
|
$(MOZ_APP_EXTRA_LIBS) \
|
|
|
|
$(SQLITE_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-05-02 06:28:52 -07:00
|
|
|
ifdef MOZ_NATIVE_JPEG
|
2012-06-20 00:00:48 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_JPEG_LIBS)
|
2012-05-02 06:28:52 -07:00
|
|
|
endif
|
|
|
|
|
2012-05-02 08:02:15 -07:00
|
|
|
ifdef MOZ_NATIVE_PNG
|
2012-06-20 00:00:48 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_PNG_LIBS)
|
2012-05-02 08:02:15 -07:00
|
|
|
endif
|
|
|
|
|
2012-07-11 23:30:59 -07:00
|
|
|
ifneq (WINNT,$(OS_ARCH))
|
2011-11-16 10:58:09 -08:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_ZLIB_LIBS)
|
2012-07-11 23:30:59 -07:00
|
|
|
endif
|
2011-11-16 10:58:09 -08:00
|
|
|
|
|
|
|
ifdef MOZ_NATIVE_HUNSPELL
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_HUNSPELL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_NATIVE_LIBEVENT
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_LIBEVENT_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_NATIVE_LIBVPX
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_LIBVPX_LIBS)
|
|
|
|
endif
|
|
|
|
|
2012-05-25 23:44:00 -07:00
|
|
|
ifndef MOZ_TREE_PIXMAN
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_PIXMAN_LIBS)
|
|
|
|
endif
|
|
|
|
|
2012-12-10 16:05:07 -08:00
|
|
|
ifdef MOZ_DMD
|
|
|
|
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,dmd,$(DIST)/lib)
|
|
|
|
endif
|
|
|
|
|
2012-08-29 13:35:53 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,gkmedias,$(DIST)/lib)
|
2011-12-14 21:40:20 -08:00
|
|
|
|
2012-10-04 09:09:35 -07:00
|
|
|
ifdef MOZ_WEBRTC
|
|
|
|
ifdef MOZ_PEERCONNECTION
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += peerconnection
|
2012-10-04 09:09:35 -07:00
|
|
|
endif
|
|
|
|
ifdef MOZ_WEBRTC_SIGNALING
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(DEPTH)/media/mtransport/build/$(LIB_PREFIX)mtransport.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/media/webrtc/signaling/signaling_ecc/$(LIB_PREFIX)ecc.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/media/webrtc/signaling/signaling_sipcc/$(LIB_PREFIX)sipcc.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
ifdef MOZ_WEBRTC_IN_LIBXUL
|
|
|
|
include $(topsrcdir)/media/webrtc/shared_libs.mk
|
|
|
|
EXTRA_DSO_LDOPTS += $(WEBRTC_LIBS)
|
|
|
|
ifeq (WINNT,$(OS_TARGET))
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
-LIBPATH:"$(MOZ_DIRECTX_SDK_PATH)/lib/$(MOZ_DIRECTX_SDK_CPU_SUFFIX)" \
|
|
|
|
$(NULL)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,secur32 crypt32 iphlpapi strmiids dmoguids wmcodecdspuuid amstrmid msdmo wininet)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2013-03-18 21:12:36 -07:00
|
|
|
ifdef MOZ_CUBEB
|
2012-11-26 17:38:21 -08:00
|
|
|
ifdef MOZ_ALSA
|
2011-11-16 10:58:09 -08:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_ALSA_LIBS)
|
|
|
|
endif
|
2012-08-07 15:26:04 -07:00
|
|
|
ifdef MOZ_PULSEAUDIO
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_PULSEAUDIO_LIBS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2011-11-16 10:58:09 -08:00
|
|
|
ifdef HAVE_CLOCK_MONOTONIC
|
|
|
|
EXTRA_DSO_LDOPTS += $(REALTIME_LIBS)
|
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-11-16 10:58:09 -08:00
|
|
|
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
OS_LIBS += -lGLESv2
|
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-11-18 11:04:13 -08:00
|
|
|
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
|
2011-12-12 10:22:26 -08:00
|
|
|
OS_LIBS += \
|
|
|
|
-lui \
|
|
|
|
-lmedia \
|
2011-12-20 11:31:53 -08:00
|
|
|
-lhardware_legacy \
|
2012-01-19 06:53:51 -08:00
|
|
|
-lhardware \
|
2012-01-25 11:00:34 -08:00
|
|
|
-lutils \
|
2012-01-31 16:29:17 -08:00
|
|
|
-lcutils \
|
2012-04-12 21:02:33 -07:00
|
|
|
-lsysutils \
|
2012-01-31 16:29:17 -08:00
|
|
|
-lcamera_client \
|
2012-02-05 18:41:15 -08:00
|
|
|
-lsensorservice \
|
2012-09-26 21:33:42 -07:00
|
|
|
-lstagefright \
|
2013-05-16 17:24:20 -07:00
|
|
|
-lstagefright_foundation \
|
2012-09-26 21:33:42 -07:00
|
|
|
-lstagefright_omx \
|
|
|
|
-lbinder \
|
2013-03-08 11:43:33 -08:00
|
|
|
-lgui \
|
2011-12-12 10:22:26 -08:00
|
|
|
$(NULL)
|
2011-11-18 11:04:13 -08:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-01-02 09:26:08 -08:00
|
|
|
ifdef MOZ_WMF
|
2013-05-05 16:49:45 -07:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,mfuuid wmcodecdspuuid strmiids)
|
2013-01-02 09:26:08 -08:00
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
EXTRA_DEPS += \
|
2011-11-08 03:42:54 -08:00
|
|
|
$(topsrcdir)/intl/unicharutil/util/objs.mk \
|
|
|
|
$(topsrcdir)/rdf/util/src/objs.mk \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2011-11-16 10:58:09 -08:00
|
|
|
GARBAGE += \
|
2011-11-08 03:42:54 -08:00
|
|
|
$(INTL_UNICHARUTIL_UTIL_LCPPSRCS) \
|
|
|
|
$(RDF_UTIL_SRC_LCPPSRCS) \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-07-29 12:22:16 -07:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/intl/unicharutil/util \
|
|
|
|
-I$(topsrcdir)/intl/unicharutil/src
|
2007-06-30 22:56:10 -07:00
|
|
|
|
2011-04-29 03:38:26 -07:00
|
|
|
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
|
2007-08-03 07:46:17 -07:00
|
|
|
SDK_LIBRARY = $(IMPORT_LIBRARY)
|
|
|
|
else
|
|
|
|
SDK_LIBRARY = $(SHARED_LIBRARY)
|
|
|
|
endif
|
|
|
|
|
2011-11-10 21:09:59 -08:00
|
|
|
# See bug 653662 - some builders are hitting an internal size limit on
|
|
|
|
# incremental builds. Disable incremental linking for debug builds on VC8 or
|
|
|
|
# on 32-bit hosts.
|
|
|
|
# See: http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/c34d5c37-ca4a-4580-9c7c-4379a8c76d1f/
|
2011-05-16 23:54:59 -07:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2011-11-10 21:09:59 -08:00
|
|
|
IS_32BIT_HOST := $(if $(filter AMD64,$(PROCESSOR_ARCHITECTURE) $(PROCESSOR_ARCHITEW6432)),,yes)
|
|
|
|
ifneq (,$(or $(filter 1400,$(_MSC_VER)),$(IS_32BIT_HOST)))
|
2011-05-16 23:54:59 -07:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
EXTRA_DSO_LDOPTS += -INCREMENTAL:NO
|
|
|
|
endif
|
|
|
|
endif
|
2011-10-28 07:05:06 -07:00
|
|
|
endif
|
2011-05-16 23:54:59 -07:00
|
|
|
|
2013-06-13 19:58:22 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(LIBS_DIR)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-03-03 21:02:57 -08:00
|
|
|
EXTRA_DSO_LDOPTS += $(NSPR_LIBS) $(MOZALLOC_LIB)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-02-29 15:24:53 -08:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2011-11-16 10:58:09 -08:00
|
|
|
CXXFLAGS += $(TK_CFLAGS)
|
2010-02-09 09:09:06 -08:00
|
|
|
OS_LIBS += \
|
2011-11-16 10:58:09 -08:00
|
|
|
-framework SystemConfiguration \
|
2012-06-20 04:27:43 -07:00
|
|
|
-framework QTKit \
|
2011-11-16 10:58:09 -08:00
|
|
|
-framework IOKit \
|
|
|
|
-F/System/Library/PrivateFrameworks -framework CoreUI \
|
|
|
|
$(TK_LIBS) \
|
|
|
|
$(NULL)
|
2009-04-20 07:48:00 -07:00
|
|
|
endif
|
2008-07-29 23:50:14 -07:00
|
|
|
|
2012-06-02 00:10:42 -07:00
|
|
|
ifeq (OpenBSD,$(OS_ARCH))
|
|
|
|
ifdef MOZ_CUBEB
|
|
|
|
EXTRA_DSO_LDOPTS += -lsndio
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2010-02-09 11:02:11 -08:00
|
|
|
ifdef MOZ_PLATFORM_MAEMO
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_PLATFORM_MAEMO_LIBS)
|
2011-11-16 10:58:09 -08:00
|
|
|
endif
|
2008-09-10 09:10:23 -07:00
|
|
|
|
2009-11-18 07:20:45 -08:00
|
|
|
ifdef MOZ_ENABLE_LIBCONIC
|
|
|
|
EXTRA_DSO_LDOPTS += $(LIBCONIC_LIBS)
|
|
|
|
endif
|
|
|
|
|
2008-07-25 09:36:07 -07:00
|
|
|
ifdef MOZ_ENABLE_DBUS
|
2011-03-24 07:26:58 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_DBUS_GLIB_LIBS)
|
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-06-10 05:36:26 -07:00
|
|
|
ifdef MOZ_WIDGET_GTK
|
|
|
|
EXTRA_DSO_LDOPTS += $(TK_LIBS)
|
|
|
|
EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS) $(XEXT_LIBS) $(XCOMPOSITE_LIBS) $(MOZ_PANGO_LIBS) $(XT_LIBS) -lgthread-2.0
|
2007-03-22 10:30:00 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(FT2_LIBS)
|
|
|
|
endif
|
|
|
|
|
2008-04-19 06:21:59 -07:00
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
2012-05-14 01:15:26 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS) $(XT_LIBS) $(MOZ_QT_LIBS)
|
2010-03-06 05:29:55 -08:00
|
|
|
EXTRA_DSO_LDOPTS += $(FT2_LIBS) $(MOZ_PANGO_LIBS)
|
2012-01-03 19:09:29 -08:00
|
|
|
EXTRA_DSO_LDOPTS += $(LIBXUL_DIST)/../widget/qt/faststartupqt/$(LIB_PREFIX)faststartupqt.$(LIB_SUFFIX)
|
2009-01-22 22:24:29 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_TREE_FREETYPE
|
2010-11-07 01:20:51 -07:00
|
|
|
ifndef MOZ_TREE_CAIRO
|
2009-01-22 22:24:29 -08:00
|
|
|
EXTRA_DSO_LDOPTS += $(FT2_LIBS)
|
2008-04-19 06:21:59 -07:00
|
|
|
endif
|
2010-11-07 01:20:51 -07:00
|
|
|
endif
|
2008-04-19 06:21:59 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
ifdef MOZ_ENABLE_STARTUP_NOTIFICATION
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_STARTUP_NOTIFICATION_LIBS)
|
|
|
|
endif
|
|
|
|
|
2010-08-03 10:44:49 -07:00
|
|
|
ifdef MOZ_ENABLE_LIBPROXY
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_LIBPROXY_LIBS)
|
|
|
|
endif
|
|
|
|
|
2008-03-19 18:13:36 -07:00
|
|
|
ifeq ($(OS_ARCH),SunOS)
|
2010-09-18 01:15:33 -07:00
|
|
|
ifdef GNU_CC
|
|
|
|
EXTRA_DSO_LDOPTS += -lelf
|
|
|
|
else
|
2009-11-02 01:17:27 -08:00
|
|
|
EXTRA_DSO_LDOPTS += -lelf -ldemangle
|
2008-03-19 18:13:36 -07:00
|
|
|
endif
|
2010-09-18 01:15:33 -07:00
|
|
|
endif
|
2008-03-19 18:13:36 -07:00
|
|
|
|
2012-08-28 14:16:51 -07:00
|
|
|
ifneq (,$(filter DragonFly FreeBSD NetBSD OpenBSD,$(OS_ARCH)))
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,kvm)
|
|
|
|
# keep `environ' unresolved, see bug 14426 for binutils
|
|
|
|
EXTRA_DSO_LDOPTS += -Wl,--warn-unresolved-symbols
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2012-06-13 18:12:36 -07:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,shell32 ole32 version winspool comdlg32 imm32 msimg32 shlwapi psapi ws2_32 dbghelp rasapi32 rasdlg iphlpapi uxtheme setupapi secur32 sensorsapi portabledeviceguids windowscodecs wininet)
|
2012-02-02 04:29:58 -08:00
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,oleacc)
|
|
|
|
endif
|
2012-11-04 05:48:46 -08:00
|
|
|
ifdef MOZ_METRO
|
2013-02-24 19:20:42 -08:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,uiautomationcore runtimeobject)
|
2012-11-04 05:48:46 -08:00
|
|
|
endif
|
2012-01-03 02:08:33 -08:00
|
|
|
ifdef _MSC_VER
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,delayimp)
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
2012-02-23 06:53:55 -08:00
|
|
|
-DELAYLOAD:psapi.dll \
|
|
|
|
-DELAYLOAD:dbghelp.dll \
|
2012-01-03 02:08:33 -08:00
|
|
|
-DELAYLOAD:rasapi32.dll \
|
|
|
|
-DELAYLOAD:rasdlg.dll \
|
2012-01-09 22:30:09 -08:00
|
|
|
-DELAYLOAD:comdlg32.dll \
|
|
|
|
-DELAYLOAD:winspool.drv \
|
2012-02-23 06:53:55 -08:00
|
|
|
-DELAYLOAD:secur32.dll \
|
2012-06-13 18:12:36 -07:00
|
|
|
-DELAYLOAD:wininet.dll \
|
2012-01-03 02:08:33 -08:00
|
|
|
$(NULL)
|
2012-05-22 14:00:48 -07:00
|
|
|
|
|
|
|
# See nsDllMain for an explanation
|
|
|
|
ifdef MOZ_METRO
|
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
EXTRA_DSO_LDOPTS += -DELAYLOAD:VCCORLIB$(CRTDLLVERSION)D.DLL
|
|
|
|
else
|
|
|
|
EXTRA_DSO_LDOPTS += -DELAYLOAD:VCCORLIB$(CRTDLLVERSION).DLL
|
|
|
|
endif
|
|
|
|
EXTRA_DSO_LDOPTS += -DELAYLOAD:API-MS-WIN-CORE-WINRT-L$(CRTEXPDLLVERSION).DLL
|
|
|
|
EXTRA_DSO_LDOPTS += -DELAYLOAD:API-MS-WIN-CORE-WINRT-STRING-L$(CRTEXPDLLVERSION).DLL
|
2012-11-04 05:48:46 -08:00
|
|
|
EXTRA_DSO_LDOPTS += -DELAYLOAD:uiautomationcore.dll
|
2012-05-22 14:00:48 -07:00
|
|
|
endif
|
|
|
|
|
2012-02-06 18:35:41 -08:00
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
EXTRA_DSO_LDOPTS += -DELAYLOAD:oleacc.dll
|
|
|
|
endif
|
2013-03-24 19:41:21 -07:00
|
|
|
ifdef MOZ_WEBRTC_IN_LIBXUL
|
|
|
|
EXTRA_DSO_LDOPTS += -DELAYLOAD:msdmo.dll
|
|
|
|
endif
|
2012-01-03 02:08:33 -08:00
|
|
|
endif
|
2011-08-03 11:12:08 -07:00
|
|
|
ifdef MOZ_GAMEPAD
|
2013-03-28 03:43:23 -07:00
|
|
|
ifndef GNU_CC
|
2011-08-03 11:12:08 -07:00
|
|
|
DXSDK := $(subst \,/,$(MOZ_DIRECTX_SDK_PATH))/Lib/$(MOZ_DIRECTX_SDK_CPU_SUFFIX)
|
|
|
|
OS_LIBS += \
|
|
|
|
"$(DXSDK)/dxguid.lib" \
|
|
|
|
"$(DXSDK)/dinput8.lib" \
|
|
|
|
$(NULL)
|
2013-03-28 03:43:23 -07:00
|
|
|
else
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,dxguid dinput8)
|
|
|
|
endif
|
2011-08-03 11:12:08 -07:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
endif # WINNT
|
2008-03-05 11:23:44 -08:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
ifdef MOZ_JPROF
|
|
|
|
EXTRA_DSO_LDOPTS += -ljprof
|
|
|
|
endif
|
|
|
|
|
2008-04-19 06:21:59 -07:00
|
|
|
ifdef MOZ_ENABLE_QT
|
2010-02-19 19:46:54 -08:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_QT_LDFLAGS) $(XEXT_LIBS)
|
2008-04-19 06:21:59 -07:00
|
|
|
endif
|
|
|
|
|
2013-06-10 19:13:09 -07:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2012-04-18 15:33:13 -07:00
|
|
|
ifdef MOZ_GSTREAMER
|
|
|
|
EXTRA_DSO_LDOPTS += $(GSTREAMER_LIBS)
|
|
|
|
endif
|
2013-06-10 19:13:09 -07:00
|
|
|
endif
|
2012-04-18 15:33:13 -07:00
|
|
|
|
2013-03-06 08:38:31 -08:00
|
|
|
# Generate GDB pretty printer-autoload files only on Linux. OSX's GDB is
|
|
|
|
# too old to support Python pretty-printers; if this changes, we could make
|
|
|
|
# this 'ifdef GNU_CC'.
|
|
|
|
ifeq (Linux,$(OS_ARCH))
|
|
|
|
# Create a GDB Python auto-load file alongside the libxul shared library in
|
|
|
|
# the build directory.
|
|
|
|
PP_TARGETS += LIBXUL_AUTOLOAD
|
|
|
|
LIBXUL_AUTOLOAD = libxul.so-gdb.py.in
|
|
|
|
LIBXUL_AUTOLOAD_FLAGS := -Dtopsrcdir=$(abspath $(topsrcdir))
|
|
|
|
endif
|
|
|
|
|
2013-03-11 11:47:40 -07:00
|
|
|
ifdef MAKE_FRAMEWORK
|
|
|
|
EFFECTIVE_LIB_PREFIX=
|
2013-06-14 07:36:47 -07:00
|
|
|
EFFECTIVE_LIB_SUFFIX=
|
2013-03-11 11:47:40 -07:00
|
|
|
else
|
|
|
|
EFFECTIVE_LIB_PREFIX=$(DLL_PREFIX)
|
2013-06-14 07:36:47 -07:00
|
|
|
EFFECTIVE_LIB_SUFFIX=$(DLL_SUFFIX)
|
2013-03-11 11:47:40 -07:00
|
|
|
endif
|
|
|
|
|
2013-06-14 07:36:47 -07:00
|
|
|
GTEST_LIB = $(EFFECTIVE_LIB_PREFIX)gtest/$(EFFECTIVE_LIB_PREFIX)$(LIBRARY_NAME)$(EFFECTIVE_LIB_SUFFIX)
|
2013-03-11 11:47:40 -07:00
|
|
|
EXTRA_MDDEPEND_FILES = $(GTEST_LIB).pp
|
|
|
|
|
2009-11-02 01:17:27 -08:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
export:: $(RDF_UTIL_SRC_CPPSRCS) $(INTL_UNICHARUTIL_UTIL_CPPSRCS)
|
|
|
|
$(INSTALL) $^ .
|
|
|
|
|
2012-01-03 19:09:29 -08:00
|
|
|
# need widget/windows for resource.h (included from widget.rc)
|
2011-11-16 10:58:09 -08:00
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(topsrcdir)/config \
|
2012-01-03 19:09:29 -08:00
|
|
|
-I$(topsrcdir)/widget/windows \
|
2011-11-16 10:58:09 -08:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
OS_LIBS += $(LIBICONV)
|
|
|
|
|
|
|
|
DEFINES += \
|
2013-07-12 05:56:54 -07:00
|
|
|
-DIMPL_LIBXUL \
|
2011-11-16 10:58:09 -08:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,usp10 oleaut32)
|
|
|
|
endif
|
2009-11-02 01:17:27 -08:00
|
|
|
|
2010-09-10 14:26:16 -07:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
DEFINES += -DENABLE_LAYOUTDEBUG
|
|
|
|
endif
|
|
|
|
endif
|
2011-12-15 10:09:23 -08:00
|
|
|
|
|
|
|
ifeq (WINNT_1,$(OS_TARGET)_$(MOZ_PROFILE_USE))
|
|
|
|
# Wrap linker to measure peak virtual memory usage.
|
|
|
|
LD := $(PYTHON) $(topsrcdir)/build/link.py $(CURDIR)/linker-vsize $(LD)
|
|
|
|
endif
|
2013-03-20 06:56:41 -07:00
|
|
|
|
2013-03-11 11:47:40 -07:00
|
|
|
ifndef LINK_GTEST
|
2013-03-20 06:56:41 -07:00
|
|
|
libs:: $(FINAL_TARGET)/dependentlibs.list
|
2013-03-11 11:47:40 -07:00
|
|
|
else
|
|
|
|
libs::
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: gtestxul
|
|
|
|
|
|
|
|
$(FINAL_TARGET)/dependentlibs.list.gtest: $(FINAL_TARGET)/dependentlibs.list
|
|
|
|
sed -e "s|$(SHARED_LIBRARY)|gtest/$(SHARED_LIBRARY)|" $< > $@
|
|
|
|
|
|
|
|
# Remove this target when actually linking gtest to prevent redefining
|
|
|
|
# the implicit rules.mk target
|
|
|
|
ifndef LINK_GTEST
|
|
|
|
|
|
|
|
gtestxul: $(GTEST_LIB)
|
|
|
|
|
|
|
|
$(GTEST_LIB): $(FINAL_TARGET)/dependentlibs.list.gtest
|
|
|
|
$(MKDIR) -p $(EFFECTIVE_LIB_PREFIX)gtest
|
|
|
|
$(MAKE) libs SHARED_LIBRARY_NAME=gtest/$(EFFECTIVE_LIB_PREFIX)$(LIBRARY_NAME) FINAL_TARGET=$(FINAL_TARGET)/gtest SDK_LIBRARY= IMPORT_LIB_DEST=$(IMPORT_LIB_DEST)/gtest LINK_GTEST=true
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef LINK_GTEST
|
|
|
|
|
2013-07-29 08:03:21 -07:00
|
|
|
COMPONENT_LIBS += \
|
2013-03-11 11:47:40 -07:00
|
|
|
gtest \
|
|
|
|
gfxtest \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2013-03-20 06:56:41 -07:00
|
|
|
|
|
|
|
$(FINAL_TARGET)/dependentlibs.list: dependentlibs.py $(SHARED_LIBRARY) $(wildcard $(if $(wildcard $(FINAL_TARGET)/dependentlibs.list),$(addprefix $(FINAL_TARGET)/,$(shell cat $(FINAL_TARGET)/dependentlibs.list))))
|
|
|
|
$(PYTHON) $< $(SHARED_LIBRARY) -L $(FINAL_TARGET) $(if $(TOOLCHAIN_PREFIX),$(addprefix -p ,$(TOOLCHAIN_PREFIX))) > $@
|
2013-03-11 11:47:40 -07:00
|
|
|
|
|
|
|
|