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 ($(OS_ARCH
)_
$(GNU_CC
),WINNT_
)
45 REQUIRES
+= libreg widget gfx
53 RCINCLUDE
= xulrunner.rc
55 ifndef MOZ_NATIVE_ZLIB
56 CPPSRCS
+= dlldeps-zlib.
cpp
57 DEFINES
+= -DZLIB_INTERNAL
60 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/widget
/src
/windows
63 ifneq (,$(filter WINNT OS2
,$(OS_ARCH
)))
64 DEFINES
+= -DZLIB_DLL
=1
68 REQUIRES
+= libreg widget gfx
75 ifndef MOZ_NATIVE_ZLIB
76 CPPSRCS
+= dlldeps-zlib.
cpp
77 DEFINES
+= -DZLIB_INTERNAL
80 ifdef MOZ_ENABLE_LIBXUL
81 RESFILE
= xulrunos2.res
82 RCFLAGS
+= -i
$(topsrcdir
)/widget
/src
/os2
85 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/widget
/src
/os2
96 #ifndef MOZ_EMBEDDING_LEVEL_DEFAULT
104 # component libraries
111 jar
$(VERSION_NUMBER
) \
136 DEFINES
+= -DMOZ_PLUGINS
142 ifdef MOZ_XPFE_COMPONENTS
143 DEFINES
+= -DMOZ_XPFE_COMPONENTS
151 ifdef MOZ_ENABLE_GTK2
159 ifeq (qt
,$(MOZ_WIDGET_TOOLKIT
))
166 ifdef MOZ_PERF_METRICS
167 EXTRA_DSO_LIBS
+= mozutil_s
171 DEFINES
+= -DMOZ_XPINSTALL
178 DEFINES
+= -DMOZ_JSDEBUGGER
184 ifdef MOZ_PREF_EXTENSIONS
185 DEFINES
+= -DMOZ_PREF_EXTENSIONS
191 ifdef MOZ_WEBSERVICES
192 DEFINES
+= -DMOZ_WEBSERVICES
198 ifdef MOZ_AUTH_EXTENSION
199 COMPONENT_LIBS
+= auth
200 DEFINES
+= -DMOZ_AUTH_EXTENSION
203 ifdef MOZ_PERMISSIONS
204 COMPONENT_LIBS
+= cookie permissions
205 DEFINES
+= -DMOZ_PERMISSIONS
208 ifdef MOZ_UNIVERSALCHARDET
209 COMPONENT_LIBS
+= universalchardet
210 DEFINES
+= -DMOZ_UNIVERSALCHARDET
213 ifndef MOZ_PLAINTEXT_EDITOR_ONLY
214 COMPONENT_LIBS
+= composer
216 DEFINES
+= -DMOZ_PLAINTEXT_EDITOR_ONLY
223 ifdef MOZ_XPFE_COMPONENTS
231 ifeq (,$(filter qt beos os2 mac photon cocoa windows
,$(MOZ_WIDGET_TOOLKIT
)))
233 ifdef MOZ_XPFE_COMPONENTS
234 COMPONENT_LIBS
+= fileview
235 DEFINES
+= -DMOZ_FILEVIEW
241 COMPONENT_LIBS
+= storagecomps
242 EXTRA_DSO_LDOPTS
+= $(SQLITE_LIBS
)
246 STATIC_LIBS
+= morkreader_s
271 COMPONENT_LIBS
+= ucvmath
274 ifdef MOZ_ENABLE_GTK2
275 COMPONENT_LIBS
+= widget_gtk2
276 ifdef MOZ_PREF_EXTENSIONS
277 COMPONENT_LIBS
+= system-pref
281 ifdef MOZ_ENABLE_GTK2
282 STATIC_LIBS
+= gtkxtbin
286 DEFINES
+= -DMOZ_IPCD
287 COMPONENT_LIBS
+= ipcdc
290 ifdef MOZ_ENABLE_POSTSCRIPT
291 DEFINES
+= -DMOZ_ENABLE_POSTSCRIPT
292 STATIC_LIBS
+= gfxpsshar
295 ifneq (,$(filter icon
,$(MOZ_IMG_DECODERS
)))
296 ifndef MOZ_ENABLE_GTK2
297 DEFINES
+= -DICON_DECODER
298 COMPONENT_LIBS
+= imgicon
302 STATIC_LIBS
+= thebes
303 COMPONENT_LIBS
+= gkgfxthebes
305 ifeq (windows
,$(MOZ_WIDGET_TOOLKIT
))
306 COMPONENT_LIBS
+= gkwidget
308 ifeq (beos
,$(MOZ_WIDGET_TOOLKIT
))
309 COMPONENT_LIBS
+= widget_beos
311 ifeq (os2
,$(MOZ_WIDGET_TOOLKIT
))
312 COMPONENT_LIBS
+= wdgtos2
314 ifneq (,$(filter mac cocoa
,$(MOZ_WIDGET_TOOLKIT
)))
315 COMPONENT_LIBS
+= widget_mac
317 ifeq (qt
,$(MOZ_WIDGET_TOOLKIT
))
318 COMPONENT_LIBS
+= widget_qt
321 ifdef MOZ_ENABLE_PHOTON
322 COMPONENT_LIBS
+= widget_photon
327 COMPONENT_LIBS
+= oji
331 COMPONENT_LIBS
+= accessibility
334 ifdef MOZ_ENABLE_XREMOTE
335 COMPONENT_LIBS
+= remoteservice
339 DEFINES
+= -DMOZ_SPELLCHECK
340 COMPONENT_LIBS
+= spellchecker
344 DEFINES
+= -DMOZ_ZIPWRITER
345 COMPONENT_LIBS
+= zipwriter
348 ifneq (,$(filter layout-debug
,$(MOZ_EXTENSIONS
)))
349 COMPONENT_LIBS
+= gkdebug
352 ifdef GC_LEAK_DETECTOR
353 EXTRA_DSO_LIBS
+= boehm
356 ifdef NS_TRACE_MALLOC
357 STATIC_LIBS
+= tracemalloc