2005-11-23 17:16:33 +03: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 20:20:12 +04:00
|
|
|
# Shawn Wilsher <me@shawnwilsher.com>
|
2005-11-23 17:16:33 +03: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 16:41:12 +03:00
|
|
|
ifeq (,$(filter-out WINCE WINNT,$(OS_ARCH)))
|
2009-03-25 04:45:21 +03:00
|
|
|
REQUIRES += widget gfx
|
2008-09-07 03:52:54 +04:00
|
|
|
CPPSRCS += \
|
|
|
|
nsDllMain.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2005-11-23 17:16:33 +03:00
|
|
|
|
2008-09-07 03:52:54 +04:00
|
|
|
ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
|
2005-11-23 17:16:33 +03:00
|
|
|
CPPSRCS += \
|
|
|
|
dlldeps.cpp \
|
|
|
|
nsGFXDeps.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
2008-01-15 17:44:20 +03:00
|
|
|
RCINCLUDE = xulrunner.rc
|
2006-02-09 00:52:33 +03:00
|
|
|
|
2005-11-23 17:16:33 +03:00
|
|
|
ifndef MOZ_NATIVE_ZLIB
|
|
|
|
CPPSRCS += dlldeps-zlib.cpp
|
|
|
|
DEFINES += -DZLIB_INTERNAL
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/src/windows
|
|
|
|
endif
|
|
|
|
|
2006-03-08 22:29:25 +03:00
|
|
|
ifneq (,$(filter WINNT OS2,$(OS_ARCH)))
|
2009-03-25 04:45:21 +03:00
|
|
|
REQUIRES += libreg
|
2005-11-23 17:16:33 +03:00
|
|
|
DEFINES += -DZLIB_DLL=1
|
|
|
|
endif
|
|
|
|
|
2006-03-08 22:29:25 +03:00
|
|
|
ifeq ($(OS_ARCH),OS2)
|
2009-03-25 04:45:21 +03:00
|
|
|
REQUIRES += widget gfx
|
2006-03-08 22:29:25 +03:00
|
|
|
|
|
|
|
CPPSRCS += \
|
|
|
|
dlldeps.cpp \
|
|
|
|
nsGFXDeps.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifndef MOZ_NATIVE_ZLIB
|
|
|
|
CPPSRCS += dlldeps-zlib.cpp
|
|
|
|
DEFINES += -DZLIB_INTERNAL
|
|
|
|
endif
|
|
|
|
|
2007-07-18 01:22:05 +04:00
|
|
|
ifdef MOZ_ENABLE_LIBXUL
|
|
|
|
RESFILE = xulrunos2.res
|
|
|
|
RCFLAGS += -i $(topsrcdir)/widget/src/os2
|
|
|
|
endif
|
|
|
|
|
2006-03-08 22:29:25 +03:00
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/src/os2
|
|
|
|
endif
|
|
|
|
|
2005-11-23 17:16:33 +03:00
|
|
|
# dependent libraries
|
2009-06-30 20:02:37 +04:00
|
|
|
ifdef MOZ_IPC
|
|
|
|
STATIC_LIBS += \
|
2009-07-01 00:39:22 +04:00
|
|
|
domipc_s \
|
2009-06-30 22:51:05 +04:00
|
|
|
domplugins_s \
|
2009-06-30 20:02:37 +04:00
|
|
|
mozipc_s \
|
|
|
|
chromium_s \
|
2009-07-11 10:33:10 +04:00
|
|
|
ipcshell_s \
|
2009-07-14 09:12:50 +04:00
|
|
|
ipctestharness_s \
|
2009-06-30 20:02:37 +04:00
|
|
|
$(NULL)
|
2009-06-30 21:21:26 +04:00
|
|
|
|
2009-07-07 20:21:10 +04:00
|
|
|
ifeq (Linux,$(OS_ARCH))
|
2009-06-30 21:21:26 +04:00
|
|
|
OS_LIBS += -lrt
|
2009-06-30 20:02:37 +04:00
|
|
|
endif
|
2009-07-07 20:21:10 +04:00
|
|
|
ifeq (WINNT,$(OS_ARCH))
|
|
|
|
OS_LIBS += psapi.lib
|
|
|
|
endif
|
|
|
|
endif
|
2009-06-30 20:02:37 +04:00
|
|
|
|
2005-11-23 17:16:33 +03:00
|
|
|
STATIC_LIBS += \
|
|
|
|
xpcom_core \
|
|
|
|
ucvutil_s \
|
|
|
|
gkgfx \
|
|
|
|
gfxshared_s \
|
|
|
|
$(NULL)
|
|
|
|
|
2007-07-24 05:54:36 +04:00
|
|
|
#ifndef MOZ_EMBEDDING_LEVEL_DEFAULT
|
2009-03-25 04:45:21 +03:00
|
|
|
ifndef WINCE
|
2007-07-24 05:54:36 +04:00
|
|
|
ifdef MOZ_XPINSTALL
|
|
|
|
STATIC_LIBS += \
|
|
|
|
mozreg_s \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2009-03-25 04:45:21 +03:00
|
|
|
endif
|
2007-07-24 05:54:36 +04:00
|
|
|
#endif
|
|
|
|
|
2005-11-23 17:16:33 +03:00
|
|
|
# component libraries
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
xpconnect \
|
|
|
|
necko \
|
|
|
|
uconv \
|
|
|
|
i18n \
|
2006-09-14 02:13:40 +04:00
|
|
|
chardet \
|
2005-11-23 17:16:33 +03:00
|
|
|
jar$(VERSION_NUMBER) \
|
|
|
|
pref \
|
|
|
|
caps \
|
|
|
|
htmlpars \
|
|
|
|
imglib2 \
|
|
|
|
gklayout \
|
|
|
|
docshell \
|
|
|
|
embedcomponents \
|
|
|
|
webbrwsr \
|
|
|
|
nsappshell \
|
|
|
|
txmgr \
|
|
|
|
chrome \
|
|
|
|
commandlines \
|
|
|
|
toolkitcomps \
|
|
|
|
pipboot \
|
|
|
|
pipnss \
|
2006-06-22 15:42:28 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2007-08-24 02:52:42 +04:00
|
|
|
ifdef MOZ_XMLEXTRAS
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
xmlextras \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2006-06-22 15:42:28 +04:00
|
|
|
ifdef MOZ_PLUGINS
|
2006-06-22 17:08:18 +04:00
|
|
|
DEFINES += -DMOZ_PLUGINS
|
2006-06-22 15:42:28 +04:00
|
|
|
COMPONENT_LIBS += \
|
|
|
|
gkplugin \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_XPFE_COMPONENTS
|
2006-06-22 17:08:18 +04:00
|
|
|
DEFINES += -DMOZ_XPFE_COMPONENTS
|
2006-06-22 15:42:28 +04:00
|
|
|
COMPONENT_LIBS += \
|
|
|
|
mozfind \
|
|
|
|
appcomps \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2008-01-29 21:38:15 +03:00
|
|
|
ifdef MOZ_XUL
|
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
COMPONENT_LIBS += \
|
2008-06-12 06:50:15 +04:00
|
|
|
unixproxy \
|
|
|
|
$(NULL)
|
2008-01-29 21:38:15 +03:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2008-06-12 06:50:15 +04:00
|
|
|
ifneq (,$(filter cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
osxproxy \
|
|
|
|
$(NULL)
|
2008-01-29 21:38:15 +03:00
|
|
|
endif
|
|
|
|
|
2008-04-19 17:21:59 +04:00
|
|
|
ifdef MOZ_XUL
|
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
unixproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-04-25 12:29:32 +04:00
|
|
|
ifneq (,$(filter windows,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
windowsproxy \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2007-09-03 02:24:52 +04:00
|
|
|
ifdef MOZ_PERF_METRICS
|
|
|
|
EXTRA_DSO_LIBS += mozutil_s
|
|
|
|
endif
|
|
|
|
|
2006-06-22 15:42:28 +04:00
|
|
|
ifdef MOZ_XPINSTALL
|
2006-06-22 17:08:18 +04:00
|
|
|
DEFINES += -DMOZ_XPINSTALL
|
2006-06-22 15:42:28 +04:00
|
|
|
COMPONENT_LIBS += \
|
|
|
|
xpinstall \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_JSDEBUGGER
|
2006-06-22 17:08:18 +04:00
|
|
|
DEFINES += -DMOZ_JSDEBUGGER
|
2006-06-22 15:42:28 +04:00
|
|
|
COMPONENT_LIBS += \
|
|
|
|
jsd \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_PREF_EXTENSIONS
|
2006-06-22 17:08:18 +04:00
|
|
|
DEFINES += -DMOZ_PREF_EXTENSIONS
|
2006-06-22 15:42:28 +04:00
|
|
|
COMPONENT_LIBS += \
|
2005-12-14 18:57:40 +03:00
|
|
|
autoconfig \
|
2005-11-23 17:16:33 +03:00
|
|
|
$(NULL)
|
2006-06-22 15:42:28 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_WEBSERVICES
|
2006-06-22 17:08:18 +04:00
|
|
|
DEFINES += -DMOZ_WEBSERVICES
|
2006-06-22 15:42:28 +04:00
|
|
|
COMPONENT_LIBS += \
|
|
|
|
websrvcs \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2005-11-23 17:16:33 +03:00
|
|
|
|
2006-04-28 17:19:36 +04:00
|
|
|
ifdef MOZ_AUTH_EXTENSION
|
|
|
|
COMPONENT_LIBS += auth
|
|
|
|
DEFINES += -DMOZ_AUTH_EXTENSION
|
|
|
|
endif
|
2006-05-25 19:45:17 +04:00
|
|
|
|
|
|
|
ifdef MOZ_PERMISSIONS
|
|
|
|
COMPONENT_LIBS += cookie permissions
|
|
|
|
DEFINES += -DMOZ_PERMISSIONS
|
|
|
|
endif
|
2006-04-28 17:19:36 +04: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-15 02:36:15 +04:00
|
|
|
ifdef MOZ_RDF
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
rdf \
|
2006-08-28 23:19:03 +04:00
|
|
|
$(NULL)
|
|
|
|
ifdef MOZ_XPFE_COMPONENTS
|
|
|
|
COMPONENT_LIBS += \
|
2006-08-15 02:36:15 +04:00
|
|
|
windowds \
|
|
|
|
intlapp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2006-08-28 23:19:03 +04:00
|
|
|
endif
|
2006-08-15 02:36:15 +04:00
|
|
|
|
2008-04-19 17:26:02 +04:00
|
|
|
ifeq (,$(filter qt beos os2 mac photon cocoa windows,$(MOZ_WIDGET_TOOLKIT)))
|
2007-07-06 02:44:44 +04:00
|
|
|
ifdef MOZ_XUL
|
2006-08-28 23:19:03 +04:00
|
|
|
ifdef MOZ_XPFE_COMPONENTS
|
2006-05-05 03:17:47 +04:00
|
|
|
COMPONENT_LIBS += fileview
|
|
|
|
DEFINES += -DMOZ_FILEVIEW
|
|
|
|
endif
|
2006-08-15 02:36:15 +04:00
|
|
|
endif
|
2006-08-28 23:19:03 +04:00
|
|
|
endif
|
2006-05-05 03:17:47 +04:00
|
|
|
|
2006-10-25 23:12:13 +04:00
|
|
|
ifdef MOZ_STORAGE
|
|
|
|
COMPONENT_LIBS += storagecomps
|
2008-02-22 14:25:59 +03:00
|
|
|
EXTRA_DSO_LDOPTS += $(SQLITE_LIBS)
|
2006-10-25 23:12:13 +04:00
|
|
|
endif
|
|
|
|
|
2006-02-15 21:46:10 +03:00
|
|
|
ifdef MOZ_PLACES
|
|
|
|
STATIC_LIBS += morkreader_s
|
2006-07-18 23:41:12 +04:00
|
|
|
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
places \
|
|
|
|
$(NULL)
|
2006-02-15 21:46:10 +03:00
|
|
|
else
|
2006-06-22 15:42:28 +04:00
|
|
|
ifdef MOZ_MORK
|
2006-08-14 19:49:06 +04:00
|
|
|
ifdef MOZ_XUL
|
2006-02-15 21:46:10 +03:00
|
|
|
COMPONENT_LIBS += \
|
|
|
|
mork \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2006-06-22 15:42:28 +04:00
|
|
|
endif
|
2006-08-14 19:49:06 +04:00
|
|
|
endif
|
2006-02-15 21:46:10 +03:00
|
|
|
|
2006-01-25 23:23:24 +03:00
|
|
|
ifdef MOZ_XUL
|
|
|
|
COMPONENT_LIBS += \
|
|
|
|
tkautocomplete \
|
|
|
|
satchel \
|
|
|
|
pippki \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2005-11-23 17:16:33 +03:00
|
|
|
ifdef MOZ_MATHML
|
|
|
|
COMPONENT_LIBS += ucvmath
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
COMPONENT_LIBS += widget_gtk2
|
2006-06-22 15:42:28 +04:00
|
|
|
ifdef MOZ_PREF_EXTENSIONS
|
2005-12-14 18:57:40 +03:00
|
|
|
COMPONENT_LIBS += system-pref
|
2005-11-23 17:16:33 +03:00
|
|
|
endif
|
2006-06-22 15:42:28 +04:00
|
|
|
endif
|
2005-11-23 17:16:33 +03:00
|
|
|
|
2007-12-08 04:38:35 +03:00
|
|
|
ifdef MOZ_ENABLE_GTK2
|
2008-08-07 00:48:55 +04:00
|
|
|
ifdef MOZ_X11
|
2005-11-23 17:16:33 +03:00
|
|
|
STATIC_LIBS += gtkxtbin
|
|
|
|
endif
|
2008-08-07 00:48:55 +04:00
|
|
|
endif
|
2005-11-23 17:16:33 +03:00
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_POSTSCRIPT
|
|
|
|
DEFINES += -DMOZ_ENABLE_POSTSCRIPT
|
|
|
|
STATIC_LIBS += gfxpsshar
|
|
|
|
endif
|
2007-12-08 03:39:32 +03:00
|
|
|
|
2007-12-08 03:39:32 +03:00
|
|
|
ifneq (,$(filter icon,$(MOZ_IMG_DECODERS)))
|
2007-12-08 04:38:35 +03:00
|
|
|
ifndef MOZ_ENABLE_GTK2
|
2007-12-08 03:39:32 +03:00
|
|
|
DEFINES += -DICON_DECODER
|
|
|
|
COMPONENT_LIBS += imgicon
|
|
|
|
endif
|
2007-12-08 04:00:18 +03:00
|
|
|
endif
|
2007-12-08 03:39:32 +03:00
|
|
|
|
2006-04-05 23:25:57 +04:00
|
|
|
STATIC_LIBS += thebes
|
2006-02-28 00:18:41 +03:00
|
|
|
COMPONENT_LIBS += gkgfxthebes
|
2006-04-05 23:25:57 +04:00
|
|
|
|
2006-02-28 00:18:41 +03: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
|
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
COMPONENT_LIBS += widget_mac
|
|
|
|
endif
|
2008-04-19 17:21:59 +04:00
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
COMPONENT_LIBS += widget_qt
|
|
|
|
endif
|
2006-02-28 00:18:41 +03:00
|
|
|
|
2005-11-23 17:16:33 +03:00
|
|
|
ifdef MOZ_ENABLE_PHOTON
|
|
|
|
COMPONENT_LIBS += widget_photon
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
COMPONENT_LIBS += accessibility
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_XREMOTE
|
|
|
|
COMPONENT_LIBS += remoteservice
|
|
|
|
endif
|
2005-11-23 17:56:22 +03:00
|
|
|
|
2006-07-31 22:11:38 +04:00
|
|
|
ifdef MOZ_SPELLCHECK
|
|
|
|
DEFINES += -DMOZ_SPELLCHECK
|
|
|
|
COMPONENT_LIBS += spellchecker
|
|
|
|
endif
|
|
|
|
|
2007-09-17 03:48:03 +04:00
|
|
|
ifdef MOZ_ZIPWRITER
|
|
|
|
DEFINES += -DMOZ_ZIPWRITER
|
|
|
|
COMPONENT_LIBS += zipwriter
|
|
|
|
endif
|
|
|
|
|
2007-06-20 11:51:55 +04:00
|
|
|
ifneq (,$(filter layout-debug,$(MOZ_EXTENSIONS)))
|
|
|
|
COMPONENT_LIBS += gkdebug
|
|
|
|
endif
|
|
|
|
|
2005-11-23 17:56:22 +03:00
|
|
|
ifdef GC_LEAK_DETECTOR
|
|
|
|
EXTRA_DSO_LIBS += boehm
|
|
|
|
endif
|
2009-06-28 03:44:35 +04:00
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_CANVAS3D
|
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
|
|
|
EXTRA_DSO_LDOPTS += -framework OpenGL
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|