Bug 475419. Make sure to set up our user font set no matter what the ordering of...
[mozilla-central.git] / toolkit / library / libxul-config.mk
blobca28a20eeee5e049861ff1bf4783009b619a91da
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 libxul
17 # The Initial Developer of the Original Code is
18 # Benjamin Smedberg <benjamin@smedbergs.us>
20 # Portions created by the Initial Developer are Copyright (C) 2005
21 # the Initial Developer. All Rights Reserved.
23 # Contributor(s):
24 # Shawn Wilsher <me@shawnwilsher.com>
26 # Alternatively, the contents of this file may be used under the terms of
27 # either of the GNU General Public License Version 2 or later (the "GPL"),
28 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 # in which case the provisions of the GPL or the LGPL are applicable instead
30 # of those above. If you wish to allow use of your version of this file only
31 # under the terms of either the GPL or the LGPL, and not to allow others to
32 # use your version of this file under the terms of the MPL, indicate your
33 # decision by deleting the provisions above and replace them with the notice
34 # and other provisions required by the GPL or the LGPL. If you do not delete
35 # the provisions above, a recipient may use your version of this file under
36 # the terms of any one of the MPL, the GPL or the LGPL.
38 # ***** END LICENSE BLOCK *****
40 CPPSRCS += \
41 nsStaticXULComponents.cpp \
42 $(NULL)
44 ifeq (,$(filter-out WINCE WINNT,$(OS_ARCH)))
45 REQUIRES += libreg widget gfx
46 CPPSRCS += \
47 nsDllMain.cpp \
48 $(NULL)
49 endif
51 ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
52 CPPSRCS += \
53 dlldeps.cpp \
54 nsGFXDeps.cpp \
55 $(NULL)
57 RCINCLUDE = xulrunner.rc
59 ifndef MOZ_NATIVE_ZLIB
60 CPPSRCS += dlldeps-zlib.cpp
61 DEFINES += -DZLIB_INTERNAL
62 endif
64 LOCAL_INCLUDES += -I$(topsrcdir)/widget/src/windows
65 endif
67 ifneq (,$(filter WINNT OS2,$(OS_ARCH)))
68 DEFINES += -DZLIB_DLL=1
69 endif
71 ifeq ($(OS_ARCH),OS2)
72 REQUIRES += libreg widget gfx
74 CPPSRCS += \
75 dlldeps.cpp \
76 nsGFXDeps.cpp \
77 $(NULL)
79 ifndef MOZ_NATIVE_ZLIB
80 CPPSRCS += dlldeps-zlib.cpp
81 DEFINES += -DZLIB_INTERNAL
82 endif
84 ifdef MOZ_ENABLE_LIBXUL
85 RESFILE = xulrunos2.res
86 RCFLAGS += -i $(topsrcdir)/widget/src/os2
87 endif
89 LOCAL_INCLUDES += -I$(topsrcdir)/widget/src/os2
90 endif
92 # dependent libraries
93 STATIC_LIBS += \
94 xpcom_core \
95 ucvutil_s \
96 gkgfx \
97 gfxshared_s \
98 $(NULL)
100 #ifndef MOZ_EMBEDDING_LEVEL_DEFAULT
101 ifdef MOZ_XPINSTALL
102 STATIC_LIBS += \
103 mozreg_s \
104 $(NULL)
105 endif
106 #endif
108 # component libraries
109 COMPONENT_LIBS += \
110 xpconnect \
111 necko \
112 uconv \
113 i18n \
114 chardet \
115 jar$(VERSION_NUMBER) \
116 pref \
117 caps \
118 htmlpars \
119 imglib2 \
120 gklayout \
121 docshell \
122 embedcomponents \
123 webbrwsr \
124 nsappshell \
125 txmgr \
126 chrome \
127 commandlines \
128 toolkitcomps \
129 pipboot \
130 pipnss \
131 $(NULL)
133 ifdef MOZ_XMLEXTRAS
134 COMPONENT_LIBS += \
135 xmlextras \
136 $(NULL)
137 endif
139 ifdef MOZ_PLUGINS
140 DEFINES += -DMOZ_PLUGINS
141 COMPONENT_LIBS += \
142 gkplugin \
143 $(NULL)
144 endif
146 ifdef MOZ_XPFE_COMPONENTS
147 DEFINES += -DMOZ_XPFE_COMPONENTS
148 COMPONENT_LIBS += \
149 mozfind \
150 appcomps \
151 $(NULL)
152 endif
154 ifdef MOZ_XUL
155 ifdef MOZ_ENABLE_GTK2
156 COMPONENT_LIBS += \
157 unixproxy \
158 $(NULL)
159 endif
160 endif
162 ifneq (,$(filter cocoa,$(MOZ_WIDGET_TOOLKIT)))
163 COMPONENT_LIBS += \
164 osxproxy \
165 $(NULL)
166 endif
168 ifdef MOZ_XUL
169 ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
170 COMPONENT_LIBS += \
171 unixproxy \
172 $(NULL)
173 endif
174 endif
176 ifdef MOZ_PERF_METRICS
177 EXTRA_DSO_LIBS += mozutil_s
178 endif
180 ifdef MOZ_XPINSTALL
181 DEFINES += -DMOZ_XPINSTALL
182 COMPONENT_LIBS += \
183 xpinstall \
184 $(NULL)
185 endif
187 ifdef MOZ_JSDEBUGGER
188 DEFINES += -DMOZ_JSDEBUGGER
189 COMPONENT_LIBS += \
190 jsd \
191 $(NULL)
192 endif
194 ifdef MOZ_PREF_EXTENSIONS
195 DEFINES += -DMOZ_PREF_EXTENSIONS
196 COMPONENT_LIBS += \
197 autoconfig \
198 $(NULL)
199 endif
201 ifdef MOZ_WEBSERVICES
202 DEFINES += -DMOZ_WEBSERVICES
203 COMPONENT_LIBS += \
204 websrvcs \
205 $(NULL)
206 endif
208 ifdef MOZ_AUTH_EXTENSION
209 COMPONENT_LIBS += auth
210 DEFINES += -DMOZ_AUTH_EXTENSION
211 endif
213 ifdef MOZ_PERMISSIONS
214 COMPONENT_LIBS += cookie permissions
215 DEFINES += -DMOZ_PERMISSIONS
216 endif
218 ifdef MOZ_UNIVERSALCHARDET
219 COMPONENT_LIBS += universalchardet
220 DEFINES += -DMOZ_UNIVERSALCHARDET
221 endif
223 ifndef MOZ_PLAINTEXT_EDITOR_ONLY
224 COMPONENT_LIBS += composer
225 else
226 DEFINES += -DMOZ_PLAINTEXT_EDITOR_ONLY
227 endif
229 ifdef MOZ_RDF
230 COMPONENT_LIBS += \
231 rdf \
232 $(NULL)
233 ifdef MOZ_XPFE_COMPONENTS
234 COMPONENT_LIBS += \
235 windowds \
236 intlapp \
237 $(NULL)
238 endif
239 endif
241 ifeq (,$(filter qt beos os2 mac photon cocoa windows,$(MOZ_WIDGET_TOOLKIT)))
242 ifdef MOZ_XUL
243 ifdef MOZ_XPFE_COMPONENTS
244 COMPONENT_LIBS += fileview
245 DEFINES += -DMOZ_FILEVIEW
246 endif
247 endif
248 endif
250 ifdef MOZ_STORAGE
251 COMPONENT_LIBS += storagecomps
252 EXTRA_DSO_LDOPTS += $(SQLITE_LIBS)
253 endif
255 ifdef MOZ_PLACES
256 STATIC_LIBS += morkreader_s
258 COMPONENT_LIBS += \
259 places \
260 $(NULL)
261 else
262 ifdef MOZ_MORK
263 ifdef MOZ_XUL
264 COMPONENT_LIBS += \
265 mork \
266 tkhstory \
267 $(NULL)
268 endif
269 endif
270 endif
272 ifdef MOZ_XUL
273 COMPONENT_LIBS += \
274 tkautocomplete \
275 satchel \
276 pippki \
277 $(NULL)
278 endif
280 ifdef MOZ_MATHML
281 COMPONENT_LIBS += ucvmath
282 endif
284 ifdef MOZ_ENABLE_GTK2
285 COMPONENT_LIBS += widget_gtk2
286 ifdef MOZ_PREF_EXTENSIONS
287 COMPONENT_LIBS += system-pref
288 endif
289 endif
291 ifdef MOZ_ENABLE_GTK2
292 ifdef MOZ_X11
293 STATIC_LIBS += gtkxtbin
294 endif
295 endif
297 ifdef MOZ_ENABLE_POSTSCRIPT
298 DEFINES += -DMOZ_ENABLE_POSTSCRIPT
299 STATIC_LIBS += gfxpsshar
300 endif
302 ifneq (,$(filter icon,$(MOZ_IMG_DECODERS)))
303 ifndef MOZ_ENABLE_GTK2
304 DEFINES += -DICON_DECODER
305 COMPONENT_LIBS += imgicon
306 endif
307 endif
309 STATIC_LIBS += thebes
310 COMPONENT_LIBS += gkgfxthebes
312 ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
313 COMPONENT_LIBS += gkwidget
314 endif
315 ifeq (beos,$(MOZ_WIDGET_TOOLKIT))
316 COMPONENT_LIBS += widget_beos
317 endif
318 ifeq (os2,$(MOZ_WIDGET_TOOLKIT))
319 COMPONENT_LIBS += wdgtos2
320 endif
321 ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
322 COMPONENT_LIBS += widget_mac
323 endif
324 ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
325 COMPONENT_LIBS += widget_qt
326 endif
328 ifdef MOZ_ENABLE_PHOTON
329 COMPONENT_LIBS += widget_photon
330 endif
332 ifdef MOZ_OJI
333 STATIC_LIBS += jsj
334 COMPONENT_LIBS += oji
335 endif
337 ifdef ACCESSIBILITY
338 COMPONENT_LIBS += accessibility
339 endif
341 ifdef MOZ_ENABLE_XREMOTE
342 COMPONENT_LIBS += remoteservice
343 endif
345 ifdef MOZ_SPELLCHECK
346 DEFINES += -DMOZ_SPELLCHECK
347 COMPONENT_LIBS += spellchecker
348 endif
350 ifdef MOZ_ZIPWRITER
351 DEFINES += -DMOZ_ZIPWRITER
352 COMPONENT_LIBS += zipwriter
353 endif
355 ifneq (,$(filter layout-debug,$(MOZ_EXTENSIONS)))
356 COMPONENT_LIBS += gkdebug
357 endif
359 ifdef GC_LEAK_DETECTOR
360 EXTRA_DSO_LIBS += boehm
361 endif