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
+= widget gfx
51 ifeq ($(OS_ARCH
)_
$(GNU_CC
),WINNT_
)
57 RCINCLUDE
= xulrunner.rc
59 ifndef MOZ_NATIVE_ZLIB
60 CPPSRCS
+= dlldeps-zlib.
cpp
63 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/widget
/src
/windows
64 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/xpcom
/base
67 ifneq (,$(filter WINNT OS2
,$(OS_ARCH
)))
69 DEFINES
+= -DZLIB_DLL
=1
73 REQUIRES
+= widget gfx
80 ifndef MOZ_NATIVE_ZLIB
81 CPPSRCS
+= dlldeps-zlib.
cpp
84 ifdef MOZ_ENABLE_LIBXUL
85 RESFILE
= xulrunos2.res
86 RCFLAGS
+= -i
$(topsrcdir
)/widget
/src
/os2
89 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/widget
/src
/os2
90 LOCAL_INCLUDES
+= -I
$(topsrcdir
)/xpcom
/base
106 STATIC_LIBS
+= ipdlunittest_s
109 ifeq (Linux
,$(OS_ARCH
))
110 ifneq (Android
,$(OS_TARGET
))
114 ifeq (WINNT
,$(OS_ARCH
))
115 OS_LIBS
+= dbghelp.lib
126 STATIC_LIBS
+= chromium_s
135 # component libraries
141 jar
$(VERSION_NUMBER
) \
160 COMPONENT_LIBS
+= jetpack_s
169 COMPONENT_LIBS
+= jsperf
172 DEFINES
+= -DMOZ_PLUGINS
179 ifdef MOZ_ENABLE_GTK2
186 ifneq (,$(filter cocoa
,$(MOZ_WIDGET_TOOLKIT
)))
193 ifeq (qt
,$(MOZ_WIDGET_TOOLKIT
))
200 ifneq (,$(filter windows
,$(MOZ_WIDGET_TOOLKIT
)))
207 DEFINES
+= -DMOZ_JSDEBUGGER
213 ifdef MOZ_PREF_EXTENSIONS
214 DEFINES
+= -DMOZ_PREF_EXTENSIONS
220 ifdef MOZ_AUTH_EXTENSION
221 COMPONENT_LIBS
+= auth
222 DEFINES
+= -DMOZ_AUTH_EXTENSION
225 ifdef MOZ_PERMISSIONS
226 COMPONENT_LIBS
+= cookie permissions
227 DEFINES
+= -DMOZ_PERMISSIONS
230 ifdef MOZ_UNIVERSALCHARDET
231 COMPONENT_LIBS
+= universalchardet
232 DEFINES
+= -DMOZ_UNIVERSALCHARDET
235 ifndef MOZ_PLAINTEXT_EDITOR_ONLY
236 COMPONENT_LIBS
+= composer
238 DEFINES
+= -DMOZ_PLAINTEXT_EDITOR_ONLY
248 ifeq (,$(filter android qt beos os2 cocoa windows
,$(MOZ_WIDGET_TOOLKIT
)))
250 COMPONENT_LIBS
+= fileview
251 DEFINES
+= -DMOZ_FILEVIEW
256 COMPONENT_LIBS
+= storagecomps
257 EXTRA_DSO_LDOPTS
+= $(SQLITE_LIBS
)
261 STATIC_LIBS
+= morkreader_s
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 # Platform-specific icon channel stuff - supported mostly-everywhere
298 ifneq (,$(filter beos windows os2 mac cocoa gtk2 qt
,$(MOZ_WIDGET_TOOLKIT
)))
299 DEFINES
+= -DICON_DECODER
300 COMPONENT_LIBS
+= imgicon
303 ifeq ($(MOZ_WIDGET_TOOLKIT
),android
)
304 COMPONENT_LIBS
+= widget_android
307 STATIC_LIBS
+= thebes ycbcr
311 COMPONENT_LIBS
+= gkgfxthebes
313 ifeq (windows
,$(MOZ_WIDGET_TOOLKIT
))
314 COMPONENT_LIBS
+= gkwidget
316 ifeq (beos
,$(MOZ_WIDGET_TOOLKIT
))
317 COMPONENT_LIBS
+= widget_beos
319 ifeq (os2
,$(MOZ_WIDGET_TOOLKIT
))
320 COMPONENT_LIBS
+= wdgtos2
322 ifeq (cocoa
,$(MOZ_WIDGET_TOOLKIT
))
323 COMPONENT_LIBS
+= widget_mac
325 ifeq (qt
,$(MOZ_WIDGET_TOOLKIT
))
326 COMPONENT_LIBS
+= widget_qt
330 COMPONENT_LIBS
+= accessibility
333 ifdef MOZ_ENABLE_XREMOTE
334 COMPONENT_LIBS
+= remoteservice
338 DEFINES
+= -DMOZ_SPELLCHECK
339 COMPONENT_LIBS
+= spellchecker
343 DEFINES
+= -DMOZ_ZIPWRITER
344 COMPONENT_LIBS
+= zipwriter
347 COMPONENT_LIBS
+= services-crypto
351 COMPONENT_LIBS
+= gkdebug
355 ifdef MOZ_APP_COMPONENT_LIBS
356 COMPONENT_LIBS
+= $(MOZ_APP_COMPONENT_LIBS
)
359 ifeq ($(MOZ_WIDGET_TOOLKIT
),cocoa
)
360 OS_LIBS
+= -framework OpenGL
-lcups
363 EXTRA_DSO_LDOPTS
+= \
371 $(MOZ_HARFBUZZ_LIBS
) \
373 $(MOZ_APP_EXTRA_LIBS
) \
376 ifdef MOZ_NATIVE_ZLIB
377 EXTRA_DSO_LDOPTS
+= $(ZLIB_LIBS
)
379 EXTRA_DSO_LDOPTS
+= $(MOZ_ZLIB_LIBS
)
382 ifdef MOZ_NATIVE_HUNSPELL
383 EXTRA_DSO_LDOPTS
+= $(MOZ_HUNSPELL_LIBS
)
386 ifdef MOZ_NATIVE_LIBEVENT
387 EXTRA_DSO_LDOPTS
+= $(MOZ_LIBEVENT_LIBS
)
390 ifdef MOZ_NATIVE_LIBVPX
391 EXTRA_DSO_LDOPTS
+= $(MOZ_LIBVPX_LIBS
)
394 ifdef MOZ_SYDNEYAUDIO
395 ifeq ($(OS_ARCH
),Linux
)
396 EXTRA_DSO_LDOPTS
+= $(MOZ_ALSA_LIBS
)
400 ifdef HAVE_CLOCK_MONOTONIC
401 EXTRA_DSO_LDOPTS
+= $(REALTIME_LIBS
)
404 ifeq (android
,$(MOZ_WIDGET_TOOLKIT
))