Backed out changeset 30bfb150da06
[wine-gecko.git] / layout / build / Makefile.in
blob74d88b1d3fdb597e2e5fa9bd64b38a2215d0b693
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 # Solaris and Tru64 UNIX sh blows
46 ifeq ($(OS_ARCH),SunOS)
47 SHELL := ksh
48 endif
49 ifeq ($(OS_ARCH),OSF1)
50 SHELL := ksh
51 endif
53 MODULE = layout
54 LIBRARY_NAME = gklayout
55 EXPORT_LIBRARY = 1
56 IS_COMPONENT = 1
57 MODULE_NAME = nsLayoutModule
58 GRE_MODULE = 1
59 LIBXUL_LIBRARY = 1
61 ifndef MOZ_ENABLE_LIBXUL
62 EXTRA_DSO_LIBS = gkgfx
63 endif
64 EXTRA_DSO_LIBS += thebes
66 REQUIRES = xpcom \
67 string \
68 content \
69 gfx \
70 widget \
71 view \
72 locale \
73 necko \
74 dom \
75 storage \
76 editor \
77 txmgr \
78 webshell \
79 docshell \
80 htmlparser \
81 js \
82 xpconnect \
83 caps \
84 rdf \
85 xuldoc \
86 imglib2 \
87 pref \
88 unicharutil \
89 xultmpl \
90 lwbrk \
91 plugin \
92 commandhandler \
93 webbrwsr \
94 uconv \
95 txtsvc \
96 thebes \
97 $(NULL)
99 CPPSRCS = \
100 nsLayoutModule.cpp \
101 nsContentDLF.cpp \
102 nsLayoutStatics.cpp \
103 $(NULL)
105 EXPORTS = \
106 nsLayoutCID.h \
107 nsContentDLF.h \
108 nsLayoutStatics.h \
109 $(NULL)
111 SHARED_LIBRARY_LIBS = \
112 ../base/$(LIB_PREFIX)gkbase_s.$(LIB_SUFFIX) \
113 ../generic/$(LIB_PREFIX)gkgeneric_s.$(LIB_SUFFIX) \
114 ../forms/$(LIB_PREFIX)gkforms_s.$(LIB_SUFFIX) \
115 ../style/$(LIB_PREFIX)gkstyle_s.$(LIB_SUFFIX) \
116 ../tables/$(LIB_PREFIX)gktable_s.$(LIB_SUFFIX) \
117 ../xul/base/src/$(LIB_PREFIX)gkxulbase_s.$(LIB_SUFFIX) \
118 $(DEPTH)/content/base/src/$(LIB_PREFIX)gkconbase_s.$(LIB_SUFFIX) \
119 $(DEPTH)/content/canvas/src/$(LIB_PREFIX)gkconcvs_s.$(LIB_SUFFIX) \
120 $(DEPTH)/content/events/src/$(LIB_PREFIX)gkconevents_s.$(LIB_SUFFIX) \
121 $(DEPTH)/content/html/content/src/$(LIB_PREFIX)gkconhtmlcon_s.$(LIB_SUFFIX) \
122 $(DEPTH)/content/html/document/src/$(LIB_PREFIX)gkconhtmldoc_s.$(LIB_SUFFIX) \
123 $(DEPTH)/content/xml/content/src/$(LIB_PREFIX)gkconxmlcon_s.$(LIB_SUFFIX) \
124 $(DEPTH)/content/xml/document/src/$(LIB_PREFIX)gkconxmldoc_s.$(LIB_SUFFIX) \
125 $(DEPTH)/content/xslt/src/base/$(LIB_PREFIX)txbase_s.$(LIB_SUFFIX) \
126 $(DEPTH)/content/xslt/src/xml/$(LIB_PREFIX)txxml_s.$(LIB_SUFFIX) \
127 $(DEPTH)/content/xslt/src/xpath/$(LIB_PREFIX)txxpath_s.$(LIB_SUFFIX) \
128 $(DEPTH)/content/xslt/src/xslt/$(LIB_PREFIX)txxslt_s.$(LIB_SUFFIX) \
129 $(DEPTH)/content/xbl/src/$(LIB_PREFIX)gkconxbl_s.$(LIB_SUFFIX) \
130 $(DEPTH)/content/xul/document/src/$(LIB_PREFIX)gkconxuldoc_s.$(LIB_SUFFIX) \
131 $(DEPTH)/view/src/$(LIB_PREFIX)gkview_s.$(LIB_SUFFIX) \
132 $(DEPTH)/dom/src/base/$(LIB_PREFIX)jsdombase_s.$(LIB_SUFFIX) \
133 $(DEPTH)/dom/src/events/$(LIB_PREFIX)jsdomevents_s.$(LIB_SUFFIX) \
134 $(DEPTH)/dom/src/json/$(LIB_PREFIX)json_s.$(LIB_SUFFIX) \
135 $(DEPTH)/dom/src/jsurl/$(LIB_PREFIX)jsurl_s.$(LIB_SUFFIX) \
136 $(DEPTH)/dom/src/storage/$(LIB_PREFIX)jsdomstorage_s.$(LIB_SUFFIX) \
137 $(DEPTH)/dom/src/offline/$(LIB_PREFIX)jsdomoffline_s.$(LIB_SUFFIX) \
138 $(DEPTH)/dom/src/geolocation/$(LIB_PREFIX)jsdomgeolocation_s.$(LIB_SUFFIX) \
139 $(DEPTH)/dom/src/threads/$(LIB_PREFIX)domthreads_s.$(LIB_SUFFIX) \
140 $(DEPTH)/editor/libeditor/text/$(LIB_PREFIX)texteditor_s.$(LIB_SUFFIX) \
141 $(DEPTH)/editor/libeditor/base/$(LIB_PREFIX)editorbase_s.$(LIB_SUFFIX) \
142 $(NULL)
144 ifdef MOZ_MEDIA
145 SHARED_LIBRARY_LIBS += \
146 $(DEPTH)/content/media/video/src/$(LIB_PREFIX)gkconvideo_s.$(LIB_SUFFIX) \
147 $(NULL)
148 endif
150 ifdef MOZ_OGG
151 SHARED_LIBRARY_LIBS += \
152 $(DEPTH)/media/libfishsound/src/libfishsound/$(LIB_PREFIX)fishsound.$(LIB_SUFFIX) \
153 $(DEPTH)/media/libogg/src/$(LIB_PREFIX)ogg.$(LIB_SUFFIX) \
154 $(DEPTH)/media/liboggplay/src/liboggplay/$(LIB_PREFIX)oggplay.$(LIB_SUFFIX) \
155 $(DEPTH)/media/liboggz/src/liboggz/$(LIB_PREFIX)oggz.$(LIB_SUFFIX) \
156 $(DEPTH)/media/libsydneyaudio/src/$(LIB_PREFIX)sydneyaudio.$(LIB_SUFFIX) \
157 $(DEPTH)/media/libtheora/lib/$(LIB_PREFIX)theora.$(LIB_SUFFIX) \
158 $(DEPTH)/media/libvorbis/lib/$(LIB_PREFIX)vorbis.$(LIB_SUFFIX) \
159 $(NULL)
160 LOCAL_INCLUDES += -I$(DEPTH)/content/html/content/src
161 endif
163 ifdef NS_PRINTING
164 SHARED_LIBRARY_LIBS += \
165 ../printing/$(LIB_PREFIX)gkprinting_s.$(LIB_SUFFIX) \
166 $(NULL)
167 endif
169 ifdef MOZ_XUL
170 SHARED_LIBRARY_LIBS += \
171 ../xul/base/src/tree/src/$(LIB_PREFIX)gkxultree_s.$(LIB_SUFFIX) \
172 ../xul/base/src/grid/$(LIB_PREFIX)gkxulgrid_s.$(LIB_SUFFIX) \
173 $(DEPTH)/content/xul/content/src/$(LIB_PREFIX)gkconxulcon_s.$(LIB_SUFFIX) \
174 $(DEPTH)/content/xul/templates/src/$(LIB_PREFIX)gkconxultmpl_s.$(LIB_SUFFIX) \
175 $(NULL)
176 endif
178 ifndef MOZ_NO_INSPECTOR_APIS
179 LOCAL_INCLUDES += \
180 -I$(srcdir)/../inspector/src \
181 $(NULL)
182 REQUIRES += \
183 inspector \
184 $(NULL)
185 SHARED_LIBRARY_LIBS += ../inspector/src/$(LIB_PREFIX)inspector_s.$(LIB_SUFFIX)
186 else
187 DEFINES += -DMOZ_NO_INSPECTOR_APIS
188 endif
190 ifdef MOZ_MATHML
191 SHARED_LIBRARY_LIBS += \
192 ../mathml/content/src/$(LIB_PREFIX)gkmathmlcon_s.$(LIB_SUFFIX) \
193 ../mathml/base/src/$(LIB_PREFIX)gkmathmlbase_s.$(LIB_SUFFIX) \
194 $(DEPTH)/content/mathml/content/src/$(LIB_PREFIX)gkcontentmathml_s.$(LIB_SUFFIX) \
195 $(NULL)
196 endif
198 ifdef MOZ_XTF
199 SHARED_LIBRARY_LIBS += \
200 $(DEPTH)/content/xtf/src/$(LIB_PREFIX)gkcontentxtf_s.$(LIB_SUFFIX) \
201 $(NULL)
202 endif
204 ifdef MOZ_SVG
205 SHARED_LIBRARY_LIBS += \
206 ../svg/base/src/$(LIB_PREFIX)gksvgbase_s.$(LIB_SUFFIX) \
207 $(DEPTH)/content/svg/document/src/$(LIB_PREFIX)gkconsvgdoc_s.$(LIB_SUFFIX) \
208 $(DEPTH)/content/svg/content/src/$(LIB_PREFIX)gkcontentsvg_s.$(LIB_SUFFIX) \
209 $(NULL)
210 endif
212 ifdef MOZ_PLAINTEXT_EDITOR_ONLY
213 DEFINES += -DMOZILLA_PLAINTEXT_EDITOR_ONLY
214 else
215 SHARED_LIBRARY_LIBS += \
216 $(DEPTH)/editor/libeditor/html/$(LIB_PREFIX)htmleditor_s.$(LIB_SUFFIX) \
217 $(DEPTH)/editor/txtsvc/src/$(LIB_PREFIX)txtsvc_s.$(LIB_SUFFIX) \
218 $(NULL)
219 endif
221 ifdef MOZ_PERF_METRICS
222 SHARED_LIBRARY_LIBS += $(DEPTH)/modules/libutil/src/$(LIB_PREFIX)mozutil_s.$(LIB_SUFFIX)
223 endif
225 ifdef ENABLE_EDITOR_API_LOG
226 DEFINES += -DENABLE_EDITOR_API_LOG
227 endif
229 EXTRA_DSO_LDOPTS = \
230 $(LIBS_DIR) \
231 $(EXTRA_DSO_LIBS) \
232 $(MOZ_UNICHARUTIL_LIBS) \
233 $(MOZ_COMPONENT_LIBS) \
234 $(MOZ_JS_LIBS) \
235 $(NULL)
237 ifdef MOZ_ENABLE_GTK2
238 EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS) \
239 -lXrender \
240 $(NULL)
241 endif
243 ifdef MOZ_ENABLE_QT
244 EXTRA_DSO_LDOPTS += $(MOZ_QT_LIBS) \
245 $(NULL)
246 endif
248 EXTRA_DSO_LDOPTS += $(MOZ_LOCATION_LIBS)
250 ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
251 EXTRA_DSO_LDOPTS += \
252 $(TK_LIBS) \
253 $(NULL)
254 endif
256 # Add explicit X11 dependency when building against X11 toolkits
257 ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT)))
258 EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS)
259 endif
261 ifdef MOZ_OGG
262 ifeq ($(OS_ARCH),Darwin)
263 OS_LIBS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
264 endif
265 endif
267 include $(topsrcdir)/config/rules.mk
269 LOCAL_INCLUDES += -I$(srcdir)/../base \
270 -I$(srcdir)/../generic \
271 -I$(srcdir)/../forms \
272 -I$(srcdir)/../tables \
273 -I$(srcdir)/../style \
274 -I$(srcdir)/../xul/content/src \
275 -I$(srcdir)/../xul/base/src \
276 -I$(topsrcdir)/content/base/src \
277 -I$(topsrcdir)/content/html/content/src \
278 -I$(topsrcdir)/content/html/document/src \
279 -I$(topsrcdir)/content/html/style/src \
280 -I$(topsrcdir)/content/xslt/src/base \
281 -I$(topsrcdir)/content/xslt/src/xml \
282 -I$(topsrcdir)/content/xslt/src/xpath \
283 -I$(topsrcdir)/content/xslt/src/xslt \
284 -I$(topsrcdir)/content/xul/content/src \
285 -I$(topsrcdir)/content/xul/document/src \
286 -I$(topsrcdir)/content/xul/templates/src \
287 -I$(topsrcdir)/content/events/src \
288 -I$(topsrcdir)/content/xbl/src \
289 -I$(topsrcdir)/view/src \
290 -I$(topsrcdir)/dom/src/base \
291 -I$(topsrcdir)/dom/src/json \
292 -I$(topsrcdir)/dom/src/jsurl \
293 -I$(topsrcdir)/dom/src/storage \
294 -I$(topsrcdir)/dom/src/offline \
295 -I$(topsrcdir)/dom/src/geolocation \
296 -I$(topsrcdir)/dom/src/threads \
297 -I. \
298 -I$(topsrcdir)/editor/libeditor/base \
299 -I$(topsrcdir)/editor/libeditor/text \
300 -I$(topsrcdir)/editor/libeditor/html \
301 -I$(topsrcdir)/editor/txtsvc/src \
302 -I$(topsrcdir)/editor/composer/src \
303 $(NULL)
305 ifdef MOZ_MATHML
306 LOCAL_INCLUDES += -I$(srcdir)/../mathml/content/src
307 endif
309 ifdef MOZ_SVG
310 LOCAL_INCLUDES += -I$(topsrcdir)/content/svg/content/src
311 endif
313 DEFINES += -D_IMPL_NS_LAYOUT
315 ifeq ($(OS_ARCH),IRIX)
316 ifeq ($(GNU_CXX),1)
317 LDFLAGS += -Wl,-LD_LAYOUT:lgot_buffer=50
318 endif
319 endif