Merge mozilla-central and tracemonkey. (a=blockers)
[mozilla-central.git] / layout / base / Makefile.in
blob3e9cf6485c5980de1a1e60dd36d85b50f2eb99d6
2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
13 # License.
15 # The Original Code is mozilla.org code.
17 # The Initial Developer of the Original Code is
18 # Netscape Communications Corporation.
19 # Portions created by the Initial Developer are Copyright (C) 1998
20 # the Initial Developer. All Rights Reserved.
22 # Contributor(s):
24 # Alternatively, the contents of this file may be used under the terms of
25 # either of the GNU General Public License Version 2 or later (the "GPL"),
26 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
38 DEPTH = ../..
39 topsrcdir = @top_srcdir@
40 srcdir = @srcdir@
41 VPATH = @srcdir@
43 include $(DEPTH)/config/autoconf.mk
45 ifdef ENABLE_TESTS
46 DIRS += tests
47 endif
49 MODULE = layout
50 XPIDL_MODULE = layout_base
51 GRE_MODULE = 1
52 LIBRARY_NAME = gkbase_s
53 LIBXUL_LIBRARY = 1
57 XPIDLSRCS = \
58 nsIStyleSheetService.idl \
59 $(NULL)
61 EXPORTS_NAMESPACES = mozilla
63 EXPORTS = \
64 FrameLayerBuilder.h \
65 FramePropertyTable.h \
66 nsBidi.h \
67 nsBidiPresUtils.h \
68 nsCaret.h \
69 nsCSSFrameConstructor.h \
70 nsChangeHint.h \
71 nsCompatibility.h \
72 nsDisplayItemTypes.h \
73 nsDisplayList.h \
74 nsFrameManager.h \
75 nsFrameManagerBase.h \
76 nsFrameTraversal.h \
77 nsIDocumentViewer.h \
78 nsIFrameTraversal.h \
79 nsIImageMap.h \
80 nsILayoutDebugger.h \
81 nsILayoutHistoryState.h \
82 nsIPercentHeightObserver.h \
83 nsIPresShell.h \
84 nsIReflowCallback.h \
85 nsLayoutErrors.h \
86 nsLayoutUtils.h \
87 nsPresContext.h \
88 nsPresState.h \
89 nsRefreshDriver.h \
90 nsStyleChangeList.h \
91 nsStyleConsts.h \
92 $(NULL)
94 EXPORTS_mozilla = \
95 PaintTracker.h \
96 $(NULL)
98 CPPSRCS = \
99 FrameLayerBuilder.cpp \
100 FramePropertyTable.cpp \
101 RestyleTracker.cpp \
102 nsCSSColorUtils.cpp \
103 nsCSSFrameConstructor.cpp \
104 nsCSSRendering.cpp \
105 nsCSSRenderingBorders.cpp \
106 nsCaret.cpp \
107 nsChildIterator.cpp \
108 nsCounterManager.cpp \
109 nsDisplayList.cpp \
110 nsDocumentViewer.cpp \
111 nsFrameManager.cpp \
112 nsFrameTraversal.cpp \
113 nsGenConList.cpp \
114 nsImageLoader.cpp \
115 nsLayoutDebugger.cpp \
116 nsLayoutHistoryState.cpp \
117 nsLayoutUtils.cpp \
118 nsPresArena.cpp \
119 nsPresContext.cpp \
120 nsPresShell.cpp \
121 nsQuoteList.cpp \
122 nsRefreshDriver.cpp \
123 nsStyleChangeList.cpp \
124 nsStyleSheetService.cpp \
125 PaintTracker.cpp \
126 $(NULL)
128 ifndef MOZ_XUL
129 XPIDLSRCS += \
130 nsIBoxObject.idl \
131 $(NULL)
132 EXPORTS += \
133 nsPIBoxObject.h \
134 $(NULL)
135 CPPSRCS += \
136 nsBoxObject.cpp \
137 $(NULL)
138 endif
140 ifdef IBMBIDI
141 CPPSRCS += \
142 nsBidiPresUtils.cpp \
143 nsBidi.cpp \
144 $(NULL)
145 endif
147 FORCE_STATIC_LIB = 1
149 include $(topsrcdir)/config/rules.mk
151 ifdef MOZ_IPC
152 include $(topsrcdir)/ipc/chromium/chromium-config.mk
153 endif
155 LOCAL_INCLUDES += \
156 -I$(srcdir) \
157 -I$(srcdir)/../style \
158 -I$(srcdir)/../generic \
159 -I$(srcdir)/../forms \
160 -I$(srcdir)/../tables \
161 -I$(srcdir)/../printing \
162 -I$(srcdir)/../xul/base/src \
163 -I$(srcdir)/../xul/base/src/tree/src \
164 -I$(srcdir)/../../content/base/src \
165 -I$(srcdir)/../../content/events/src \
166 -I$(srcdir)/../../content/xbl/src \
167 -I$(srcdir)/../../view/src \
168 -I$(srcdir)/../../dom/base \
169 -I$(srcdir)/../../content/html/content/src \
170 -I$(srcdir)/../../content/svg/content/src \
171 $(NULL)
173 ifdef MOZ_MATHML
174 LOCAL_INCLUDES += \
175 -I$(srcdir)/../mathml
176 endif
178 ifdef MOZ_SVG
179 LOCAL_INCLUDES += \
180 -I$(srcdir)/../svg/base/src
181 endif
183 CXXFLAGS += $(MOZ_CAIRO_CFLAGS)
185 DEFINES += -D_IMPL_NS_LAYOUT
187 ifndef MOZ_XUL
188 nsIBoxObject.idl: %: $(topsrcdir)/layout/xul/base/public/%
189 $(INSTALL) $^ .
190 nsPIBoxObject.h: %: $(topsrcdir)/layout/xul/base/public/%
191 $(INSTALL) $^ .
192 nsBoxObject.cpp: %: $(topsrcdir)/layout/xul/base/src/%
193 $(INSTALL) $^ .
195 GARBAGE += nsIBoxObject.idl nsPIBoxObject.h nsBoxObject.cpp
196 endif