1998-10-28 06:53:57 +03:00
|
|
|
#
|
2004-04-18 18:30:37 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1998-10-28 06:53:57 +03:00
|
|
|
#
|
2004-04-18 18:30:37 +04:00
|
|
|
# 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.
|
1998-10-28 06:53:57 +03:00
|
|
|
#
|
1999-11-06 06:40:37 +03:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-04-18 18:30:37 +04:00
|
|
|
# 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):
|
1999-11-06 06:40:37 +03:00
|
|
|
#
|
2004-04-18 18:30:37 +04: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.
|
1999-08-04 01:40:56 +04:00
|
|
|
#
|
2004-04-18 18:30:37 +04:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1998-10-28 06:53:57 +03:00
|
|
|
|
1999-08-04 01:40:56 +04:00
|
|
|
DEPTH = ../..
|
1998-10-28 06:53:57 +03:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2004-04-09 08:45:29 +04:00
|
|
|
# Solaris' sh blows
|
|
|
|
ifeq ($(OS_ARCH),SunOS)
|
|
|
|
SHELL := ksh
|
|
|
|
endif
|
|
|
|
|
2003-01-14 10:08:59 +03:00
|
|
|
BUILD_DATE = gbdate.h
|
2004-04-08 13:12:49 +04:00
|
|
|
BUILD_DATE_TS = gbdate.tstamp
|
2003-01-14 10:08:59 +03:00
|
|
|
|
1999-08-04 01:40:56 +04:00
|
|
|
MODULE = layout
|
2000-07-02 22:44:42 +04:00
|
|
|
LIBRARY_NAME = gklayout
|
2001-04-28 23:48:12 +04:00
|
|
|
EXPORT_LIBRARY = 1
|
1999-08-04 01:40:56 +04:00
|
|
|
IS_COMPONENT = 1
|
2001-06-21 00:21:49 +04:00
|
|
|
MODULE_NAME = nsLayoutModule
|
2002-12-28 04:15:07 +03:00
|
|
|
GRE_MODULE = 1
|
|
|
|
|
2004-01-07 16:37:00 +03:00
|
|
|
PACKAGE_FILE = layout.pkg
|
|
|
|
PACKAGE_VARS += MOZ_XUL
|
|
|
|
|
Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
2001-05-08 21:42:36 +04:00
|
|
|
EXTRA_DSO_LIBS = gkgfx
|
2001-12-18 12:14:29 +03:00
|
|
|
ifdef MOZ_PERF_METRICS
|
|
|
|
EXTRA_DSO_LIBS += mozutil_s
|
|
|
|
endif
|
2001-12-12 10:59:31 +03:00
|
|
|
|
2001-09-18 17:41:47 +04:00
|
|
|
REQUIRES = xpcom \
|
|
|
|
string \
|
|
|
|
content \
|
|
|
|
gfx \
|
|
|
|
widget \
|
2003-03-15 04:04:32 +03:00
|
|
|
view \
|
2001-09-18 17:41:47 +04:00
|
|
|
locale \
|
2001-09-29 21:50:15 +04:00
|
|
|
necko \
|
2002-11-19 19:00:01 +03:00
|
|
|
dom \
|
|
|
|
editor \
|
2003-01-14 10:08:59 +03:00
|
|
|
webshell \
|
|
|
|
docshell \
|
|
|
|
htmlparser \
|
|
|
|
js \
|
|
|
|
xpconnect \
|
|
|
|
uriloader \
|
|
|
|
caps \
|
|
|
|
necko2 \
|
|
|
|
rdf \
|
|
|
|
xuldoc \
|
|
|
|
imglib2 \
|
|
|
|
pref \
|
|
|
|
unicharutil \
|
|
|
|
xul \
|
|
|
|
xultmpl \
|
|
|
|
lwbrk \
|
2003-03-22 05:22:03 +03:00
|
|
|
plugin \
|
2004-02-24 06:22:35 +03:00
|
|
|
commandhandler \
|
|
|
|
webbrwsr \
|
|
|
|
uconv \
|
2001-09-18 17:41:47 +04:00
|
|
|
$(NULL)
|
1998-10-28 06:53:57 +03:00
|
|
|
|
1999-08-04 01:40:56 +04:00
|
|
|
CPPSRCS = \
|
1999-10-01 01:14:14 +04:00
|
|
|
nsLayoutModule.cpp \
|
2003-01-14 10:08:59 +03:00
|
|
|
nsContentHTTPStartup.cpp \
|
|
|
|
nsContentDLF.cpp \
|
1999-08-04 01:40:56 +04:00
|
|
|
$(NULL)
|
1999-02-02 20:40:37 +03:00
|
|
|
|
2001-03-08 05:41:16 +03:00
|
|
|
EXPORTS = nsLayoutCID.h
|
1999-08-04 01:40:56 +04:00
|
|
|
|
|
|
|
SHARED_LIBRARY_LIBS = \
|
2001-12-15 02:49:04 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkhtmlbase_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkhtmldoc_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkhtmlforms_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkhtmlstyle_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkhtmltable_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkxulbase_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkbase_s.$(LIB_SUFFIX) \
|
2003-03-15 04:04:32 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconbase_s.$(LIB_SUFFIX) \
|
2003-01-14 10:08:59 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconevents_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconhtmlcon_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconhtmldoc_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconhtmlstyle_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconxmlcon_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconxmldoc_s.$(LIB_SUFFIX) \
|
2003-03-15 04:04:32 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconxbl_s.$(LIB_SUFFIX) \
|
2003-01-14 10:08:59 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconxuldoc_s.$(LIB_SUFFIX) \
|
2003-03-15 04:04:32 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconshared_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkview_s.$(LIB_SUFFIX) \
|
2004-02-24 06:22:35 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)jsdombase_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)jsdomevents_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)jsurl_s.$(LIB_SUFFIX) \
|
2003-03-15 04:04:32 +03:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef MOZ_XUL
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkxultree_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkxulgrid_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconxulcon_s.$(LIB_SUFFIX) \
|
2003-01-14 10:08:59 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconxultmpl_s.$(LIB_SUFFIX) \
|
1999-08-04 01:40:56 +04:00
|
|
|
$(NULL)
|
2003-03-15 04:04:32 +03:00
|
|
|
endif
|
1999-02-02 20:40:37 +03:00
|
|
|
|
1999-10-12 08:47:55 +04:00
|
|
|
ifdef MOZ_MATHML
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
2001-12-15 02:49:04 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkmathmlcon_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkmathmlbase_s.$(LIB_SUFFIX) \
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
$(NULL)
|
1999-10-12 08:47:55 +04:00
|
|
|
endif
|
|
|
|
|
2004-10-08 00:59:53 +04:00
|
|
|
ifdef MOZ_XTF
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkcontentxtf_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkxtfbase_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2000-04-02 02:31:45 +04:00
|
|
|
ifdef MOZ_SVG
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
2001-12-15 02:49:04 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gksvgbase_s.$(LIB_SUFFIX) \
|
2003-01-14 10:08:59 +03:00
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkconsvgdoc_s.$(LIB_SUFFIX) \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gkcontentsvg_s.$(LIB_SUFFIX) \
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef MOZ_SVG_RENDERER_GDIPLUS
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gksvgrenderergdiplus_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
OS_LIBS += \
|
|
|
|
Gdiplus.lib \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
ifdef MOZ_SVG_RENDERER_LIBART
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gksvgrendererlibart_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2004-02-12 19:05:54 +03:00
|
|
|
ifdef MOZ_SVG_RENDERER_CAIRO
|
|
|
|
SHARED_LIBRARY_LIBS += \
|
|
|
|
$(DIST)/lib/$(LIB_PREFIX)gksvgrenderercairo_s.$(LIB_SUFFIX) \
|
2004-03-08 10:28:22 +03:00
|
|
|
$(NULL)
|
2004-02-12 19:05:54 +03:00
|
|
|
endif
|
2000-04-02 02:31:45 +04:00
|
|
|
endif
|
|
|
|
|
1999-08-04 01:40:56 +04:00
|
|
|
EXTRA_DSO_LDOPTS = \
|
2001-12-18 12:14:29 +03:00
|
|
|
$(LIBS_DIR) \
|
2000-04-18 14:27:21 +04:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
2001-10-23 00:44:02 +04:00
|
|
|
$(MOZ_UNICHARUTIL_LIBS) \
|
2003-01-03 11:58:59 +03:00
|
|
|
$(MOZ_COMPONENT_LIBS) \
|
2000-04-18 14:27:21 +04:00
|
|
|
$(MOZ_JS_LIBS) \
|
1999-08-04 01:40:56 +04:00
|
|
|
$(NULL)
|
1998-10-28 06:53:57 +03:00
|
|
|
|
2004-03-08 10:28:22 +03:00
|
|
|
ifdef NS_TRACE_MALLOC
|
|
|
|
EXTRA_DSO_LIBS += tracemalloc
|
|
|
|
endif
|
|
|
|
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
ifdef MOZ_SVG_RENDERER_LIBART
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_LIBART_LIBS) \
|
|
|
|
$(NULL)
|
2004-02-12 19:05:54 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_SVG_RENDERER_CAIRO
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2001-12-12 10:59:31 +03:00
|
|
|
|
2004-08-14 05:01:16 +04:00
|
|
|
ifdef MOZ_ENABLE_CAIRO
|
|
|
|
# don't add twice
|
|
|
|
ifndef MOZ_SVG_RENDERER_CAIRO
|
|
|
|
EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2002-11-06 04:24:57 +03:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
EXTRA_DSO_LDOPTS += \
|
|
|
|
$(TK_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
1998-10-28 06:53:57 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
1999-02-02 20:40:37 +03:00
|
|
|
|
Checking in for bug 50742, this change removes the use of XIF in mozilla and replaces the XIF converter with a HTML (and XML) serializer.
Contextual information added to HTML copy and intelligence added to HTML paste in the editor (fixes bugs 47014, 50568 and 46554, and partly (at least) fixes bug 53188).
Code written by vidur, jfrancis, jst, akkana. Tested by jfrancis, akkana, vidur, jst, kin. Reviwed (and super reviewed) by waterson, vidur, kin, jfrancis, jst
2000-10-07 14:57:30 +04:00
|
|
|
INCLUDES += -I$(srcdir)/../base/src \
|
|
|
|
-I$(srcdir)/../html/base/src \
|
2002-11-19 19:00:01 +03:00
|
|
|
-I$(srcdir)/../html/forms/src \
|
2000-12-30 22:22:22 +03:00
|
|
|
-I$(srcdir)/../html/style/src \
|
2000-11-08 06:22:03 +03:00
|
|
|
-I$(srcdir)/../xul/content/src \
|
|
|
|
-I$(srcdir)/../xul/base/src \
|
2003-01-14 10:08:59 +03:00
|
|
|
-I$(srcdir)/../../content/base/src \
|
|
|
|
-I$(srcdir)/../../content/html/content/src \
|
|
|
|
-I$(srcdir)/../../content/html/document/src \
|
|
|
|
-I$(srcdir)/../../content/html/style/src \
|
|
|
|
-I$(srcdir)/../../content/xul/content/src \
|
|
|
|
-I$(srcdir)/../../content/xul/templates/src \
|
|
|
|
-I$(srcdir)/../../content/events/src \
|
2004-09-10 11:17:31 +04:00
|
|
|
-I$(srcdir)/../../content/xbl/src \
|
2003-03-15 04:04:32 +03:00
|
|
|
-I$(topsrcdir)/view/src \
|
2004-02-24 06:22:35 +03:00
|
|
|
-I$(topsrcdir)/dom/src/base \
|
|
|
|
-I$(topsrcdir)/dom/src/jsurl \
|
2003-01-14 10:08:59 +03:00
|
|
|
-I. \
|
2000-11-08 06:22:03 +03:00
|
|
|
$(NULL)
|
1999-03-20 22:05:05 +03:00
|
|
|
|
1999-10-02 15:01:41 +04:00
|
|
|
ifdef MOZ_MATHML
|
|
|
|
INCLUDES += -I$(srcdir)/../mathml/content/src
|
|
|
|
endif
|
|
|
|
|
Landing of SVG_20020806_BRANCH, Bug 182533. Refactoring of SVG backend, new GDI+ and Libart rendering
backends, text support on Windows (GDI+), rudimentary text support on Linux (libart/freetype2), presentation
attributes, lots of bug fixes (see bug 182533 for dependency list).
Not part of default build; code is #ifdef'ed out.
r=sicking, sr=jst for dom and htmlparser changes
r=bsmedberg, sr=tor for config changes
r=dbaron, sr=bzbarsky for content and layout changes
r=tor, sr=bzbarsky for gfx changes
2004-02-07 15:39:26 +03:00
|
|
|
ifdef MOZ_SVG
|
|
|
|
INCLUDES += -I$(srcdir)/../../content/svg/content/src
|
|
|
|
endif
|
|
|
|
|
2003-01-09 09:49:07 +03:00
|
|
|
DEFINES += -D_IMPL_NS_LAYOUT
|
2003-01-14 10:08:59 +03:00
|
|
|
|
2004-04-08 13:12:49 +04:00
|
|
|
GARBAGE += $(BUILD_DATE) $(BUILD_DATE_TS)
|
2003-01-14 10:08:59 +03:00
|
|
|
|
2003-02-12 21:17:34 +03:00
|
|
|
ifeq ($(OS_ARCH),IRIX)
|
|
|
|
ifeq ($(GNU_CXX),1)
|
|
|
|
LDFLAGS += -Wl,-LD_LAYOUT:lgot_buffer=50
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2003-01-14 10:08:59 +03:00
|
|
|
export:: $(BUILD_DATE)
|
|
|
|
|
2004-04-08 13:12:49 +04:00
|
|
|
$(BUILD_DATE_TS): FORCE
|
|
|
|
@for f in $(SHARED_LIBRARY_LIBS); do \
|
|
|
|
if [ $$f -nt $@ ]; then \
|
|
|
|
touch $@; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
$(BUILD_DATE):: gbdate.pl $(BUILD_DATE_TS)
|
2003-01-14 10:08:59 +03:00
|
|
|
$(RM) $@
|
|
|
|
$(PERL) $(srcdir)/gbdate.pl > $@
|