Fixed textfield rendering in nsNativeThemeQt
[mozilla-central.git] / toolkit / library / libxul-config.mk
blob9616d43494986bbcc166df13aa36e2600a6bdae5
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 ($(OS_ARCH)_$(GNU_CC),WINNT_)
45 REQUIRES += libreg widget gfx
47 CPPSRCS += \
48 dlldeps.cpp \
49 nsGFXDeps.cpp \
50 nsDllMain.cpp \
51 $(NULL)
53 RCINCLUDE = xulrunner.rc
55 ifndef MOZ_NATIVE_ZLIB
56 CPPSRCS += dlldeps-zlib.cpp
57 DEFINES += -DZLIB_INTERNAL
58 endif
60 LOCAL_INCLUDES += -I$(topsrcdir)/widget/src/windows
61 endif
63 ifneq (,$(filter WINNT OS2,$(OS_ARCH)))
64 DEFINES += -DZLIB_DLL=1
65 endif
67 ifeq ($(OS_ARCH),OS2)
68 REQUIRES += libreg widget gfx
70 CPPSRCS += \
71 dlldeps.cpp \
72 nsGFXDeps.cpp \
73 $(NULL)
75 ifndef MOZ_NATIVE_ZLIB
76 CPPSRCS += dlldeps-zlib.cpp
77 DEFINES += -DZLIB_INTERNAL
78 endif
80 ifdef MOZ_ENABLE_LIBXUL
81 RESFILE = xulrunos2.res
82 RCFLAGS += -i $(topsrcdir)/widget/src/os2
83 endif
85 LOCAL_INCLUDES += -I$(topsrcdir)/widget/src/os2
86 endif
88 # dependent libraries
89 STATIC_LIBS += \
90 xpcom_core \
91 ucvutil_s \
92 gkgfx \
93 gfxshared_s \
94 $(NULL)
96 #ifndef MOZ_EMBEDDING_LEVEL_DEFAULT
97 ifdef MOZ_XPINSTALL
98 STATIC_LIBS += \
99 mozreg_s \
100 $(NULL)
101 endif
102 #endif
104 # component libraries
105 COMPONENT_LIBS += \
106 xpconnect \
107 necko \
108 uconv \
109 i18n \
110 chardet \
111 jar$(VERSION_NUMBER) \
112 pref \
113 caps \
114 htmlpars \
115 imglib2 \
116 gklayout \
117 docshell \
118 embedcomponents \
119 webbrwsr \
120 nsappshell \
121 txmgr \
122 chrome \
123 commandlines \
124 toolkitcomps \
125 pipboot \
126 pipnss \
127 $(NULL)
129 ifdef MOZ_XMLEXTRAS
130 COMPONENT_LIBS += \
131 xmlextras \
132 $(NULL)
133 endif
135 ifdef MOZ_PLUGINS
136 DEFINES += -DMOZ_PLUGINS
137 COMPONENT_LIBS += \
138 gkplugin \
139 $(NULL)
140 endif
142 ifdef MOZ_XPFE_COMPONENTS
143 DEFINES += -DMOZ_XPFE_COMPONENTS
144 COMPONENT_LIBS += \
145 mozfind \
146 appcomps \
147 $(NULL)
148 endif
150 ifdef MOZ_XUL
151 ifdef MOZ_ENABLE_GTK2
152 COMPONENT_LIBS += \
153 unixproxy \
154 $(NULL)
155 endif
156 endif
158 ifdef MOZ_XUL
159 ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
160 COMPONENT_LIBS += \
161 unixproxy \
162 $(NULL)
163 endif
164 endif
166 ifdef MOZ_PERF_METRICS
167 EXTRA_DSO_LIBS += mozutil_s
168 endif
170 ifdef MOZ_XPINSTALL
171 DEFINES += -DMOZ_XPINSTALL
172 COMPONENT_LIBS += \
173 xpinstall \
174 $(NULL)
175 endif
177 ifdef MOZ_JSDEBUGGER
178 DEFINES += -DMOZ_JSDEBUGGER
179 COMPONENT_LIBS += \
180 jsd \
181 $(NULL)
182 endif
184 ifdef MOZ_PREF_EXTENSIONS
185 DEFINES += -DMOZ_PREF_EXTENSIONS
186 COMPONENT_LIBS += \
187 autoconfig \
188 $(NULL)
189 endif
191 ifdef MOZ_WEBSERVICES
192 DEFINES += -DMOZ_WEBSERVICES
193 COMPONENT_LIBS += \
194 websrvcs \
195 $(NULL)
196 endif
198 ifdef MOZ_AUTH_EXTENSION
199 COMPONENT_LIBS += auth
200 DEFINES += -DMOZ_AUTH_EXTENSION
201 endif
203 ifdef MOZ_PERMISSIONS
204 COMPONENT_LIBS += cookie permissions
205 DEFINES += -DMOZ_PERMISSIONS
206 endif
208 ifdef MOZ_UNIVERSALCHARDET
209 COMPONENT_LIBS += universalchardet
210 DEFINES += -DMOZ_UNIVERSALCHARDET
211 endif
213 ifndef MOZ_PLAINTEXT_EDITOR_ONLY
214 COMPONENT_LIBS += composer
215 else
216 DEFINES += -DMOZ_PLAINTEXT_EDITOR_ONLY
217 endif
219 ifdef MOZ_RDF
220 COMPONENT_LIBS += \
221 rdf \
222 $(NULL)
223 ifdef MOZ_XPFE_COMPONENTS
224 COMPONENT_LIBS += \
225 windowds \
226 intlapp \
227 $(NULL)
228 endif
229 endif
231 ifeq (,$(filter qt beos os2 mac photon cocoa windows,$(MOZ_WIDGET_TOOLKIT)))
232 ifdef MOZ_XUL
233 ifdef MOZ_XPFE_COMPONENTS
234 COMPONENT_LIBS += fileview
235 DEFINES += -DMOZ_FILEVIEW
236 endif
237 endif
238 endif
240 ifdef MOZ_STORAGE
241 COMPONENT_LIBS += storagecomps
242 EXTRA_DSO_LDOPTS += $(SQLITE_LIBS)
243 endif
245 ifdef MOZ_PLACES
246 STATIC_LIBS += morkreader_s
248 COMPONENT_LIBS += \
249 places \
250 $(NULL)
251 else
252 ifdef MOZ_MORK
253 ifdef MOZ_XUL
254 COMPONENT_LIBS += \
255 mork \
256 tkhstory \
257 $(NULL)
258 endif
259 endif
260 endif
262 ifdef MOZ_XUL
263 COMPONENT_LIBS += \
264 tkautocomplete \
265 satchel \
266 pippki \
267 $(NULL)
268 endif
270 ifdef MOZ_MATHML
271 COMPONENT_LIBS += ucvmath
272 endif
274 ifdef MOZ_ENABLE_GTK2
275 COMPONENT_LIBS += widget_gtk2
276 ifdef MOZ_PREF_EXTENSIONS
277 COMPONENT_LIBS += system-pref
278 endif
279 endif
281 ifdef MOZ_ENABLE_GTK2
282 STATIC_LIBS += gtkxtbin
283 endif
285 ifdef MOZ_IPCD
286 DEFINES += -DMOZ_IPCD
287 COMPONENT_LIBS += ipcdc
288 endif
290 ifdef MOZ_ENABLE_POSTSCRIPT
291 DEFINES += -DMOZ_ENABLE_POSTSCRIPT
292 STATIC_LIBS += gfxpsshar
293 endif
295 ifneq (,$(filter icon,$(MOZ_IMG_DECODERS)))
296 ifndef MOZ_ENABLE_GTK2
297 DEFINES += -DICON_DECODER
298 COMPONENT_LIBS += imgicon
299 endif
300 endif
302 STATIC_LIBS += thebes
303 COMPONENT_LIBS += gkgfxthebes
305 ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
306 COMPONENT_LIBS += gkwidget
307 endif
308 ifeq (beos,$(MOZ_WIDGET_TOOLKIT))
309 COMPONENT_LIBS += widget_beos
310 endif
311 ifeq (os2,$(MOZ_WIDGET_TOOLKIT))
312 COMPONENT_LIBS += wdgtos2
313 endif
314 ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
315 COMPONENT_LIBS += widget_mac
316 endif
317 ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
318 COMPONENT_LIBS += widget_qt
319 endif
321 ifdef MOZ_ENABLE_PHOTON
322 COMPONENT_LIBS += widget_photon
323 endif
325 ifdef MOZ_OJI
326 STATIC_LIBS += jsj
327 COMPONENT_LIBS += oji
328 endif
330 ifdef ACCESSIBILITY
331 COMPONENT_LIBS += accessibility
332 endif
334 ifdef MOZ_ENABLE_XREMOTE
335 COMPONENT_LIBS += remoteservice
336 endif
338 ifdef MOZ_SPELLCHECK
339 DEFINES += -DMOZ_SPELLCHECK
340 COMPONENT_LIBS += spellchecker
341 endif
343 ifdef MOZ_ZIPWRITER
344 DEFINES += -DMOZ_ZIPWRITER
345 COMPONENT_LIBS += zipwriter
346 endif
348 ifneq (,$(filter layout-debug,$(MOZ_EXTENSIONS)))
349 COMPONENT_LIBS += gkdebug
350 endif
352 ifdef GC_LEAK_DETECTOR
353 EXTRA_DSO_LIBS += boehm
354 endif
356 ifdef NS_TRACE_MALLOC
357 STATIC_LIBS += tracemalloc
358 endif