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
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.
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 *****
39 topsrcdir
= @top_srcdir@
43 include $(DEPTH
)/config
/autoconf.mk
45 # Solaris and Tru64 UNIX sh blows
46 ifeq ($(OS_ARCH
),SunOS
)
49 ifeq ($(OS_ARCH
),OSF1
)
54 LIBRARY_NAME
= gklayout
57 MODULE_NAME
= nsLayoutModule
61 ifndef MOZ_ENABLE_LIBXUL
62 EXTRA_DSO_LIBS
= gkgfx
64 ifneq ($(OS_ARCH
)_
$(OS_TEST
),Linux_x86_64
)
65 EXTRA_DSO_LIBS
+= angle
70 EXTRA_DSO_LIBS
+= thebes ycbcr
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
) \
122 ifneq (,$(filter qt gtk2
,$(MOZ_WIDGET_TOOLKIT
)))
123 SHARED_LIBRARY_LIBS
+= \
124 $(DEPTH
)/dom
/system
/unix
/$(LIB_PREFIX
)domsystemunix_s.
$(LIB_SUFFIX
) \
127 -I
$(topsrcdir
)/dom
/system
/unix \
129 else ifneq (,$(filter windows
,$(MOZ_WIDGET_TOOLKIT
)))
130 SHARED_LIBRARY_LIBS
+= \
131 $(DEPTH
)/dom
/system
/windows
/$(LIB_PREFIX
)domsystemwindows_s.
$(LIB_SUFFIX
) \
134 -I
$(topsrcdir
)/dom
/system
/windows \
136 else ifneq (,$(filter cocoa
,$(MOZ_WIDGET_TOOLKIT
)))
137 SHARED_LIBRARY_LIBS
+= \
138 $(DEPTH
)/dom
/system
/cocoa
/$(LIB_PREFIX
)domsystemcocoa_s.
$(LIB_SUFFIX
) \
141 -I
$(topsrcdir
)/dom
/system
/cocoa \
143 else ifneq (,$(filter android
,$(MOZ_WIDGET_TOOLKIT
)))
144 SHARED_LIBRARY_LIBS
+= \
145 $(DEPTH
)/dom
/system
/android
/$(LIB_PREFIX
)domsystemandroid_s.
$(LIB_SUFFIX
) \
148 -I
$(topsrcdir
)/dom
/system
/android \
153 SHARED_LIBRARY_LIBS
+= \
154 $(DEPTH
)/media
/libvorbis
/lib
/$(LIB_PREFIX
)vorbis.
$(LIB_SUFFIX
) \
155 $(DEPTH
)/media
/libogg
/src
/$(LIB_PREFIX
)ogg.
$(LIB_SUFFIX
) \
160 SHARED_LIBRARY_LIBS
+= \
161 $(DEPTH
)/content
/media
/$(LIB_PREFIX
)gkconmedia_s.
$(LIB_SUFFIX
) \
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
) \
172 SHARED_LIBRARY_LIBS
+= \
173 $(DEPTH
)/content
/media
/raw
/$(LIB_PREFIX
)gkconraw_s.
$(LIB_SUFFIX
)\
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
) \
185 SHARED_LIBRARY_LIBS
+= \
186 $(DEPTH
)/content
/media
/wave
/$(LIB_PREFIX
)gkconwave_s.
$(LIB_SUFFIX
) \
190 ifdef MOZ_SYDNEYAUDIO
191 SHARED_LIBRARY_LIBS
+= \
192 $(DEPTH
)/media
/libsydneyaudio
/src
/$(LIB_PREFIX
)sydneyaudio.
$(LIB_SUFFIX
) \
194 LOCAL_INCLUDES
+= -I
$(DEPTH
)/content
/html
/content
/src
198 SHARED_LIBRARY_LIBS
+= \
199 ..
/printing
/$(LIB_PREFIX
)gkprinting_s.
$(LIB_SUFFIX
) \
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
) \
213 -I
$(srcdir)/..
/inspector
/src \
215 SHARED_LIBRARY_LIBS
+= ..
/inspector
/src
/$(LIB_PREFIX
)inspector_s.
$(LIB_SUFFIX
)
218 SHARED_LIBRARY_LIBS
+= \
219 ..
/mathml
/$(LIB_PREFIX
)gkmathml_s.
$(LIB_SUFFIX
) \
220 $(DEPTH
)/content
/mathml
/content
/src
/$(LIB_PREFIX
)gkcontentmathml_s.
$(LIB_SUFFIX
) \
225 SHARED_LIBRARY_LIBS
+= \
226 $(DEPTH
)/content
/xtf
/src
/$(LIB_PREFIX
)gkcontentxtf_s.
$(LIB_SUFFIX
) \
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
) \
238 SHARED_LIBRARY_LIBS
+= \
239 $(DEPTH
)/content
/smil
/$(LIB_PREFIX
)gkconsmil_s.
$(LIB_SUFFIX
) \
242 ifdef MOZ_PLAINTEXT_EDITOR_ONLY
243 DEFINES
+= -DMOZILLA_PLAINTEXT_EDITOR_ONLY
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
) \
251 ifdef ENABLE_EDITOR_API_LOG
252 DEFINES
+= -DENABLE_EDITOR_API_LOG
255 SHARED_LIBRARY_LIBS
+= \
256 $(DEPTH
)/js
/src
/xpconnect
/src
/$(LIB_PREFIX
)xpconnect_s.
$(LIB_SUFFIX
)
261 $(MOZ_UNICHARUTIL_LIBS
) \
262 $(MOZ_COMPONENT_LIBS
) \
266 EXTRA_DSO_LDOPTS
+= $(TK_LIBS
)
268 ifdef MOZ_ENABLE_GTK2
269 EXTRA_DSO_LDOPTS
+= -lXrender
272 ifeq (cocoa
,$(MOZ_WIDGET_TOOLKIT
))
273 EXTRA_DSO_LDOPTS
+= $(TK_LIBS
)
274 OS_LIBS
+= -framework OpenGL
277 # Add explicit X11 dependency when building against X11 toolkits
278 ifneq (,$(filter gtk2
,$(MOZ_WIDGET_TOOLKIT
)))
279 EXTRA_DSO_LDOPTS
+= $(XLDFLAGS
) $(XLIBS
)
282 ifdef MOZ_SYDNEYAUDIO
283 ifeq ($(OS_ARCH
),Linux
)
284 EXTRA_DSO_LDOPTS
+= $(MOZ_ALSA_LIBS
)
286 ifeq ($(OS_ARCH
),Darwin
)
287 OS_LIBS
+= -framework CoreAudio
-framework AudioToolbox
-framework AudioUnit
-framework Carbon
-framework IOKit
292 include $(topsrcdir
)/config
/config.mk
293 include $(topsrcdir
)/ipc
/chromium
/chromium-config.mk
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 \
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 \
338 LOCAL_INCLUDES
+= -I
$(srcdir)/..
/mathml
342 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/content
/svg
/content
/src
345 DEFINES
+= -D_IMPL_NS_LAYOUT
347 ifeq ($(OS_ARCH
),IRIX
)
349 LDFLAGS
+= -Wl
,-LD_LAYOUT
:lgot_buffer
=50