2007-03-22 10:30:00 -07: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.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
#
|
|
|
|
# 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 *****
|
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
# Solaris and Tru64 UNIX sh blows
|
|
|
|
ifeq ($(OS_ARCH),SunOS)
|
|
|
|
SHELL := ksh
|
|
|
|
endif
|
|
|
|
ifeq ($(OS_ARCH),OSF1)
|
|
|
|
SHELL := ksh
|
|
|
|
endif
|
|
|
|
|
|
|
|
MODULE = layout
|
|
|
|
LIBRARY_NAME = gklayout
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
IS_COMPONENT = 1
|
|
|
|
MODULE_NAME = nsLayoutModule
|
|
|
|
GRE_MODULE = 1
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
|
|
|
|
ifndef MOZ_ENABLE_LIBXUL
|
|
|
|
EXTRA_DSO_LIBS = gkgfx
|
|
|
|
endif
|
|
|
|
EXTRA_DSO_LIBS += thebes
|
|
|
|
|
|
|
|
|
|
|
|
CPPSRCS = \
|
|
|
|
nsLayoutModule.cpp \
|
|
|
|
nsContentDLF.cpp \
|
|
|
|
nsLayoutStatics.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EXPORTS = \
|
|
|
|
nsLayoutCID.h \
|
|
|
|
nsContentDLF.h \
|
|
|
|
nsLayoutStatics.h \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SHARED_LIBRARY_LIBS = \
|
|
|
|
../base/$(LIB_PREFIX)gkbase_s.$(LIB_SUFFIX) \
|
|
|
|
../generic/$(LIB_PREFIX)gkgeneric_s.$(LIB_SUFFIX) \
|
|
|
|
../forms/$(LIB_PREFIX)gkforms_s.$(LIB_SUFFIX) \
|
|
|
|
../style/$(LIB_PREFIX)gkstyle_s.$(LIB_SUFFIX) \
|
|
|
|
../tables/$(LIB_PREFIX)gktable_s.$(LIB_SUFFIX) \
|
|
|
|
../xul/base/src/$(LIB_PREFIX)gkxulbase_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/base/src/$(LIB_PREFIX)gkconbase_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/canvas/src/$(LIB_PREFIX)gkconcvs_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/events/src/$(LIB_PREFIX)gkconevents_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/html/content/src/$(LIB_PREFIX)gkconhtmlcon_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/html/document/src/$(LIB_PREFIX)gkconhtmldoc_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/xml/content/src/$(LIB_PREFIX)gkconxmlcon_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/xml/document/src/$(LIB_PREFIX)gkconxmldoc_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/xslt/src/base/$(LIB_PREFIX)txbase_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/xslt/src/xml/$(LIB_PREFIX)txxml_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/xslt/src/xpath/$(LIB_PREFIX)txxpath_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/xslt/src/xslt/$(LIB_PREFIX)txxslt_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/xbl/src/$(LIB_PREFIX)gkconxbl_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/xul/document/src/$(LIB_PREFIX)gkconxuldoc_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/view/src/$(LIB_PREFIX)gkview_s.$(LIB_SUFFIX) \
|
2009-03-11 07:10:19 -07:00
|
|
|
$(DEPTH)/dom/base/$(LIB_PREFIX)jsdombase_s.$(LIB_SUFFIX) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(DEPTH)/dom/src/events/$(LIB_PREFIX)jsdomevents_s.$(LIB_SUFFIX) \
|
2007-12-27 13:34:03 -08:00
|
|
|
$(DEPTH)/dom/src/json/$(LIB_PREFIX)json_s.$(LIB_SUFFIX) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(DEPTH)/dom/src/jsurl/$(LIB_PREFIX)jsurl_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/dom/src/storage/$(LIB_PREFIX)jsdomstorage_s.$(LIB_SUFFIX) \
|
2007-05-29 02:45:30 -07:00
|
|
|
$(DEPTH)/dom/src/offline/$(LIB_PREFIX)jsdomoffline_s.$(LIB_SUFFIX) \
|
2009-09-17 23:01:12 -07:00
|
|
|
$(DEPTH)/dom/src/geolocation/$(LIB_PREFIX)jsdomgeolocation_s.$(LIB_SUFFIX) \
|
2008-08-16 18:25:01 -07:00
|
|
|
$(DEPTH)/dom/src/threads/$(LIB_PREFIX)domthreads_s.$(LIB_SUFFIX) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(DEPTH)/editor/libeditor/text/$(LIB_PREFIX)texteditor_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/editor/libeditor/base/$(LIB_PREFIX)editorbase_s.$(LIB_SUFFIX) \
|
2009-06-28 15:44:22 -07:00
|
|
|
$(DEPTH)/parser/html/$(LIB_PREFIX)html5p_s.$(LIB_SUFFIX) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2008-07-09 01:22:20 -07:00
|
|
|
ifdef MOZ_MEDIA
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
2009-06-25 21:23:15 -07:00
|
|
|
$(DEPTH)/content/media/$(LIB_PREFIX)gkconmedia_s.$(LIB_SUFFIX) \
|
2008-07-09 01:22:20 -07:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2008-07-29 23:50:14 -07:00
|
|
|
ifdef MOZ_OGG
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
2008-08-05 17:47:37 -07:00
|
|
|
$(DEPTH)/media/libfishsound/src/libfishsound/$(LIB_PREFIX)fishsound.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/media/libogg/src/$(LIB_PREFIX)ogg.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/media/liboggplay/src/liboggplay/$(LIB_PREFIX)oggplay.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/media/liboggz/src/liboggz/$(LIB_PREFIX)oggz.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/media/libtheora/lib/$(LIB_PREFIX)theora.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/media/libvorbis/lib/$(LIB_PREFIX)vorbis.$(LIB_SUFFIX) \
|
2009-06-25 21:23:15 -07:00
|
|
|
$(DEPTH)/content/media/ogg/$(LIB_PREFIX)gkconogg_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_WAVE
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/content/media/wave/$(LIB_PREFIX)gkconwave_s.$(LIB_SUFFIX) \
|
2008-07-29 23:50:14 -07:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2008-11-06 12:53:20 -08:00
|
|
|
ifdef MOZ_SYDNEYAUDIO
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/media/libsydneyaudio/src/$(LIB_PREFIX)sydneyaudio.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
2008-10-29 22:20:08 -07:00
|
|
|
LOCAL_INCLUDES += -I$(DEPTH)/content/html/content/src
|
2008-07-29 23:50:14 -07:00
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
ifdef NS_PRINTING
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
../printing/$(LIB_PREFIX)gkprinting_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_XUL
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
../xul/base/src/tree/src/$(LIB_PREFIX)gkxultree_s.$(LIB_SUFFIX) \
|
|
|
|
../xul/base/src/grid/$(LIB_PREFIX)gkxulgrid_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/xul/content/src/$(LIB_PREFIX)gkconxulcon_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/xul/templates/src/$(LIB_PREFIX)gkconxultmpl_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef MOZ_NO_INSPECTOR_APIS
|
2007-07-17 22:35:23 -07:00
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(srcdir)/../inspector/src \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
SHARED_LIBRARY_LIBS += ../inspector/src/$(LIB_PREFIX)inspector_s.$(LIB_SUFFIX)
|
|
|
|
else
|
|
|
|
DEFINES += -DMOZ_NO_INSPECTOR_APIS
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_MATHML
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
2009-03-29 17:48:52 -07:00
|
|
|
../mathml/$(LIB_PREFIX)gkmathml_s.$(LIB_SUFFIX) \
|
2008-01-09 01:38:28 -08:00
|
|
|
$(DEPTH)/content/mathml/content/src/$(LIB_PREFIX)gkcontentmathml_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_XTF
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/content/xtf/src/$(LIB_PREFIX)gkcontentxtf_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_SVG
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
2008-01-09 01:38:28 -08:00
|
|
|
../svg/base/src/$(LIB_PREFIX)gksvgbase_s.$(LIB_SUFFIX) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(DEPTH)/content/svg/document/src/$(LIB_PREFIX)gkconsvgdoc_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/content/svg/content/src/$(LIB_PREFIX)gkcontentsvg_s.$(LIB_SUFFIX) \
|
2008-01-09 01:38:28 -08:00
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
endif
|
|
|
|
|
2009-01-14 20:38:07 -08:00
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/content/smil/$(LIB_PREFIX)gkconsmil_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
ifdef MOZ_PLAINTEXT_EDITOR_ONLY
|
|
|
|
DEFINES += -DMOZILLA_PLAINTEXT_EDITOR_ONLY
|
|
|
|
else
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DEPTH)/editor/libeditor/html/$(LIB_PREFIX)htmleditor_s.$(LIB_SUFFIX) \
|
|
|
|
$(DEPTH)/editor/txtsvc/src/$(LIB_PREFIX)txtsvc_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef ENABLE_EDITOR_API_LOG
|
|
|
|
DEFINES += -DENABLE_EDITOR_API_LOG
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DSO_LDOPTS = \
|
|
|
|
$(LIBS_DIR) \
|
|
|
|
$(EXTRA_DSO_LIBS) \
|
|
|
|
$(MOZ_UNICHARUTIL_LIBS) \
|
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
|
|
|
$(MOZ_JS_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) \
|
2008-01-28 15:07:34 -08:00
|
|
|
-lXrender \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2008-08-09 06:43:08 -07:00
|
|
|
ifdef MOZ_ENABLE_QT
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_QT_LIBS) \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2009-09-18 19:59:53 -07:00
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
2009-06-27 16:44:35 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(TK_LIBS)
|
2009-09-17 23:01:12 -07:00
|
|
|
OS_LIBS += -framework OpenGL
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
# Add explicit X11 dependency when building against X11 toolkits
|
2007-06-10 15:13:08 -07:00
|
|
|
ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT)))
|
2007-03-22 10:30:00 -07:00
|
|
|
EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS)
|
|
|
|
endif
|
|
|
|
|
2008-11-06 12:53:20 -08:00
|
|
|
ifdef MOZ_SYDNEYAUDIO
|
2009-08-20 15:08:18 -07:00
|
|
|
ifeq ($(OS_ARCH),Linux)
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_ALSA_LIBS)
|
|
|
|
endif
|
2008-07-29 23:50:14 -07:00
|
|
|
ifeq ($(OS_ARCH),Darwin)
|
|
|
|
OS_LIBS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/../base \
|
|
|
|
-I$(srcdir)/../generic \
|
|
|
|
-I$(srcdir)/../forms \
|
|
|
|
-I$(srcdir)/../tables \
|
|
|
|
-I$(srcdir)/../style \
|
|
|
|
-I$(srcdir)/../xul/content/src \
|
|
|
|
-I$(srcdir)/../xul/base/src \
|
|
|
|
-I$(topsrcdir)/content/base/src \
|
|
|
|
-I$(topsrcdir)/content/html/content/src \
|
|
|
|
-I$(topsrcdir)/content/html/document/src \
|
|
|
|
-I$(topsrcdir)/content/html/style/src \
|
|
|
|
-I$(topsrcdir)/content/xslt/src/base \
|
|
|
|
-I$(topsrcdir)/content/xslt/src/xml \
|
|
|
|
-I$(topsrcdir)/content/xslt/src/xpath \
|
|
|
|
-I$(topsrcdir)/content/xslt/src/xslt \
|
|
|
|
-I$(topsrcdir)/content/xul/content/src \
|
|
|
|
-I$(topsrcdir)/content/xul/document/src \
|
|
|
|
-I$(topsrcdir)/content/xul/templates/src \
|
|
|
|
-I$(topsrcdir)/content/events/src \
|
|
|
|
-I$(topsrcdir)/content/xbl/src \
|
|
|
|
-I$(topsrcdir)/view/src \
|
2009-03-11 07:10:19 -07:00
|
|
|
-I$(topsrcdir)/dom/base \
|
2007-12-27 13:34:03 -08:00
|
|
|
-I$(topsrcdir)/dom/src/json \
|
2007-03-22 10:30:00 -07:00
|
|
|
-I$(topsrcdir)/dom/src/jsurl \
|
|
|
|
-I$(topsrcdir)/dom/src/storage \
|
2007-05-29 02:45:30 -07:00
|
|
|
-I$(topsrcdir)/dom/src/offline \
|
2008-07-15 16:37:48 -07:00
|
|
|
-I$(topsrcdir)/dom/src/geolocation \
|
2008-08-16 18:25:01 -07:00
|
|
|
-I$(topsrcdir)/dom/src/threads \
|
2007-03-22 10:30:00 -07:00
|
|
|
-I. \
|
|
|
|
-I$(topsrcdir)/editor/libeditor/base \
|
|
|
|
-I$(topsrcdir)/editor/libeditor/text \
|
|
|
|
-I$(topsrcdir)/editor/libeditor/html \
|
|
|
|
-I$(topsrcdir)/editor/txtsvc/src \
|
|
|
|
-I$(topsrcdir)/editor/composer/src \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef MOZ_MATHML
|
2009-03-29 17:48:52 -07:00
|
|
|
LOCAL_INCLUDES += -I$(srcdir)/../mathml
|
2007-03-22 10:30:00 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_SVG
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/content/svg/content/src
|
|
|
|
endif
|
|
|
|
|
|
|
|
DEFINES += -D_IMPL_NS_LAYOUT
|
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),IRIX)
|
|
|
|
ifeq ($(GNU_CXX),1)
|
|
|
|
LDFLAGS += -Wl,-LD_LAYOUT:lgot_buffer=50
|
|
|
|
endif
|
|
|
|
endif
|