2005-11-23 14:16:33 +00:00
|
|
|
#
|
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
|
|
|
# The Original Code is Mozilla libxul
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Benjamin Smedberg <benjamin@smedbergs.us>
|
|
|
|
#
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2005
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
2007-07-18 16:20:12 +00:00
|
|
|
# Shawn Wilsher <me@shawnwilsher.com>
|
2005-11-23 14:16:33 +00:00
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
|
|
|
CPPSRCS += \
|
|
|
|
nsStaticXULComponents.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
2008-12-03 13:41:12 +00:00
|
|
|
ifeq (,$(filter-out WINCE WINNT,$(OS_ARCH)))
|
2009-03-25 01:45:21 +00:00
|
|
|
REQUIRES += widget gfx
|
2008-09-06 23:52:54 +00:00
|
|
|
CPPSRCS += \
|
|
|
|
nsDllMain.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2005-11-23 14:16:33 +00:00
|
|
|
|
2008-09-06 23:52:54 +00:00
|
|
|
ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
|
2005-11-23 14:16:33 +00:00
|
|
|
CPPSRCS += \
|
|
|
|
dlldeps.cpp \
|
|
|
|
nsGFXDeps.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
2008-01-15 14:44:20 +00:00
|
|
|
RCINCLUDE = xulrunner.rc
|
2006-02-08 21:52:33 +00:00
|
|
|
|
2005-11-23 14:16:33 +00:00
|
|
|
ifndef MOZ_NATIVE_ZLIB
|
|
|
|
CPPSRCS += dlldeps-zlib.cpp
|
|
|
|
DEFINES += -DZLIB_INTERNAL
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/src/windows
|
|
|
|
endif
|
|
|
|
|
2006-03-08 19:29:25 +00:00
|
|
|
ifneq (,$(filter WINNT OS2,$(OS_ARCH)))
|
2009-03-25 01:45:21 +00:00
|
|
|
REQUIRES += libreg
|
2005-11-23 14:16:33 +00:00
|
|
|
DEFINES += -DZLIB_DLL=1
|
|
|
|
endif
|
|
|
|
|
2006-03-08 19:29:25 +00:00
|
|
|
ifeq ($(OS_ARCH),OS2)
|
2009-03-25 01:45:21 +00:00
|
|
|
REQUIRES += widget gfx
|
2006-03-08 19:29:25 +00:00
|
|
|
|
|
|
|
CPPSRCS += \
|
|
|
|
dlldeps.cpp \
|
|
|
|
nsGFXDeps.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifndef MOZ_NATIVE_ZLIB
|
|
|
|
CPPSRCS += dlldeps-zlib.cpp
|
|
|
|
DEFINES += -DZLIB_INTERNAL
|
|
|
|
endif
|
|
|
|
|
2007-07-17 21:22:05 +00:00
|
|
|
ifdef MOZ_ENABLE_LIBXUL
|
|
|
|
RESFILE = xulrunos2.res
|
|
|
|
RCFLAGS += -i $(topsrcdir)/widget/src/os2
|
|
|
|
endif
|
|
|
|
|
2006-03-08 19:29:25 +00:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/src/os2
|
|
|
|
endif
|
|
|
|
|
2005-11-23 14:16:33 +00:00
|
|
|
# dependent libraries
|
2009-06-30 16:02:37 +00:00
|
|
|
ifdef MOZ_IPC
|
|
|
|
STATIC_LIBS += \
|
2009-06-30 18:51:05 +00:00
|
|
|
domplugins_s \
|
2009-06-30 16:02:37 +00:00
|
|
|
mozipc_s \
|
2009-12-03 08:16:09 +00:00
|
|
|
mozipdlgen_s \
|
2009-12-01 21:05:26 +00:00
|
|
|
gfxipc_s \
|
2009-06-30 16:02:37 +00:00
|
|
|
$(NULL)
|
2009-06-30 17:21:26 +00:00
|
|
|
|
2009-10-06 18:02:26 +00:00
|
|
|
ifdef MOZ_IPDL_TESTS
|
|
|
|
STATIC_LIBS += ipdlunittest_s
|
|
|
|
endif
|
|
|
|
|
2009-07-07 16:21:10 +00:00
|
|
|
ifeq (Linux,$(OS_ARCH))
|
2009-06-30 17:21:26 +00:00
|
|
|
OS_LIBS += -lrt
|
2009-06-30 16:02:37 +00:00
|
|
|
endif
|
2009-07-07 16:21:10 +00:00
|
|
|
ifeq (WINNT,$(OS_ARCH))
|
2010-05-21 11:21:00 +00:00
|
|
|
OS_LIBS += dbghelp.lib
|
2009-07-07 16:21:10 +00:00
|
|
|
endif
|
|
|
|
endif
|
2009-06-30 16:02:37 +00:00
|
|
|
|
2005-11-23 14:16:33 +00:00
|
|
|
STATIC_LIBS += \
|
|
|
|
xpcom_core \
|
|
|
|
ucvutil_s \
|
|
|
|
gkgfx \
|
2010-04-18 03:13:10 +00:00
|
|
|
gfxutils \
|
2005-11-23 14:16:33 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2010-02-11 21:09:41 +00:00
|
|
|
ifdef MOZ_IPC
|
|
|
|
STATIC_LIBS += chromium_s
|
|
|
|
endif
|
|
|
|
|
2009-03-25 01:45:21 +00:00
|
|
|
ifndef WINCE
|
2007-07-24 01:54:36 +00:00
|
|
|
STATIC_LIBS += \
|
|
|
|
mozreg_s \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2005-11-23 14:16:33 +00:00
|
|
|
# component libraries
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
necko \
|
|
|
|
uconv \
|
|
|
|
i18n \
|
2006-09-13 22:13:40 +00:00
|
|
|
chardet \
|
2005-11-23 14:16:33 +00:00
|
|
|
jar$(VERSION_NUMBER) \
|
|
|
|
pref \
|
|
|
|
htmlpars \
|
|
|
|
imglib2 \
|
|
|
|
gklayout \
|
|
|
|
docshell \
|
|
|
|
embedcomponents \
|
|
|
|
webbrwsr \
|
|
|
|
nsappshell \
|
|
|
|
txmgr \
|
|
|
|
chrome \
|
|
|
|
commandlines \
|
2010-04-29 20:11:23 +00:00
|
|
|
extensions \
|
2005-11-23 14:16:33 +00:00
|
|
|
toolkitcomps \
|
|
|
|
pipboot \
|
|
|
|
pipnss \
|
2010-03-23 20:33:51 +00:00
|
|
|
appcomps \
|
2006-06-22 11:42:28 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2009-09-23 17:57:22 +00:00
|
|
|
ifdef BUILD_CTYPES
|
|
|
|
COMPONENT_LIBS += \
|
2009-09-23 17:57:22 +00:00
|
|
|
jsctypes \
|
2006-06-22 11:42:28 +00:00
|
|
|
$(NULL)
|
2009-09-23 17:57:22 +00:00
|
|
|
endif
|
2006-06-22 11:42:28 +00:00
|
|
|
|
|
|
|
ifdef MOZ_PLUGINS
|
2006-06-22 13:08:18 +00:00
|
|
|
DEFINES += -DMOZ_PLUGINS
|
2006-06-22 11:42:28 +00:00
|
|
|
COMPONENT_LIBS += \
|
|
|
|
gkplugin \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2008-01-29 18:38:15 +00:00
|
|
|
ifdef MOZ_XUL
|
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
COMPONENT_LIBS += \
|
2008-06-12 02:50:15 +00:00
|
|
|
unixproxy \
|
|
|
|
$(NULL)
|
2008-01-29 18:38:15 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2008-06-12 02:50:15 +00:00
|
|
|
ifneq (,$(filter cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
osxproxy \
|
|
|
|
$(NULL)
|
2008-01-29 18:38:15 +00:00
|
|
|
endif
|
|
|
|
|
2008-04-19 13:21:59 +00:00
|
|
|
ifdef MOZ_XUL
|
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
unixproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-04-25 08:29:32 +00:00
|
|
|
ifneq (,$(filter windows,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
windowsproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2006-06-22 11:42:28 +00:00
|
|
|
ifdef MOZ_JSDEBUGGER
|
2006-06-22 13:08:18 +00:00
|
|
|
DEFINES += -DMOZ_JSDEBUGGER
|
2006-06-22 11:42:28 +00:00
|
|
|
COMPONENT_LIBS += \
|
|
|
|
jsd \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_PREF_EXTENSIONS
|
2006-06-22 13:08:18 +00:00
|
|
|
DEFINES += -DMOZ_PREF_EXTENSIONS
|
2006-06-22 11:42:28 +00:00
|
|
|
COMPONENT_LIBS += \
|
2005-12-14 15:57:40 +00:00
|
|
|
autoconfig \
|
2005-11-23 14:16:33 +00:00
|
|
|
$(NULL)
|
2006-06-22 11:42:28 +00:00
|
|
|
endif
|
|
|
|
|
2006-04-28 13:19:36 +00:00
|
|
|
ifdef MOZ_AUTH_EXTENSION
|
|
|
|
COMPONENT_LIBS += auth
|
|
|
|
DEFINES += -DMOZ_AUTH_EXTENSION
|
|
|
|
endif
|
2006-05-25 15:45:17 +00:00
|
|
|
|
|
|
|
ifdef MOZ_PERMISSIONS
|
|
|
|
COMPONENT_LIBS += cookie permissions
|
|
|
|
DEFINES += -DMOZ_PERMISSIONS
|
|
|
|
endif
|
2006-04-28 13:19:36 +00:00
|
|
|
|
|
|
|
ifdef MOZ_UNIVERSALCHARDET
|
|
|
|
COMPONENT_LIBS += universalchardet
|
|
|
|
DEFINES += -DMOZ_UNIVERSALCHARDET
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef MOZ_PLAINTEXT_EDITOR_ONLY
|
|
|
|
COMPONENT_LIBS += composer
|
|
|
|
else
|
|
|
|
DEFINES += -DMOZ_PLAINTEXT_EDITOR_ONLY
|
|
|
|
endif
|
|
|
|
|
2006-08-14 22:36:15 +00:00
|
|
|
ifdef MOZ_RDF
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
rdf \
|
|
|
|
windowds \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2010-05-12 18:31:24 +00:00
|
|
|
ifeq (,$(filter qt beos os2 cocoa windows,$(MOZ_WIDGET_TOOLKIT)))
|
2007-07-05 22:44:44 +00:00
|
|
|
ifdef MOZ_XUL
|
2006-05-04 23:17:47 +00:00
|
|
|
COMPONENT_LIBS += fileview
|
|
|
|
DEFINES += -DMOZ_FILEVIEW
|
|
|
|
endif
|
2006-08-14 22:36:15 +00:00
|
|
|
endif
|
2006-05-04 23:17:47 +00:00
|
|
|
|
2006-10-25 19:12:13 +00:00
|
|
|
ifdef MOZ_STORAGE
|
|
|
|
COMPONENT_LIBS += storagecomps
|
2008-02-22 11:25:59 +00:00
|
|
|
EXTRA_DSO_LDOPTS += $(SQLITE_LIBS)
|
2006-10-25 19:12:13 +00:00
|
|
|
endif
|
|
|
|
|
2006-02-15 18:46:10 +00:00
|
|
|
ifdef MOZ_PLACES
|
|
|
|
STATIC_LIBS += morkreader_s
|
2006-07-18 19:41:12 +00:00
|
|
|
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
places \
|
|
|
|
$(NULL)
|
2006-02-15 18:46:10 +00:00
|
|
|
else
|
2006-06-22 11:42:28 +00:00
|
|
|
ifdef MOZ_MORK
|
2006-08-14 15:49:06 +00:00
|
|
|
ifdef MOZ_XUL
|
2006-02-15 18:46:10 +00:00
|
|
|
COMPONENT_LIBS += \
|
|
|
|
mork \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2006-06-22 11:42:28 +00:00
|
|
|
endif
|
2006-08-14 15:49:06 +00:00
|
|
|
endif
|
2006-02-15 18:46:10 +00:00
|
|
|
|
2006-01-25 20:23:24 +00:00
|
|
|
ifdef MOZ_XUL
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
tkautocomplete \
|
|
|
|
satchel \
|
|
|
|
pippki \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2005-11-23 14:16:33 +00:00
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
COMPONENT_LIBS += widget_gtk2
|
2006-06-22 11:42:28 +00:00
|
|
|
ifdef MOZ_PREF_EXTENSIONS
|
2005-12-14 15:57:40 +00:00
|
|
|
COMPONENT_LIBS += system-pref
|
2005-11-23 14:16:33 +00:00
|
|
|
endif
|
2006-06-22 11:42:28 +00:00
|
|
|
endif
|
2005-11-23 14:16:33 +00:00
|
|
|
|
2007-12-08 01:38:35 +00:00
|
|
|
ifdef MOZ_ENABLE_GTK2
|
2008-08-06 20:48:55 +00:00
|
|
|
ifdef MOZ_X11
|
2005-11-23 14:16:33 +00:00
|
|
|
STATIC_LIBS += gtkxtbin
|
|
|
|
endif
|
2008-08-06 20:48:55 +00:00
|
|
|
endif
|
2005-11-23 14:16:33 +00:00
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_POSTSCRIPT
|
|
|
|
DEFINES += -DMOZ_ENABLE_POSTSCRIPT
|
|
|
|
STATIC_LIBS += gfxpsshar
|
|
|
|
endif
|
|
|
|
|
2007-12-08 00:39:32 +00:00
|
|
|
ifneq (,$(filter icon,$(MOZ_IMG_DECODERS)))
|
|
|
|
DEFINES += -DICON_DECODER
|
|
|
|
COMPONENT_LIBS += imgicon
|
|
|
|
endif
|
|
|
|
|
2010-06-03 20:56:36 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
|
|
|
|
COMPONENT_LIBS += widget_android
|
|
|
|
endif
|
|
|
|
|
2010-04-28 20:43:52 +00:00
|
|
|
STATIC_LIBS += thebes ycbcr
|
2006-02-27 21:18:41 +00:00
|
|
|
COMPONENT_LIBS += gkgfxthebes
|
2006-04-05 19:25:57 +00:00
|
|
|
|
2006-02-27 21:18:41 +00:00
|
|
|
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
COMPONENT_LIBS += gkwidget
|
|
|
|
endif
|
|
|
|
ifeq (beos,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
COMPONENT_LIBS += widget_beos
|
|
|
|
endif
|
|
|
|
ifeq (os2,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
COMPONENT_LIBS += wdgtos2
|
|
|
|
endif
|
2009-09-19 02:59:53 +00:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2006-02-27 21:18:41 +00:00
|
|
|
COMPONENT_LIBS += widget_mac
|
|
|
|
endif
|
2008-04-19 13:21:59 +00:00
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
COMPONENT_LIBS += widget_qt
|
|
|
|
endif
|
2005-11-23 14:16:33 +00:00
|
|
|
|
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
COMPONENT_LIBS += accessibility
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_XREMOTE
|
|
|
|
COMPONENT_LIBS += remoteservice
|
|
|
|
endif
|
2005-11-23 14:56:22 +00:00
|
|
|
|
2006-07-31 18:11:38 +00:00
|
|
|
ifdef MOZ_SPELLCHECK
|
|
|
|
DEFINES += -DMOZ_SPELLCHECK
|
|
|
|
COMPONENT_LIBS += spellchecker
|
|
|
|
endif
|
|
|
|
|
2007-09-16 23:48:03 +00:00
|
|
|
ifdef MOZ_ZIPWRITER
|
|
|
|
DEFINES += -DMOZ_ZIPWRITER
|
|
|
|
COMPONENT_LIBS += zipwriter
|
|
|
|
endif
|
|
|
|
|
2010-04-23 19:03:22 +00:00
|
|
|
ifdef MOZ_DEBUG
|
|
|
|
ifdef ENABLE_TESTS
|
2007-06-20 07:51:55 +00:00
|
|
|
COMPONENT_LIBS += gkdebug
|
|
|
|
endif
|
2010-04-23 19:03:22 +00:00
|
|
|
endif
|
2007-06-20 07:51:55 +00:00
|
|
|
|
2009-06-27 23:44:35 +00:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2010-02-09 17:09:06 +00:00
|
|
|
OS_LIBS += -framework OpenGL -lcups
|
2009-11-02 09:17:27 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(LIBS_DIR) \
|
|
|
|
$(JPEG_LIBS) \
|
|
|
|
$(PNG_LIBS) \
|
|
|
|
$(QCMS_LIBS) \
|
|
|
|
$(MOZ_JS_LIBS) \
|
|
|
|
$(NSS_LIBS) \
|
|
|
|
$(MOZ_CAIRO_LIBS) \
|
2009-10-07 17:16:52 +00:00
|
|
|
$(MOZ_HARFBUZZ_LIBS) \
|
2009-11-02 09:17:27 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef MOZ_NATIVE_ZLIB
|
|
|
|
EXTRA_DSO_LDOPTS += $(ZLIB_LIBS)
|
|
|
|
else
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_ZLIB_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_NATIVE_HUNSPELL
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_HUNSPELL_LIBS)
|
|
|
|
endif
|
|
|
|
|
2010-04-20 07:06:55 +00:00
|
|
|
ifdef MOZ_NATIVE_LIBEVENT
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_LIBEVENT_LIBS)
|
|
|
|
endif
|
|
|
|
|
2009-11-02 09:17:27 +00:00
|
|
|
ifdef MOZ_SYDNEYAUDIO
|
|
|
|
ifeq ($(OS_ARCH),Linux)
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_ALSA_LIBS)
|
|
|
|
endif
|
2009-06-27 23:44:35 +00:00
|
|
|
endif
|
2010-01-07 17:21:33 +00:00
|
|
|
|
|
|
|
ifdef HAVE_CLOCK_MONOTONIC
|
|
|
|
EXTRA_DSO_LDOPTS += $(REALTIME_LIBS)
|
|
|
|
endif
|
2010-06-03 20:56:36 +00:00
|
|
|
|
|
|
|
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
OS_LIBS += -lGLESv2
|
|
|
|
endif
|