Bug 575870 - Enable the firefox button on xp themed, classic, and aero basic. r=dao...
[mozilla-central.git] / layout / build / Makefile.in
blobeb5e197f922c433c3ac04a1620c5622dbc585a12
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
64 ifneq ($(OS_ARCH)_$(OS_TEST),Linux_x86_64)
65 EXTRA_DSO_LIBS += angle
66 endif
68 endif
70 EXTRA_DSO_LIBS += thebes ycbcr
73 CPPSRCS = \
74 nsLayoutModule.cpp \
75 nsContentDLF.cpp \
76 nsLayoutStatics.cpp \
77 $(NULL)
79 EXPORTS = \
80 nsLayoutCID.h \
81 nsContentDLF.h \
82 nsLayoutStatics.h \
83 $(NULL)
85 SHARED_LIBRARY_LIBS = \
86 ../base/$(LIB_PREFIX)gkbase_s.$(LIB_SUFFIX) \
87 ../generic/$(LIB_PREFIX)gkgeneric_s.$(LIB_SUFFIX) \
88 ../forms/$(LIB_PREFIX)gkforms_s.$(LIB_SUFFIX) \
89 ../style/$(LIB_PREFIX)gkstyle_s.$(LIB_SUFFIX) \
90 ../tables/$(LIB_PREFIX)gktable_s.$(LIB_SUFFIX) \
91 ../xul/base/src/$(LIB_PREFIX)gkxulbase_s.$(LIB_SUFFIX) \
92 $(DEPTH)/content/base/src/$(LIB_PREFIX)gkconbase_s.$(LIB_SUFFIX) \
93 $(DEPTH)/content/canvas/src/$(LIB_PREFIX)gkconcvs_s.$(LIB_SUFFIX) \
94 $(DEPTH)/content/events/src/$(LIB_PREFIX)gkconevents_s.$(LIB_SUFFIX) \
95 $(DEPTH)/content/html/content/src/$(LIB_PREFIX)gkconhtmlcon_s.$(LIB_SUFFIX) \
96 $(DEPTH)/content/html/document/src/$(LIB_PREFIX)gkconhtmldoc_s.$(LIB_SUFFIX) \
97 $(DEPTH)/content/xml/content/src/$(LIB_PREFIX)gkconxmlcon_s.$(LIB_SUFFIX) \
98 $(DEPTH)/content/xml/document/src/$(LIB_PREFIX)gkconxmldoc_s.$(LIB_SUFFIX) \
99 $(DEPTH)/content/xslt/src/base/$(LIB_PREFIX)txbase_s.$(LIB_SUFFIX) \
100 $(DEPTH)/content/xslt/src/xml/$(LIB_PREFIX)txxml_s.$(LIB_SUFFIX) \
101 $(DEPTH)/content/xslt/src/xpath/$(LIB_PREFIX)txxpath_s.$(LIB_SUFFIX) \
102 $(DEPTH)/content/xslt/src/xslt/$(LIB_PREFIX)txxslt_s.$(LIB_SUFFIX) \
103 $(DEPTH)/content/xbl/src/$(LIB_PREFIX)gkconxbl_s.$(LIB_SUFFIX) \
104 $(DEPTH)/content/xul/document/src/$(LIB_PREFIX)gkconxuldoc_s.$(LIB_SUFFIX) \
105 $(DEPTH)/view/src/$(LIB_PREFIX)gkview_s.$(LIB_SUFFIX) \
106 $(DEPTH)/dom/base/$(LIB_PREFIX)jsdombase_s.$(LIB_SUFFIX) \
107 $(DEPTH)/dom/src/events/$(LIB_PREFIX)jsdomevents_s.$(LIB_SUFFIX) \
108 $(DEPTH)/dom/src/json/$(LIB_PREFIX)json_s.$(LIB_SUFFIX) \
109 $(DEPTH)/dom/src/jsurl/$(LIB_PREFIX)jsurl_s.$(LIB_SUFFIX) \
110 $(DEPTH)/dom/src/storage/$(LIB_PREFIX)jsdomstorage_s.$(LIB_SUFFIX) \
111 $(DEPTH)/dom/src/offline/$(LIB_PREFIX)jsdomoffline_s.$(LIB_SUFFIX) \
112 $(DEPTH)/dom/src/geolocation/$(LIB_PREFIX)jsdomgeolocation_s.$(LIB_SUFFIX) \
113 $(DEPTH)/dom/system/$(LIB_PREFIX)domsystem_s.$(LIB_SUFFIX) \
114 $(DEPTH)/dom/src/threads/$(LIB_PREFIX)domthreads_s.$(LIB_SUFFIX) \
115 $(DEPTH)/dom/indexedDB/$(LIB_PREFIX)dom_indexeddb_s.$(LIB_SUFFIX) \
116 $(DEPTH)/editor/libeditor/text/$(LIB_PREFIX)texteditor_s.$(LIB_SUFFIX) \
117 $(DEPTH)/editor/libeditor/base/$(LIB_PREFIX)editorbase_s.$(LIB_SUFFIX) \
118 $(DEPTH)/parser/html/$(LIB_PREFIX)html5p_s.$(LIB_SUFFIX) \
119 $(DEPTH)/caps/src/$(LIB_PREFIX)caps_s.$(LIB_SUFFIX) \
120 $(NULL)
122 ifneq (,$(filter qt gtk2,$(MOZ_WIDGET_TOOLKIT)))
123 SHARED_LIBRARY_LIBS += \
124 $(DEPTH)/dom/system/unix/$(LIB_PREFIX)domsystemunix_s.$(LIB_SUFFIX) \
125 $(NULL)
126 LOCAL_INCLUDES += \
127 -I$(topsrcdir)/dom/system/unix \
128 $(NULL)
129 else ifneq (,$(filter windows,$(MOZ_WIDGET_TOOLKIT)))
130 SHARED_LIBRARY_LIBS += \
131 $(DEPTH)/dom/system/windows/$(LIB_PREFIX)domsystemwindows_s.$(LIB_SUFFIX) \
132 $(NULL)
133 LOCAL_INCLUDES += \
134 -I$(topsrcdir)/dom/system/windows \
135 $(NULL)
136 else ifneq (,$(filter cocoa,$(MOZ_WIDGET_TOOLKIT)))
137 SHARED_LIBRARY_LIBS += \
138 $(DEPTH)/dom/system/cocoa/$(LIB_PREFIX)domsystemcocoa_s.$(LIB_SUFFIX) \
139 $(NULL)
140 LOCAL_INCLUDES += \
141 -I$(topsrcdir)/dom/system/cocoa \
142 $(NULL)
143 else ifneq (,$(filter android,$(MOZ_WIDGET_TOOLKIT)))
144 SHARED_LIBRARY_LIBS += \
145 $(DEPTH)/dom/system/android/$(LIB_PREFIX)domsystemandroid_s.$(LIB_SUFFIX) \
146 $(NULL)
147 LOCAL_INCLUDES += \
148 -I$(topsrcdir)/dom/system/android \
149 $(NULL)
150 endif
152 ifdef MOZ_VORBIS
153 SHARED_LIBRARY_LIBS += \
154 $(DEPTH)/media/libvorbis/lib/$(LIB_PREFIX)vorbis.$(LIB_SUFFIX) \
155 $(DEPTH)/media/libogg/src/$(LIB_PREFIX)ogg.$(LIB_SUFFIX) \
156 $(NULL)
157 endif
159 ifdef MOZ_MEDIA
160 SHARED_LIBRARY_LIBS += \
161 $(DEPTH)/content/media/$(LIB_PREFIX)gkconmedia_s.$(LIB_SUFFIX) \
162 $(NULL)
163 endif
165 ifdef MOZ_OGG
166 SHARED_LIBRARY_LIBS += \
167 $(DEPTH)/media/libtheora/lib/$(LIB_PREFIX)theora.$(LIB_SUFFIX) \
168 $(DEPTH)/content/media/ogg/$(LIB_PREFIX)gkconogg_s.$(LIB_SUFFIX) \
169 $(NULL)
170 endif
172 SHARED_LIBRARY_LIBS += \
173 $(DEPTH)/content/media/raw/$(LIB_PREFIX)gkconraw_s.$(LIB_SUFFIX)\
174 $(NULL)
176 ifdef MOZ_WEBM
177 SHARED_LIBRARY_LIBS += \
178 $(DEPTH)/content/media/webm/$(LIB_PREFIX)gkconwebm_s.$(LIB_SUFFIX) \
179 $(DEPTH)/media/libnestegg/src/$(LIB_PREFIX)nestegg.$(LIB_SUFFIX) \
180 $(DEPTH)/media/libvpx/$(LIB_PREFIX)vpx.$(LIB_SUFFIX) \
181 $(NULL)
182 endif
184 ifdef MOZ_WAVE
185 SHARED_LIBRARY_LIBS += \
186 $(DEPTH)/content/media/wave/$(LIB_PREFIX)gkconwave_s.$(LIB_SUFFIX) \
187 $(NULL)
188 endif
190 ifdef MOZ_SYDNEYAUDIO
191 SHARED_LIBRARY_LIBS += \
192 $(DEPTH)/media/libsydneyaudio/src/$(LIB_PREFIX)sydneyaudio.$(LIB_SUFFIX) \
193 $(NULL)
194 LOCAL_INCLUDES += -I$(DEPTH)/content/html/content/src
195 endif
197 ifdef NS_PRINTING
198 SHARED_LIBRARY_LIBS += \
199 ../printing/$(LIB_PREFIX)gkprinting_s.$(LIB_SUFFIX) \
200 $(NULL)
201 endif
203 ifdef MOZ_XUL
204 SHARED_LIBRARY_LIBS += \
205 ../xul/base/src/tree/src/$(LIB_PREFIX)gkxultree_s.$(LIB_SUFFIX) \
206 ../xul/base/src/grid/$(LIB_PREFIX)gkxulgrid_s.$(LIB_SUFFIX) \
207 $(DEPTH)/content/xul/content/src/$(LIB_PREFIX)gkconxulcon_s.$(LIB_SUFFIX) \
208 $(DEPTH)/content/xul/templates/src/$(LIB_PREFIX)gkconxultmpl_s.$(LIB_SUFFIX) \
209 $(NULL)
210 endif
212 LOCAL_INCLUDES += \
213 -I$(srcdir)/../inspector/src \
214 $(NULL)
215 SHARED_LIBRARY_LIBS += ../inspector/src/$(LIB_PREFIX)inspector_s.$(LIB_SUFFIX)
217 ifdef MOZ_MATHML
218 SHARED_LIBRARY_LIBS += \
219 ../mathml/$(LIB_PREFIX)gkmathml_s.$(LIB_SUFFIX) \
220 $(DEPTH)/content/mathml/content/src/$(LIB_PREFIX)gkcontentmathml_s.$(LIB_SUFFIX) \
221 $(NULL)
222 endif
224 ifdef MOZ_XTF
225 SHARED_LIBRARY_LIBS += \
226 $(DEPTH)/content/xtf/src/$(LIB_PREFIX)gkcontentxtf_s.$(LIB_SUFFIX) \
227 $(NULL)
228 endif
230 ifdef MOZ_SVG
231 SHARED_LIBRARY_LIBS += \
232 ../svg/base/src/$(LIB_PREFIX)gksvgbase_s.$(LIB_SUFFIX) \
233 $(DEPTH)/content/svg/document/src/$(LIB_PREFIX)gkconsvgdoc_s.$(LIB_SUFFIX) \
234 $(DEPTH)/content/svg/content/src/$(LIB_PREFIX)gkcontentsvg_s.$(LIB_SUFFIX) \
235 $(NULL)
236 endif
238 SHARED_LIBRARY_LIBS += \
239 $(DEPTH)/content/smil/$(LIB_PREFIX)gkconsmil_s.$(LIB_SUFFIX) \
240 $(NULL)
242 ifdef MOZ_PLAINTEXT_EDITOR_ONLY
243 DEFINES += -DMOZILLA_PLAINTEXT_EDITOR_ONLY
244 else
245 SHARED_LIBRARY_LIBS += \
246 $(DEPTH)/editor/libeditor/html/$(LIB_PREFIX)htmleditor_s.$(LIB_SUFFIX) \
247 $(DEPTH)/editor/txtsvc/src/$(LIB_PREFIX)txtsvc_s.$(LIB_SUFFIX) \
248 $(NULL)
249 endif
251 ifdef ENABLE_EDITOR_API_LOG
252 DEFINES += -DENABLE_EDITOR_API_LOG
253 endif
255 SHARED_LIBRARY_LIBS += \
256 $(DEPTH)/js/src/xpconnect/src/$(LIB_PREFIX)xpconnect_s.$(LIB_SUFFIX)
258 EXTRA_DSO_LDOPTS = \
259 $(LIBS_DIR) \
260 $(EXTRA_DSO_LIBS) \
261 $(MOZ_UNICHARUTIL_LIBS) \
262 $(MOZ_COMPONENT_LIBS) \
263 $(MOZ_JS_LIBS) \
264 $(NULL)
266 EXTRA_DSO_LDOPTS += $(TK_LIBS)
268 ifdef MOZ_ENABLE_GTK2
269 EXTRA_DSO_LDOPTS += -lXrender
270 endif
272 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
273 EXTRA_DSO_LDOPTS += $(TK_LIBS)
274 OS_LIBS += -framework OpenGL
275 endif
277 # Add explicit X11 dependency when building against X11 toolkits
278 ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT)))
279 EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS)
280 endif
282 ifdef MOZ_SYDNEYAUDIO
283 ifeq ($(OS_ARCH),Linux)
284 EXTRA_DSO_LDOPTS += $(MOZ_ALSA_LIBS)
285 endif
286 ifeq ($(OS_ARCH),Darwin)
287 OS_LIBS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon -framework IOKit
288 endif
289 endif
291 ifdef MOZ_IPC
292 include $(topsrcdir)/config/config.mk
293 include $(topsrcdir)/ipc/chromium/chromium-config.mk
294 endif
296 include $(topsrcdir)/config/rules.mk
298 LOCAL_INCLUDES += -I$(srcdir)/../base \
299 -I$(srcdir)/../generic \
300 -I$(srcdir)/../forms \
301 -I$(srcdir)/../tables \
302 -I$(srcdir)/../style \
303 -I$(srcdir)/../xul/content/src \
304 -I$(srcdir)/../xul/base/src \
305 -I$(topsrcdir)/content/base/src \
306 -I$(topsrcdir)/content/html/content/src \
307 -I$(topsrcdir)/content/html/document/src \
308 -I$(topsrcdir)/content/html/style/src \
309 -I$(topsrcdir)/content/xslt/src/base \
310 -I$(topsrcdir)/content/xslt/src/xml \
311 -I$(topsrcdir)/content/xslt/src/xpath \
312 -I$(topsrcdir)/content/xslt/src/xslt \
313 -I$(topsrcdir)/content/xul/content/src \
314 -I$(topsrcdir)/content/xul/document/src \
315 -I$(topsrcdir)/content/xul/templates/src \
316 -I$(topsrcdir)/content/events/src \
317 -I$(topsrcdir)/content/xbl/src \
318 -I$(topsrcdir)/view/src \
319 -I$(topsrcdir)/dom/base \
320 -I$(topsrcdir)/dom/src/json \
321 -I$(topsrcdir)/dom/src/jsurl \
322 -I$(topsrcdir)/dom/src/storage \
323 -I$(topsrcdir)/dom/src/offline \
324 -I$(topsrcdir)/dom/src/geolocation \
325 -I$(topsrcdir)/dom/src/threads \
326 -I. \
327 -I$(topsrcdir)/editor/libeditor/base \
328 -I$(topsrcdir)/editor/libeditor/text \
329 -I$(topsrcdir)/editor/libeditor/html \
330 -I$(topsrcdir)/editor/txtsvc/src \
331 -I$(topsrcdir)/editor/composer/src \
332 -I$(topsrcdir)/js/src/xpconnect/src \
333 -I$(topsrcdir)/js/src/xpconnect/loader \
334 -I$(topsrcdir)/caps/include \
335 $(NULL)
337 ifdef MOZ_MATHML
338 LOCAL_INCLUDES += -I$(srcdir)/../mathml
339 endif
341 ifdef MOZ_SVG
342 LOCAL_INCLUDES += -I$(topsrcdir)/content/svg/content/src
343 endif
345 DEFINES += -D_IMPL_NS_LAYOUT
347 ifeq ($(OS_ARCH),IRIX)
348 ifeq ($(GNU_CXX),1)
349 LDFLAGS += -Wl,-LD_LAYOUT:lgot_buffer=50
350 endif
351 endif