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
|
|
|
|
2011-11-16 22:58:09 +04:00
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2004-12-07 01:39:54 +03:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2006-04-18 19:52:41 +04:00
|
|
|
include $(topsrcdir)/rdf/util/src/objs.mk
|
|
|
|
include $(topsrcdir)/intl/unicharutil/util/objs.mk
|
|
|
|
|
2004-12-07 01:39:54 +03:00
|
|
|
MODULE = libxul
|
|
|
|
LIBRARY_NAME = xul
|
|
|
|
FORCE_SHARED_LIB = 1
|
2005-04-05 20:34:09 +04:00
|
|
|
MOZILLA_INTERNAL_API = 1
|
2004-12-07 01:39:54 +03:00
|
|
|
|
2012-05-23 01:00:48 +04:00
|
|
|
ifdef MOZ_METRO
|
|
|
|
DIRS += winvccorlib
|
|
|
|
endif
|
|
|
|
|
2008-03-01 02:24:53 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2005-06-23 20:55:52 +04:00
|
|
|
# This is going to be a framework named "XUL", not an ordinary library named
|
|
|
|
# "libxul.dylib"
|
|
|
|
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
|
|
|
|
|
2011-04-15 13:03:17 +04:00
|
|
|
VPATH += $(topsrcdir)/build/
|
2004-12-07 01:39:54 +03:00
|
|
|
|
|
|
|
ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
|
2005-11-23 17:16:33 +03:00
|
|
|
CPPSRCS += dlldeps-xul.cpp
|
2004-12-07 01:39:54 +03:00
|
|
|
endif
|
|
|
|
|
2006-03-08 22:29:25 +03:00
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
CPPSRCS += dlldeps-xul.cpp
|
|
|
|
endif
|
|
|
|
|
2011-04-12 04:17:56 +04:00
|
|
|
ifneq (,$(MOZ_ENABLE_GTK2))
|
|
|
|
DEFINES += -DMOZ_ENABLE_GTK2
|
|
|
|
endif
|
|
|
|
|
2007-02-21 19:56:04 +03:00
|
|
|
SHARED_LIBRARY_LIBS += \
|
2011-11-16 22:58:09 +04:00
|
|
|
$(DEPTH)/toolkit/xre/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
2006-01-26 22:10:50 +03:00
|
|
|
|
2006-04-06 22:06:05 +04:00
|
|
|
SHARED_LIBRARY_LIBS += \
|
2011-11-16 22:58:09 +04:00
|
|
|
$(foreach component,$(COMPONENT_LIBS),$(DEPTH)/staticlib/components/$(LIB_PREFIX)$(component).$(LIB_SUFFIX)) \
|
|
|
|
$(foreach lib,$(STATIC_LIBS),$(DEPTH)/staticlib/$(LIB_PREFIX)$(lib).$(LIB_SUFFIX)) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CPPSRCS += \
|
|
|
|
nsStaticXULComponents.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
CPPSRCS += \
|
|
|
|
nsDllMain.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
|
|
|
|
CPPSRCS += \
|
|
|
|
nsGFXDeps.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
RCINCLUDE = xulrunner.rc
|
|
|
|
|
|
|
|
ifndef MOZ_NATIVE_ZLIB
|
|
|
|
CPPSRCS += dlldeps-zlib.cpp
|
|
|
|
endif
|
|
|
|
|
2012-01-04 07:09:29 +04:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/windows
|
2011-11-16 22:58:09 +04:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/base
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter WINNT OS2,$(OS_ARCH)))
|
|
|
|
DEFINES += -DZLIB_DLL=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
|
|
|
|
CPPSRCS += \
|
|
|
|
nsGFXDeps.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifndef MOZ_NATIVE_ZLIB
|
|
|
|
CPPSRCS += dlldeps-zlib.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
RESFILE = xulrunos2.res
|
2012-01-04 07:09:29 +04:00
|
|
|
RCFLAGS += -i $(topsrcdir)/widget/os2
|
2011-11-16 22:58:09 +04:00
|
|
|
|
2012-01-04 07:09:29 +04:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/os2
|
2011-11-16 22:58:09 +04: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-31 08:42:20 +04:00
|
|
|
dombindings_s \
|
2011-11-16 22:58:09 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2011-12-07 14:58:56 +04:00
|
|
|
ifdef MOZ_B2G_RIL #{
|
|
|
|
STATIC_LIBS += mozril_s
|
|
|
|
endif #}
|
|
|
|
|
2012-05-08 01:50:25 +04:00
|
|
|
ifdef MOZ_B2G_BT #{
|
|
|
|
STATIC_LIBS += mozdbus_s
|
|
|
|
endif #}
|
|
|
|
|
2011-11-16 22:58:09 +04:00
|
|
|
ifdef MOZ_IPDL_TESTS
|
|
|
|
STATIC_LIBS += ipdlunittest_s
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (Linux,$(OS_ARCH))
|
|
|
|
ifneq (Android,$(OS_TARGET))
|
|
|
|
OS_LIBS += -lrt
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
STATIC_LIBS += \
|
|
|
|
xpcom_core \
|
|
|
|
ucvutil_s \
|
|
|
|
chromium_s \
|
2011-12-08 03:24:20 +04:00
|
|
|
snappy_s \
|
2011-11-16 22:58:09 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# component libraries
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
necko \
|
|
|
|
uconv \
|
|
|
|
i18n \
|
|
|
|
chardet \
|
|
|
|
jar$(VERSION_NUMBER) \
|
|
|
|
startupcache \
|
|
|
|
pref \
|
|
|
|
htmlpars \
|
|
|
|
imglib2 \
|
|
|
|
gkgfx \
|
|
|
|
gklayout \
|
|
|
|
docshell \
|
|
|
|
embedcomponents \
|
|
|
|
webbrwsr \
|
|
|
|
nsappshell \
|
|
|
|
txmgr \
|
|
|
|
commandlines \
|
|
|
|
toolkitcomps \
|
|
|
|
pipboot \
|
|
|
|
pipnss \
|
|
|
|
appcomps \
|
|
|
|
jsreflect \
|
|
|
|
composer \
|
|
|
|
telemetry \
|
2012-02-07 21:22:30 +04:00
|
|
|
jsinspector \
|
2011-11-16 22:58:09 +04:00
|
|
|
jsdebugger \
|
|
|
|
storagecomps \
|
|
|
|
rdf \
|
|
|
|
windowds \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef BUILD_CTYPES
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
jsctypes \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
jsperf \
|
|
|
|
gkplugin \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef MOZ_XUL
|
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
unixproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
osxproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_XUL
|
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
unixproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter windows,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
windowsproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_JSDEBUGGER
|
|
|
|
DEFINES += -DMOZ_JSDEBUGGER
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
jsd \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_PREF_EXTENSIONS
|
|
|
|
DEFINES += -DMOZ_PREF_EXTENSIONS
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
autoconfig \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_AUTH_EXTENSION
|
|
|
|
COMPONENT_LIBS += auth
|
|
|
|
DEFINES += -DMOZ_AUTH_EXTENSION
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_PERMISSIONS
|
|
|
|
COMPONENT_LIBS += cookie permissions
|
|
|
|
DEFINES += -DMOZ_PERMISSIONS
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_UNIVERSALCHARDET
|
|
|
|
COMPONENT_LIBS += universalchardet
|
|
|
|
DEFINES += -DMOZ_UNIVERSALCHARDET
|
|
|
|
endif
|
|
|
|
|
2011-11-18 23:04:13 +04:00
|
|
|
ifeq (,$(filter android gonk qt os2 cocoa windows,$(MOZ_WIDGET_TOOLKIT)))
|
2011-11-16 22:58:09 +04:00
|
|
|
ifdef MOZ_XUL
|
|
|
|
COMPONENT_LIBS += fileview
|
|
|
|
DEFINES += -DMOZ_FILEVIEW
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_PLACES
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
places \
|
2004-12-07 01:39:54 +03:00
|
|
|
$(NULL)
|
2011-11-16 22:58:09 +04:00
|
|
|
endif
|
2004-12-07 01:39:54 +03:00
|
|
|
|
2011-11-16 22:58:09 +04:00
|
|
|
ifdef MOZ_XUL
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
tkautocomplete \
|
|
|
|
satchel \
|
|
|
|
pippki \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
COMPONENT_LIBS += widget_gtk2
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
ifdef MOZ_X11
|
|
|
|
STATIC_LIBS += gtkxtbin
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Platform-specific icon channel stuff - supported mostly-everywhere
|
|
|
|
ifneq (,$(filter windows os2 mac cocoa gtk2 qt android,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
DEFINES += -DICON_DECODER
|
|
|
|
COMPONENT_LIBS += imgicon
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
|
|
|
|
COMPONENT_LIBS += widget_android
|
2011-11-21 11:55:50 +04:00
|
|
|
STATIC_LIBS += skia_npapi
|
2011-11-16 22:58:09 +04:00
|
|
|
endif
|
|
|
|
|
2011-11-18 23:04:13 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
|
|
|
|
COMPONENT_LIBS += widget_gonk
|
|
|
|
endif
|
|
|
|
|
2011-11-19 01:28:29 +04:00
|
|
|
STATIC_LIBS += thebes gl ycbcr
|
2011-11-16 22:58:09 +04:00
|
|
|
|
2012-03-13 12:48:00 +04:00
|
|
|
ifdef MOZ_ENABLE_PROFILER_SPS
|
2011-11-05 01:07:50 +04:00
|
|
|
COMPONENT_LIBS += profiler
|
2012-03-13 12:48:00 +04:00
|
|
|
endif
|
2011-11-16 22:58:09 +04:00
|
|
|
|
|
|
|
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
|
2012-01-04 07:10:06 +04:00
|
|
|
COMPONENT_LIBS += widget_windows
|
2011-11-16 22:58:09 +04:00
|
|
|
endif
|
|
|
|
ifeq (os2,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
COMPONENT_LIBS += wdgtos2
|
|
|
|
endif
|
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
COMPONENT_LIBS += widget_mac
|
|
|
|
endif
|
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
COMPONENT_LIBS += widget_qt
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
COMPONENT_LIBS += accessibility
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_XREMOTE
|
|
|
|
COMPONENT_LIBS += remoteservice
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_SPELLCHECK
|
|
|
|
DEFINES += -DMOZ_SPELLCHECK
|
|
|
|
COMPONENT_LIBS += spellchecker
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_ZIPWRITER
|
|
|
|
DEFINES += -DMOZ_ZIPWRITER
|
|
|
|
COMPONENT_LIBS += zipwriter
|
|
|
|
endif
|
|
|
|
|
|
|
|
COMPONENT_LIBS += services-crypto
|
|
|
|
|
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
COMPONENT_LIBS += gkdebug
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_APP_COMPONENT_LIBS
|
|
|
|
COMPONENT_LIBS += $(MOZ_APP_COMPONENT_LIBS)
|
|
|
|
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)
|
|
|
|
|
2012-05-02 17:28:52 +04:00
|
|
|
ifdef MOZ_NATIVE_JPEG
|
2012-06-20 12:55:59 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(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 12:55:59 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(PNG_LIBS)
|
2012-05-02 19:02:15 +04:00
|
|
|
endif
|
|
|
|
|
2012-06-20 12:55:59 +04:00
|
|
|
ifdef MOZ_NATIVE_ZLIB
|
|
|
|
EXTRA_DSO_LDOPTS += $(ZLIB_LIBS)
|
|
|
|
else
|
2011-11-16 22:58:09 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_ZLIB_LIBS)
|
2012-06-20 12:55: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
|
|
|
|
|
2011-12-15 09:40:20 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,gkmedias,$(DIST)/lib)
|
|
|
|
|
2011-11-16 22:58:09 +04:00
|
|
|
ifdef MOZ_SYDNEYAUDIO
|
|
|
|
ifeq ($(OS_ARCH),Linux)
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_ALSA_LIBS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
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 \
|
|
|
|
-lbinder \
|
2012-02-06 06:41:15 +04:00
|
|
|
-lsensorservice \
|
2012-05-08 01:50:25 +04:00
|
|
|
-ldbus \
|
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
|
|
|
|
2005-11-23 17:16:33 +03:00
|
|
|
EXTRA_DEPS += \
|
2011-11-08 15:42:54 +04:00
|
|
|
$(topsrcdir)/intl/unicharutil/util/objs.mk \
|
|
|
|
$(topsrcdir)/rdf/util/src/objs.mk \
|
|
|
|
$(NULL)
|
2006-04-18 19:52:41 +04:00
|
|
|
|
|
|
|
CPPSRCS += \
|
2011-11-08 15:42:54 +04:00
|
|
|
$(INTL_UNICHARUTIL_UTIL_LCPPSRCS) \
|
|
|
|
$(RDF_UTIL_SRC_LCPPSRCS) \
|
|
|
|
$(NULL)
|
2006-04-18 19:52:41 +04:00
|
|
|
|
2011-11-16 22:58:09 +04:00
|
|
|
GARBAGE += \
|
2011-11-08 15:42:54 +04:00
|
|
|
$(INTL_UNICHARUTIL_UTIL_LCPPSRCS) \
|
|
|
|
$(wildcard *.$(OBJ_SUFFIX)) \
|
|
|
|
$(RDF_UTIL_SRC_LCPPSRCS) \
|
|
|
|
$(NULL)
|
2006-08-15 02:36:15 +04:00
|
|
|
|
2010-07-29 23:22:16 +04:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/intl/unicharutil/util \
|
|
|
|
-I$(topsrcdir)/intl/unicharutil/src
|
2007-07-01 09:56:10 +04:00
|
|
|
|
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
|
|
|
|
|
2011-11-11 09:09:59 +04: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-17 10:54:59 +04:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2011-11-11 09:09:59 +04:00
|
|
|
IS_32BIT_HOST := $(if $(filter AMD64,$(PROCESSOR_ARCHITECTURE) $(PROCESSOR_ARCHITEW6432)),,yes)
|
|
|
|
ifneq (,$(or $(filter 1400,$(_MSC_VER)),$(IS_32BIT_HOST)))
|
2011-05-17 10:54:59 +04:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
EXTRA_DSO_LDOPTS += -INCREMENTAL:NO
|
|
|
|
endif
|
|
|
|
endif
|
2011-10-28 18:05:06 +04:00
|
|
|
endif
|
2011-05-17 10:54:59 +04:00
|
|
|
|
2007-07-25 10:17:09 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(LIBS_DIR) $(EXTRA_DSO_LIBS)
|
2004-12-09 22:28:35 +03:00
|
|
|
|
2005-11-23 17:16:33 +03:00
|
|
|
DEFINES += -DIMPL_XREAPI
|
2004-12-07 01:39:54 +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 \
|
|
|
|
-framework QuickTime \
|
|
|
|
-framework IOKit \
|
|
|
|
-F/System/Library/PrivateFrameworks -framework CoreUI \
|
|
|
|
$(TK_LIBS) \
|
|
|
|
$(NULL)
|
2009-04-20 18:48:00 +04:00
|
|
|
endif
|
2008-07-30 10:50:14 +04:00
|
|
|
|
2009-04-20 18:48:00 +04:00
|
|
|
ifeq ($(OS_ARCH),Darwin)
|
2008-11-06 23:53:20 +03:00
|
|
|
ifdef MOZ_SYDNEYAUDIO
|
2012-01-10 17:47:41 +04:00
|
|
|
OS_LIBS += \
|
2011-11-16 22:58:09 +04:00
|
|
|
-framework Carbon \
|
|
|
|
-framework CoreAudio \
|
|
|
|
-framework AudioToolbox \
|
|
|
|
-framework AudioUnit \
|
|
|
|
-framework IOKit \
|
|
|
|
-framework Foundation \
|
|
|
|
-framework AppKit \
|
|
|
|
$(NULL)
|
2008-07-30 10:50:14 +04:00
|
|
|
endif
|
2004-12-07 01:39:54 +03:00
|
|
|
endif
|
|
|
|
|
2011-07-28 11:04:22 +04:00
|
|
|
ifneq (,$(filter NetBSD OpenBSD,$(OS_ARCH)))
|
2011-05-06 01:12:04 +04:00
|
|
|
ifdef MOZ_SYDNEYAUDIO
|
|
|
|
EXTRA_DSO_LDOPTS += -lossaudio
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-06-02 11:10:42 +04:00
|
|
|
ifeq (OpenBSD,$(OS_ARCH))
|
|
|
|
ifdef MOZ_CUBEB
|
|
|
|
EXTRA_DSO_LDOPTS += -lsndio
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2010-02-09 22:02:11 +03:00
|
|
|
ifdef MOZ_PLATFORM_MAEMO
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_PLATFORM_MAEMO_LIBS)
|
2011-11-16 22:58:09 +04:00
|
|
|
endif
|
2008-09-10 20:10:23 +04:00
|
|
|
|
2009-11-18 18:20:45 +03:00
|
|
|
ifdef MOZ_ENABLE_LIBCONIC
|
|
|
|
EXTRA_DSO_LDOPTS += $(LIBCONIC_LIBS)
|
|
|
|
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
|
|
|
|
2007-06-17 20:01:40 +04:00
|
|
|
ifeq (gtk2,$(MOZ_WIDGET_TOOLKIT))
|
2009-02-25 18:25:12 +03:00
|
|
|
EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS) $(XEXT_LIBS) $(XCOMPOSITE_LIBS) $(MOZ_PANGO_LIBS) $(MOZ_GTK2_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)
|
2012-01-04 07:09:29 +04:00
|
|
|
EXTRA_DSO_LDOPTS += $(LIBXUL_DIST)/../widget/qt/faststartupqt/$(LIB_PREFIX)faststartupqt.$(LIB_SUFFIX)
|
2009-01-23 09:24:29 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_TREE_FREETYPE
|
2010-11-07 11:20:51 +03:00
|
|
|
ifndef MOZ_TREE_CAIRO
|
2009-01-23 09:24:29 +03:00
|
|
|
EXTRA_DSO_LDOPTS += $(FT2_LIBS)
|
2008-04-19 17:21:59 +04:00
|
|
|
endif
|
2010-11-07 11:20:51 +03:00
|
|
|
endif
|
2008-04-19 17:21:59 +04:00
|
|
|
|
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
|
|
|
|
2004-12-07 01:39:54 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
2012-06-14 05:12:36 +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)
|
2012-02-02 16:29:58 +04:00
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,oleacc)
|
|
|
|
endif
|
2012-01-03 14:08:33 +04:00
|
|
|
ifdef _MSC_VER
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,delayimp)
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
2012-02-23 18:53:55 +04:00
|
|
|
-DELAYLOAD:psapi.dll \
|
|
|
|
-DELAYLOAD:dbghelp.dll \
|
2012-01-03 14:08:33 +04:00
|
|
|
-DELAYLOAD:rasapi32.dll \
|
|
|
|
-DELAYLOAD:rasdlg.dll \
|
2012-01-10 10:30:09 +04:00
|
|
|
-DELAYLOAD:comdlg32.dll \
|
|
|
|
-DELAYLOAD:winspool.drv \
|
2012-02-23 18:53:55 +04:00
|
|
|
-DELAYLOAD:secur32.dll \
|
2012-06-14 05:12:36 +04:00
|
|
|
-DELAYLOAD:wininet.dll \
|
2012-01-03 14:08:33 +04:00
|
|
|
$(NULL)
|
2012-05-23 01:00:48 +04: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
|
|
|
|
endif
|
|
|
|
|
2012-02-07 06:35:41 +04:00
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
EXTRA_DSO_LDOPTS += -DELAYLOAD:oleacc.dll
|
|
|
|
endif
|
2012-01-03 14:08:33 +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
|
|
|
|
|
2012-04-19 02:33:13 +04:00
|
|
|
ifdef MOZ_GSTREAMER
|
|
|
|
EXTRA_DSO_LDOPTS += $(GSTREAMER_LIBS)
|
|
|
|
endif
|
|
|
|
|
2009-11-02 12:17:27 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
export:: $(RDF_UTIL_SRC_CPPSRCS) $(INTL_UNICHARUTIL_UTIL_CPPSRCS)
|
|
|
|
$(INSTALL) $^ .
|
|
|
|
|
2012-01-04 07:09:29 +04:00
|
|
|
# need widget/windows for resource.h (included from widget.rc)
|
2011-11-16 22:58:09 +04:00
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(topsrcdir)/config \
|
2012-01-04 07:09:29 +04:00
|
|
|
-I$(topsrcdir)/widget/windows \
|
2011-11-16 22:58:09 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
OS_LIBS += $(LIBICONV)
|
|
|
|
|
|
|
|
DEFINES += \
|
|
|
|
-D_IMPL_NS_COM \
|
|
|
|
-D_IMPL_NS_STRINGAPI \
|
|
|
|
-DEXPORT_XPT_API \
|
|
|
|
-DEXPORT_XPTC_API \
|
|
|
|
-D_IMPL_NS_GFX \
|
|
|
|
-D_IMPL_NS_WIDGET \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
OS_LIBS += $(call EXPAND_LIBNAME,usp10 oleaut32)
|
|
|
|
endif
|
2009-11-02 12:17:27 +03:00
|
|
|
|
2011-04-13 04:54:18 +04:00
|
|
|
ifeq ($(OS_ARCH),OpenBSD)
|
|
|
|
# Needed by nsAuthGSSAPI
|
|
|
|
EXTRA_DSO_LDOPTS += -lkrb5 -lcrypto
|
|
|
|
endif
|
|
|
|
|
2010-09-11 01:26:16 +04:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
DEFINES += -DENABLE_LAYOUTDEBUG
|
|
|
|
endif
|
|
|
|
endif
|
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
|