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 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.
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 *****
41 nsStaticXULComponents.
cpp \
44 ifeq (,$(filter-out WINCE WINNT
,$(OS_ARCH
)))
45 REQUIRES
+= libreg widget gfx
51 ifeq ($(OS_ARCH
)_
$(GNU_CC
),WINNT_
)
57 RCINCLUDE
= xulrunner.rc
59 ifndef MOZ_NATIVE_ZLIB
60 CPPSRCS
+= dlldeps-zlib.
cpp
61 DEFINES
+= -DZLIB_INTERNAL
64 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/widget
/src
/windows
67 ifneq (,$(filter WINNT OS2
,$(OS_ARCH
)))
68 DEFINES
+= -DZLIB_DLL
=1
72 REQUIRES
+= libreg widget gfx
79 ifndef MOZ_NATIVE_ZLIB
80 CPPSRCS
+= dlldeps-zlib.
cpp
81 DEFINES
+= -DZLIB_INTERNAL
84 ifdef MOZ_ENABLE_LIBXUL
85 RESFILE
= xulrunos2.res
86 RCFLAGS
+= -i
$(topsrcdir
)/widget
/src
/os2
89 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/widget
/src
/os2
100 #ifndef MOZ_EMBEDDING_LEVEL_DEFAULT
108 # component libraries
115 jar
$(VERSION_NUMBER
) \
140 DEFINES
+= -DMOZ_PLUGINS
146 ifdef MOZ_XPFE_COMPONENTS
147 DEFINES
+= -DMOZ_XPFE_COMPONENTS
155 ifdef MOZ_ENABLE_GTK2
162 ifneq (,$(filter cocoa
,$(MOZ_WIDGET_TOOLKIT
)))
169 ifeq (qt
,$(MOZ_WIDGET_TOOLKIT
))
176 ifdef MOZ_PERF_METRICS
177 EXTRA_DSO_LIBS
+= mozutil_s
181 DEFINES
+= -DMOZ_XPINSTALL
188 DEFINES
+= -DMOZ_JSDEBUGGER
194 ifdef MOZ_PREF_EXTENSIONS
195 DEFINES
+= -DMOZ_PREF_EXTENSIONS
201 ifdef MOZ_WEBSERVICES
202 DEFINES
+= -DMOZ_WEBSERVICES
208 ifdef MOZ_AUTH_EXTENSION
209 COMPONENT_LIBS
+= auth
210 DEFINES
+= -DMOZ_AUTH_EXTENSION
213 ifdef MOZ_PERMISSIONS
214 COMPONENT_LIBS
+= cookie permissions
215 DEFINES
+= -DMOZ_PERMISSIONS
218 ifdef MOZ_UNIVERSALCHARDET
219 COMPONENT_LIBS
+= universalchardet
220 DEFINES
+= -DMOZ_UNIVERSALCHARDET
223 ifndef MOZ_PLAINTEXT_EDITOR_ONLY
224 COMPONENT_LIBS
+= composer
226 DEFINES
+= -DMOZ_PLAINTEXT_EDITOR_ONLY
233 ifdef MOZ_XPFE_COMPONENTS
241 ifeq (,$(filter qt beos os2 mac photon cocoa windows
,$(MOZ_WIDGET_TOOLKIT
)))
243 ifdef MOZ_XPFE_COMPONENTS
244 COMPONENT_LIBS
+= fileview
245 DEFINES
+= -DMOZ_FILEVIEW
251 COMPONENT_LIBS
+= storagecomps
252 EXTRA_DSO_LDOPTS
+= $(SQLITE_LIBS
)
256 STATIC_LIBS
+= morkreader_s
281 COMPONENT_LIBS
+= ucvmath
284 ifdef MOZ_ENABLE_GTK2
285 COMPONENT_LIBS
+= widget_gtk2
286 ifdef MOZ_PREF_EXTENSIONS
287 COMPONENT_LIBS
+= system-pref
291 ifdef MOZ_ENABLE_GTK2
293 STATIC_LIBS
+= gtkxtbin
297 ifdef MOZ_ENABLE_POSTSCRIPT
298 DEFINES
+= -DMOZ_ENABLE_POSTSCRIPT
299 STATIC_LIBS
+= gfxpsshar
302 ifneq (,$(filter icon
,$(MOZ_IMG_DECODERS
)))
303 ifndef MOZ_ENABLE_GTK2
304 DEFINES
+= -DICON_DECODER
305 COMPONENT_LIBS
+= imgicon
309 STATIC_LIBS
+= thebes
310 COMPONENT_LIBS
+= gkgfxthebes
312 ifeq (windows
,$(MOZ_WIDGET_TOOLKIT
))
313 COMPONENT_LIBS
+= gkwidget
315 ifeq (beos
,$(MOZ_WIDGET_TOOLKIT
))
316 COMPONENT_LIBS
+= widget_beos
318 ifeq (os2
,$(MOZ_WIDGET_TOOLKIT
))
319 COMPONENT_LIBS
+= wdgtos2
321 ifneq (,$(filter mac cocoa
,$(MOZ_WIDGET_TOOLKIT
)))
322 COMPONENT_LIBS
+= widget_mac
324 ifeq (qt
,$(MOZ_WIDGET_TOOLKIT
))
325 COMPONENT_LIBS
+= widget_qt
328 ifdef MOZ_ENABLE_PHOTON
329 COMPONENT_LIBS
+= widget_photon
334 COMPONENT_LIBS
+= oji
338 COMPONENT_LIBS
+= accessibility
341 ifdef MOZ_ENABLE_XREMOTE
342 COMPONENT_LIBS
+= remoteservice
346 DEFINES
+= -DMOZ_SPELLCHECK
347 COMPONENT_LIBS
+= spellchecker
351 DEFINES
+= -DMOZ_ZIPWRITER
352 COMPONENT_LIBS
+= zipwriter
355 ifneq (,$(filter layout-debug
,$(MOZ_EXTENSIONS
)))
356 COMPONENT_LIBS
+= gkdebug
359 ifdef GC_LEAK_DETECTOR
360 EXTRA_DSO_LIBS
+= boehm