2012-02-02 10:09:00 +04: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/.
|
2004-12-07 01:39:54 +03:00
|
|
|
|
2005-04-05 20:34:09 +04:00
|
|
|
MOZILLA_INTERNAL_API = 1
|
2004-12-07 01:39:54 +03:00
|
|
|
|
2008-03-01 02:24:53 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2013-11-19 06:46:40 +04:00
|
|
|
# This is going to be a framework named "XUL", not an ordinary library named
|
|
|
|
# "libxul.dylib"
|
|
|
|
SHARED_LIBRARY_NAME=XUL
|
2007-08-20 04:00:11 +04: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
|
2005-06-23 20:55:52 +04:00
|
|
|
endif
|
|
|
|
|
2013-10-31 03:58:45 +04:00
|
|
|
ifdef MOZ_CONTENT_SANDBOX
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2013-10-31 03:58:56 +04:00
|
|
|
SHARED_LIBRARY_LIBS += ../../security/sandbox/win/src/sandboxbroker/$(LIB_PREFIX)sandboxbroker.$(LIB_SUFFIX)
|
2013-03-31 02:29:47 +04:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-11-19 06:47:14 +04:00
|
|
|
# COMPONENT_LIBS is mosly useless since bug 935881, but is kept for
|
|
|
|
# MOZ_APP_COMPONENT_LIBS, used by comm-central, and gtest linking.
|
2006-04-06 22:06:05 +04:00
|
|
|
SHARED_LIBRARY_LIBS += \
|
2013-08-09 04:12:37 +04:00
|
|
|
$(foreach component,$(COMPONENT_LIBS),$(DEPTH)/staticlib/$(LIB_PREFIX)$(component).$(LIB_SUFFIX)) \
|
2011-11-16 22:58:09 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
|
|
|
|
RCINCLUDE = xulrunner.rc
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),OS2)
|
2012-01-04 07:09:29 +04:00
|
|
|
RCFLAGS += -i $(topsrcdir)/widget/os2
|
2011-11-16 22:58:09 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
# dependent libraries
|
2013-10-23 10:12:24 +04:00
|
|
|
ifdef MOZ_B2G_BT_BLUEZ #{
|
2013-07-30 21:36:54 +04:00
|
|
|
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
OS_LIBS += -ldbus
|
|
|
|
endif
|
2013-02-04 14:56:12 +04:00
|
|
|
endif #}
|
|
|
|
|
2012-09-29 09:30:52 +04:00
|
|
|
ifdef MOZ_B2G_CAMERA #{
|
|
|
|
OS_LIBS += -lstagefright -lstagefright_omx
|
|
|
|
endif #}
|
|
|
|
|
2011-11-16 22:58:09 +04:00
|
|
|
ifeq (Linux,$(OS_ARCH))
|
|
|
|
ifneq (Android,$(OS_TARGET))
|
|
|
|
OS_LIBS += -lrt
|
2013-04-26 02:35:40 +04:00
|
|
|
EXTRA_DSO_LDOPTS += -Wl,-version-script,symverscript
|
|
|
|
|
|
|
|
symverscript: symverscript.in
|
2013-11-09 05:35:44 +04:00
|
|
|
$(call py_action,preprocessor, \
|
2013-12-03 01:34:21 +04:00
|
|
|
-DVERSION='$(LIBRARY_NAME)$(MOZILLA_SYMBOLVERSION)' $< -o $@)
|
2013-04-26 02:35:40 +04:00
|
|
|
|
|
|
|
EXTRA_DEPS += symverscript
|
2011-11-16 22:58:09 +04:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_APP_COMPONENT_LIBS
|
2013-07-29 19:03:21 +04:00
|
|
|
COMPONENT_LIBS += $(MOZ_APP_COMPONENT_LIBS)
|
2011-11-16 22:58:09 +04: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-03 00:32:16 +04:00
|
|
|
$(MOZ_CAIRO_OSLIBS) \
|
2011-11-16 22:58:09 +04:00
|
|
|
$(MOZ_APP_EXTRA_LIBS) \
|
|
|
|
$(SQLITE_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2013-12-06 17:08:52 +04:00
|
|
|
ifdef ENABLE_INTL_API
|
|
|
|
ifdef JS_SHARED_LIBRARY
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_ICU_LIBS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-05-02 17:28:52 +04:00
|
|
|
ifdef MOZ_NATIVE_JPEG
|
2012-06-20 11:00:48 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_JPEG_LIBS)
|
2012-05-02 17:28:52 +04:00
|
|
|
endif
|
|
|
|
|
2012-05-02 19:02:15 +04:00
|
|
|
ifdef MOZ_NATIVE_PNG
|
2012-06-20 11:00:48 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_PNG_LIBS)
|
2012-05-02 19:02:15 +04:00
|
|
|
endif
|
|
|
|
|
2013-11-22 18:03:21 +04:00
|
|
|
ifndef ZLIB_IN_MOZGLUE
|
2011-11-16 22:58:09 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_ZLIB_LIBS)
|
2012-07-12 10:30:59 +04:00
|
|
|
endif
|
2011-11-16 22:58:09 +04: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-26 10:44:00 +04:00
|
|
|
ifndef MOZ_TREE_PIXMAN
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_PIXMAN_LIBS)
|
|
|
|
endif
|
|
|
|
|
2012-12-11 04:05:07 +04:00
|
|
|
ifdef MOZ_DMD
|
|
|
|
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,dmd,$(DIST)/lib)
|
|
|
|
endif
|
|
|
|
|
2012-08-30 00:35:53 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,gkmedias,$(DIST)/lib)
|
2011-12-15 09:40:20 +04:00
|
|
|
|
2012-10-04 20:09:35 +04:00
|
|
|
ifdef MOZ_WEBRTC
|
|
|
|
ifeq (WINNT,$(OS_TARGET))
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
2013-12-03 01:34:21 +04:00
|
|
|
-LIBPATH:'$(MOZ_DIRECTX_SDK_PATH)/lib/$(MOZ_DIRECTX_SDK_CPU_SUFFIX)' \
|
2012-10-04 20:09:35 +04:00
|
|
|
$(NULL)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,secur32 crypt32 iphlpapi strmiids dmoguids wmcodecdspuuid amstrmid msdmo wininet)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2012-11-27 05:38:21 +04:00
|
|
|
ifdef MOZ_ALSA
|
2011-11-16 22:58:09 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_ALSA_LIBS)
|
|
|
|
endif
|
2012-08-08 02:26:04 +04:00
|
|
|
|
2011-11-16 22:58:09 +04:00
|
|
|
ifdef HAVE_CLOCK_MONOTONIC
|
|
|
|
EXTRA_DSO_LDOPTS += $(REALTIME_LIBS)
|
|
|
|
endif
|
2004-12-07 01:39:54 +03:00
|
|
|
|
2011-11-16 22:58:09 +04:00
|
|
|
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
OS_LIBS += -lGLESv2
|
|
|
|
endif
|
2004-12-09 22:28:35 +03:00
|
|
|
|
2011-11-18 23:04:13 +04:00
|
|
|
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
|
2011-12-12 22:22:26 +04:00
|
|
|
OS_LIBS += \
|
|
|
|
-lui \
|
|
|
|
-lmedia \
|
2011-12-20 23:31:53 +04:00
|
|
|
-lhardware_legacy \
|
2012-01-19 18:53:51 +04:00
|
|
|
-lhardware \
|
2012-01-25 23:00:34 +04:00
|
|
|
-lutils \
|
2012-02-01 04:29:17 +04:00
|
|
|
-lcutils \
|
2012-04-13 08:02:33 +04:00
|
|
|
-lsysutils \
|
2012-02-01 04:29:17 +04:00
|
|
|
-lcamera_client \
|
2012-02-06 06:41:15 +04:00
|
|
|
-lsensorservice \
|
2012-09-27 08:33:42 +04:00
|
|
|
-lstagefright \
|
2013-05-17 04:24:20 +04:00
|
|
|
-lstagefright_foundation \
|
2012-09-27 08:33:42 +04:00
|
|
|
-lstagefright_omx \
|
|
|
|
-lbinder \
|
2013-03-08 23:43:33 +04:00
|
|
|
-lgui \
|
2011-12-12 22:22:26 +04:00
|
|
|
$(NULL)
|
2011-11-18 23:04:13 +04:00
|
|
|
endif
|
2004-12-09 22:28:35 +03:00
|
|
|
|
2013-11-12 02:52:33 +04:00
|
|
|
ifneq (,$(filter rtsp,$(NECKO_PROTOCOLS)))
|
2013-09-23 14:12:11 +04:00
|
|
|
OS_LIBS += -lstagefright_foundation
|
|
|
|
endif
|
|
|
|
|
2013-01-02 21:26:08 +04:00
|
|
|
ifdef MOZ_WMF
|
2013-05-06 03:49:45 +04:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,mfuuid wmcodecdspuuid strmiids)
|
2013-01-02 21:26:08 +04:00
|
|
|
endif
|
|
|
|
|
2013-08-13 08:49:25 +04:00
|
|
|
ifdef MOZ_DIRECTSHOW
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,dmoguids wmcodecdspuuid strmiids msdmo)
|
|
|
|
endif
|
|
|
|
|
2011-04-29 14:38:26 +04:00
|
|
|
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
|
2007-08-03 18:46:17 +04:00
|
|
|
SDK_LIBRARY = $(IMPORT_LIBRARY)
|
|
|
|
else
|
|
|
|
SDK_LIBRARY = $(SHARED_LIBRARY)
|
|
|
|
endif
|
|
|
|
|
2013-06-14 06:58:22 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(LIBS_DIR)
|
2004-12-09 22:28:35 +03:00
|
|
|
|
2010-03-04 08:02:57 +03:00
|
|
|
EXTRA_DSO_LDOPTS += $(NSPR_LIBS) $(MOZALLOC_LIB)
|
2004-12-07 01:39:54 +03:00
|
|
|
|
2008-03-01 02:24:53 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2011-11-16 22:58:09 +04:00
|
|
|
CXXFLAGS += $(TK_CFLAGS)
|
2010-02-09 20:09:06 +03:00
|
|
|
OS_LIBS += \
|
2011-11-16 22:58:09 +04:00
|
|
|
-framework SystemConfiguration \
|
2012-06-20 15:27:43 +04:00
|
|
|
-framework QTKit \
|
2011-11-16 22:58:09 +04:00
|
|
|
-framework IOKit \
|
2013-10-31 17:50:26 +04:00
|
|
|
-F$(MACOS_PRIVATE_FRAMEWORKS_DIR) -framework CoreUI \
|
2011-11-16 22:58:09 +04:00
|
|
|
$(TK_LIBS) \
|
|
|
|
$(NULL)
|
2009-04-20 18:48:00 +04:00
|
|
|
endif
|
2008-07-30 10:50:14 +04:00
|
|
|
|
2012-06-02 11:10:42 +04:00
|
|
|
ifeq (OpenBSD,$(OS_ARCH))
|
|
|
|
EXTRA_DSO_LDOPTS += -lsndio
|
|
|
|
endif
|
|
|
|
|
2008-07-25 20:36:07 +04:00
|
|
|
ifdef MOZ_ENABLE_DBUS
|
2011-03-24 17:26:58 +03:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_DBUS_GLIB_LIBS)
|
|
|
|
endif
|
2004-12-07 01:39:54 +03:00
|
|
|
|
2013-06-10 16:36:26 +04: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
|
2006-06-22 15:42:28 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(FT2_LIBS)
|
|
|
|
endif
|
|
|
|
|
2008-04-19 17:21:59 +04:00
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
2012-05-14 12:15:26 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS) $(XT_LIBS) $(MOZ_QT_LIBS)
|
2010-03-06 16:29:55 +03:00
|
|
|
EXTRA_DSO_LDOPTS += $(FT2_LIBS) $(MOZ_PANGO_LIBS)
|
2009-01-23 09:24:29 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_TREE_FREETYPE
|
|
|
|
EXTRA_DSO_LDOPTS += $(FT2_LIBS)
|
2008-04-19 17:21:59 +04:00
|
|
|
endif
|
|
|
|
|
2007-02-09 04:33:26 +03:00
|
|
|
ifdef MOZ_ENABLE_STARTUP_NOTIFICATION
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_STARTUP_NOTIFICATION_LIBS)
|
|
|
|
endif
|
|
|
|
|
2010-08-03 21:44:49 +04:00
|
|
|
ifdef MOZ_ENABLE_LIBPROXY
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_LIBPROXY_LIBS)
|
|
|
|
endif
|
|
|
|
|
2008-03-20 04:13:36 +03:00
|
|
|
ifeq ($(OS_ARCH),SunOS)
|
2010-09-18 12:15:33 +04:00
|
|
|
ifdef GNU_CC
|
|
|
|
EXTRA_DSO_LDOPTS += -lelf
|
|
|
|
else
|
2009-11-02 12:17:27 +03:00
|
|
|
EXTRA_DSO_LDOPTS += -lelf -ldemangle
|
2008-03-20 04:13:36 +03:00
|
|
|
endif
|
2010-09-18 12:15:33 +04:00
|
|
|
endif
|
2008-03-20 04:13:36 +03:00
|
|
|
|
2012-08-29 01:16:51 +04: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
|
|
|
|
|
2013-12-02 21:51:27 +04:00
|
|
|
ifeq ($(OS_ARCH),FreeBSD)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,util)
|
|
|
|
endif
|
|
|
|
|
2004-12-07 01:39:54 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2014-02-07 15:50:20 +04: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 wbemuuid wintrust)
|
2012-02-02 16:29:58 +04:00
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,oleacc)
|
|
|
|
endif
|
2012-11-04 17:48:46 +04:00
|
|
|
ifdef MOZ_METRO
|
2013-02-25 07:20:42 +04:00
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,uiautomationcore runtimeobject)
|
2012-11-04 17:48:46 +04:00
|
|
|
endif
|
2011-08-03 22:12:08 +04:00
|
|
|
ifdef MOZ_GAMEPAD
|
2013-03-28 14:43:23 +04:00
|
|
|
ifndef GNU_CC
|
2011-08-03 22:12:08 +04:00
|
|
|
DXSDK := $(subst \,/,$(MOZ_DIRECTX_SDK_PATH))/Lib/$(MOZ_DIRECTX_SDK_CPU_SUFFIX)
|
|
|
|
OS_LIBS += \
|
2013-12-03 01:34:21 +04:00
|
|
|
'$(DXSDK)/dxguid.lib' \
|
|
|
|
'$(DXSDK)/dinput8.lib' \
|
2011-08-03 22:12:08 +04:00
|
|
|
$(NULL)
|
2013-03-28 14:43:23 +04:00
|
|
|
else
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,dxguid dinput8)
|
|
|
|
endif
|
2011-08-03 22:12:08 +04:00
|
|
|
endif
|
2004-12-07 01:39:54 +03:00
|
|
|
endif # WINNT
|
2008-03-05 22:23:44 +03:00
|
|
|
|
2006-04-25 05:58:41 +04:00
|
|
|
ifdef MOZ_JPROF
|
|
|
|
EXTRA_DSO_LDOPTS += -ljprof
|
|
|
|
endif
|
|
|
|
|
2008-04-19 17:21:59 +04:00
|
|
|
ifdef MOZ_ENABLE_QT
|
2010-02-20 06:46:54 +03:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_QT_LDFLAGS) $(XEXT_LIBS)
|
2008-04-19 17:21:59 +04:00
|
|
|
endif
|
|
|
|
|
2013-06-11 06:13:09 +04:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2012-04-19 02:33:13 +04:00
|
|
|
ifdef MOZ_GSTREAMER
|
|
|
|
EXTRA_DSO_LDOPTS += $(GSTREAMER_LIBS)
|
|
|
|
endif
|
2013-06-11 06:13:09 +04:00
|
|
|
endif
|
2012-04-19 02:33:13 +04:00
|
|
|
|
2013-03-06 20:38:31 +04: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 22:47:40 +04:00
|
|
|
ifdef MAKE_FRAMEWORK
|
|
|
|
EFFECTIVE_LIB_PREFIX=
|
2013-06-14 18:36:47 +04:00
|
|
|
EFFECTIVE_LIB_SUFFIX=
|
2013-03-11 22:47:40 +04:00
|
|
|
else
|
|
|
|
EFFECTIVE_LIB_PREFIX=$(DLL_PREFIX)
|
2013-06-14 18:36:47 +04:00
|
|
|
EFFECTIVE_LIB_SUFFIX=$(DLL_SUFFIX)
|
2013-03-11 22:47:40 +04:00
|
|
|
endif
|
|
|
|
|
2013-11-19 06:46:40 +04:00
|
|
|
GTEST_LIB = $(EFFECTIVE_LIB_PREFIX)gtest/$(EFFECTIVE_LIB_PREFIX)$(SHARED_LIBRARY_NAME)$(EFFECTIVE_LIB_SUFFIX)
|
2013-03-11 22:47:40 +04:00
|
|
|
EXTRA_MDDEPEND_FILES = $(GTEST_LIB).pp
|
|
|
|
|
2009-11-02 12:17:27 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2011-11-16 22:58:09 +04:00
|
|
|
OS_LIBS += $(LIBICONV)
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,usp10 oleaut32)
|
|
|
|
endif
|
2009-11-02 12:17:27 +03:00
|
|
|
|
2011-12-15 22:09:23 +04: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 17:56:41 +04:00
|
|
|
|
2013-03-11 22:47:40 +04:00
|
|
|
ifndef LINK_GTEST
|
2013-11-07 05:37:45 +04:00
|
|
|
ifdef COMPILE_ENVIRONMENT
|
2013-03-20 17:56:41 +04:00
|
|
|
libs:: $(FINAL_TARGET)/dependentlibs.list
|
2013-11-07 05:37:45 +04:00
|
|
|
endif
|
2013-03-11 22:47:40 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: gtestxul
|
|
|
|
|
|
|
|
$(FINAL_TARGET)/dependentlibs.list.gtest: $(FINAL_TARGET)/dependentlibs.list
|
2013-12-03 01:34:21 +04:00
|
|
|
sed -e 's|$(SHARED_LIBRARY)|gtest/$(SHARED_LIBRARY)|' $< > $@
|
2013-03-11 22:47:40 +04:00
|
|
|
|
|
|
|
# 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 19:03:21 +04:00
|
|
|
COMPONENT_LIBS += \
|
2013-03-11 22:47:40 +04:00
|
|
|
gtest \
|
|
|
|
gfxtest \
|
2013-10-11 11:17:19 +04:00
|
|
|
ssltest \
|
2013-12-05 20:48:48 +04:00
|
|
|
xpcom_glue_gtest \
|
2014-01-07 07:04:51 +04:00
|
|
|
media_gtest \
|
2013-03-11 22:47:40 +04:00
|
|
|
$(NULL)
|
|
|
|
endif
|
2013-03-20 17:56:41 +04: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))) > $@
|