Bug 797671: cleanup from importing webrtc.org update r=ted,glandium (Part is bug...
[gecko.git] / toolkit / library / Makefile.in
blob7f9046ee7464f33823d1da80b5a6310fdabde448
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 # You can obtain one at http://mozilla.org/MPL/2.0/.
5 DEPTH = @DEPTH@
6 topsrcdir = @top_srcdir@
7 srcdir = @srcdir@
8 VPATH = @srcdir@
10 include $(DEPTH)/config/autoconf.mk
12 include $(topsrcdir)/rdf/util/src/objs.mk
13 include $(topsrcdir)/intl/unicharutil/util/objs.mk
15 MODULE = libxul
16 LIBRARY_NAME = xul
17 FORCE_SHARED_LIB = 1
18 MOZILLA_INTERNAL_API = 1
20 ifdef MOZ_METRO
21 DIRS += winvccorlib
22 endif
24 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
25 # This is going to be a framework named "XUL", not an ordinary library named
26 # "libxul.dylib"
27 LIBRARY_NAME=XUL
28 # Setting MAKE_FRAMEWORK makes DLL_PREFIX and DLL_SUFFIX be ignored when
29 # setting SHARED_LIBRARY; we need to leave DLL_PREFIX and DLL_SUFFIX
30 # as-is so that dependencies of the form -ltracemalloc still work.
31 MAKE_FRAMEWORK=1
32 endif
34 VPATH += $(topsrcdir)/build/
36 ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
37 CPPSRCS += dlldeps-xul.cpp
38 endif
40 ifeq ($(OS_ARCH),OS2)
41 CPPSRCS += dlldeps-xul.cpp
42 endif
44 SHARED_LIBRARY_LIBS += \
45 $(DEPTH)/toolkit/components/osfile/$(LIB_PREFIX)osfile_s.$(LIB_SUFFIX) \
46 $(DEPTH)/toolkit/xre/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
47 $(NULL)
49 SHARED_LIBRARY_LIBS += \
50 $(foreach component,$(COMPONENT_LIBS),$(DEPTH)/staticlib/components/$(LIB_PREFIX)$(component).$(LIB_SUFFIX)) \
51 $(foreach lib,$(STATIC_LIBS),$(DEPTH)/staticlib/$(LIB_PREFIX)$(lib).$(LIB_SUFFIX)) \
52 $(NULL)
54 CPPSRCS += \
55 nsStaticXULComponents.cpp \
56 $(NULL)
58 ifeq ($(OS_ARCH),WINNT)
59 CPPSRCS += \
60 nsDllMain.cpp \
61 $(NULL)
62 endif
64 ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
65 CPPSRCS += \
66 nsGFXDeps.cpp \
67 $(NULL)
69 RCINCLUDE = xulrunner.rc
71 ifndef MOZ_NATIVE_ZLIB
72 CPPSRCS += dlldeps-zlib.cpp
73 endif
75 LOCAL_INCLUDES += -I$(topsrcdir)/widget/windows
76 LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/base
77 endif
79 ifeq ($(OS_ARCH),OS2)
81 CPPSRCS += \
82 nsGFXDeps.cpp \
83 $(NULL)
85 ifndef MOZ_NATIVE_ZLIB
86 CPPSRCS += dlldeps-zlib.cpp
87 endif
89 RESFILE = xulrunos2.res
90 RCFLAGS += -i $(topsrcdir)/widget/os2
92 LOCAL_INCLUDES += -I$(topsrcdir)/widget/os2
93 LOCAL_INCLUDES += -I$(topsrcdir)/xpcom/base
94 endif
96 # dependent libraries
97 STATIC_LIBS += \
98 jsipc_s \
99 domipc_s \
100 domplugins_s \
101 mozipc_s \
102 mozipdlgen_s \
103 ipcshell_s \
104 gfxipc_s \
105 hal_s \
106 dombindings_s \
107 $(NULL)
109 ifdef MOZ_B2G_RIL #{
110 STATIC_LIBS += mozril_s
111 endif #}
113 ifdef MOZ_B2G_BT #{
114 STATIC_LIBS += mozdbus_s mozipcunixsocket_s
115 endif #}
117 ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
118 STATIC_LIBS += moznetd_s
119 endif
121 ifdef MOZ_B2G_CAMERA #{
122 OS_LIBS += -lstagefright -lstagefright_omx
123 endif #}
125 ifdef MOZ_IPDL_TESTS
126 STATIC_LIBS += ipdlunittest_s
127 endif
129 ifeq (Linux,$(OS_ARCH))
130 ifneq (Android,$(OS_TARGET))
131 OS_LIBS += -lrt
132 endif
133 endif
135 STATIC_LIBS += \
136 xpcom_core \
137 ucvutil_s \
138 chromium_s \
139 snappy_s \
140 $(NULL)
142 # component libraries
143 COMPONENT_LIBS += \
144 necko \
145 uconv \
146 i18n \
147 chardet \
148 jar$(VERSION_NUMBER) \
149 startupcache \
150 pref \
151 htmlpars \
152 identity \
153 imglib2 \
154 mediasniffer \
155 gkgfx \
156 gklayout \
157 docshell \
158 embedcomponents \
159 webbrwsr \
160 nsappshell \
161 txmgr \
162 commandlines \
163 toolkitcomps \
164 pipboot \
165 pipnss \
166 appcomps \
167 jsreflect \
168 composer \
169 telemetry \
170 jsinspector \
171 jsdebugger \
172 storagecomps \
173 rdf \
174 windowds \
175 $(NULL)
177 ifdef BUILD_CTYPES
178 COMPONENT_LIBS += \
179 jsctypes \
180 $(NULL)
181 endif
183 COMPONENT_LIBS += \
184 jsperf \
185 gkplugin \
186 $(NULL)
188 ifdef MOZ_XUL
189 ifdef MOZ_ENABLE_GTK2
190 COMPONENT_LIBS += \
191 unixproxy \
192 $(NULL)
193 endif
194 endif
196 ifneq (,$(filter cocoa,$(MOZ_WIDGET_TOOLKIT)))
197 COMPONENT_LIBS += \
198 osxproxy \
199 $(NULL)
200 endif
202 ifdef MOZ_XUL
203 ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
204 COMPONENT_LIBS += \
205 unixproxy \
206 $(NULL)
207 endif
208 endif
210 ifneq (,$(filter windows,$(MOZ_WIDGET_TOOLKIT)))
211 COMPONENT_LIBS += \
212 windowsproxy \
213 $(NULL)
214 endif
216 ifdef MOZ_JSDEBUGGER
217 DEFINES += -DMOZ_JSDEBUGGER
218 COMPONENT_LIBS += \
219 jsd \
220 $(NULL)
221 endif
223 ifdef MOZ_PREF_EXTENSIONS
224 DEFINES += -DMOZ_PREF_EXTENSIONS
225 COMPONENT_LIBS += \
226 autoconfig \
227 $(NULL)
228 endif
230 ifdef MOZ_AUTH_EXTENSION
231 COMPONENT_LIBS += auth
232 DEFINES += -DMOZ_AUTH_EXTENSION
233 endif
235 ifdef MOZ_PERMISSIONS
236 COMPONENT_LIBS += cookie permissions
237 DEFINES += -DMOZ_PERMISSIONS
238 endif
240 ifdef MOZ_UNIVERSALCHARDET
241 COMPONENT_LIBS += universalchardet
242 DEFINES += -DMOZ_UNIVERSALCHARDET
243 endif
245 ifeq (,$(filter android gonk qt os2 cocoa windows,$(MOZ_WIDGET_TOOLKIT)))
246 ifdef MOZ_XUL
247 COMPONENT_LIBS += fileview
248 DEFINES += -DMOZ_FILEVIEW
249 endif
250 endif
252 ifdef MOZ_PLACES
253 COMPONENT_LIBS += \
254 places \
255 $(NULL)
256 endif
258 ifdef MOZ_XUL
259 COMPONENT_LIBS += \
260 tkautocomplete \
261 satchel \
262 pippki \
263 $(NULL)
264 endif
266 ifdef MOZ_ENABLE_GTK2
267 COMPONENT_LIBS += widget_gtk2
268 endif
270 ifdef MOZ_ENABLE_GTK2
271 ifdef MOZ_X11
272 STATIC_LIBS += gtkxtbin
273 endif
274 endif
276 # Platform-specific icon channel stuff - supported mostly-everywhere
277 ifneq (,$(filter windows os2 mac cocoa gtk2 qt android,$(MOZ_WIDGET_TOOLKIT)))
278 DEFINES += -DICON_DECODER
279 COMPONENT_LIBS += imgicon
280 endif
282 ifeq ($(MOZ_WIDGET_TOOLKIT),android)
283 COMPONENT_LIBS += widget_android
284 STATIC_LIBS += skia_npapi
285 endif
287 ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
288 COMPONENT_LIBS += widget_gonk
289 endif
291 STATIC_LIBS += thebes gl ycbcr
293 ifdef MOZ_ENABLE_PROFILER_SPS
294 COMPONENT_LIBS += profiler
295 endif
297 ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
298 COMPONENT_LIBS += widget_windows
299 endif
300 ifeq (os2,$(MOZ_WIDGET_TOOLKIT))
301 COMPONENT_LIBS += wdgtos2
302 endif
303 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
304 COMPONENT_LIBS += widget_mac
305 endif
306 ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
307 COMPONENT_LIBS += widget_qt
308 endif
310 ifdef ACCESSIBILITY
311 COMPONENT_LIBS += accessibility
312 endif
314 ifdef MOZ_ENABLE_XREMOTE
315 COMPONENT_LIBS += remoteservice
316 endif
318 ifdef MOZ_SPELLCHECK
319 DEFINES += -DMOZ_SPELLCHECK
320 COMPONENT_LIBS += spellchecker
321 endif
323 ifdef MOZ_ZIPWRITER
324 DEFINES += -DMOZ_ZIPWRITER
325 COMPONENT_LIBS += zipwriter
326 endif
328 COMPONENT_LIBS += services-crypto
330 ifdef MOZ_DEBUG
331 ifdef ENABLE_TESTS
332 COMPONENT_LIBS += gkdebug
333 endif
334 endif
336 ifdef MOZ_APP_COMPONENT_LIBS
337 COMPONENT_LIBS += $(MOZ_APP_COMPONENT_LIBS)
338 endif
340 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
341 OS_LIBS += -framework OpenGL -lcups
342 endif
344 EXTRA_DSO_LDOPTS += \
345 $(LIBS_DIR) \
346 $(MOZ_JS_LIBS) \
347 $(NSS_LIBS) \
348 $(MOZ_CAIRO_OSLIBS) \
349 $(MOZ_APP_EXTRA_LIBS) \
350 $(SQLITE_LIBS) \
351 $(NULL)
353 ifdef MOZ_NATIVE_JPEG
354 EXTRA_DSO_LDOPTS += $(MOZ_JPEG_LIBS)
355 endif
357 ifdef MOZ_NATIVE_PNG
358 EXTRA_DSO_LDOPTS += $(MOZ_PNG_LIBS)
359 endif
361 ifneq (WINNT,$(OS_ARCH))
362 EXTRA_DSO_LDOPTS += $(MOZ_ZLIB_LIBS)
363 endif
365 ifdef MOZ_NATIVE_HUNSPELL
366 EXTRA_DSO_LDOPTS += $(MOZ_HUNSPELL_LIBS)
367 endif
369 ifdef MOZ_NATIVE_LIBEVENT
370 EXTRA_DSO_LDOPTS += $(MOZ_LIBEVENT_LIBS)
371 endif
373 ifdef MOZ_NATIVE_LIBVPX
374 EXTRA_DSO_LDOPTS += $(MOZ_LIBVPX_LIBS)
375 endif
377 ifndef MOZ_TREE_PIXMAN
378 EXTRA_DSO_LDOPTS += $(MOZ_PIXMAN_LIBS)
379 endif
381 EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,gkmedias,$(DIST)/lib)
383 ifdef MOZ_WEBRTC
384 ifdef MOZ_PEERCONNECTION
385 COMPONENT_LIBS += peerconnection
386 endif
387 ifdef MOZ_WEBRTC_SIGNALING
388 EXTRA_DSO_LDOPTS += \
389 $(DEPTH)/media/mtransport/build/$(LIB_PREFIX)mtransport.$(LIB_SUFFIX) \
390 $(DEPTH)/media/webrtc/signaling/signaling_ecc/$(LIB_PREFIX)ecc.$(LIB_SUFFIX) \
391 $(DEPTH)/media/webrtc/signaling/signaling_sipcc/$(LIB_PREFIX)sipcc.$(LIB_SUFFIX) \
392 $(NULL)
393 endif
394 ifdef MOZ_WEBRTC_IN_LIBXUL
395 include $(topsrcdir)/media/webrtc/shared_libs.mk
396 EXTRA_DSO_LDOPTS += $(WEBRTC_LIBS)
397 ifeq (WINNT,$(OS_TARGET))
398 EXTRA_DSO_LDOPTS += \
399 -LIBPATH:"$(MOZ_DIRECTX_SDK_PATH)/lib/$(MOZ_DIRECTX_SDK_CPU_SUFFIX)" \
400 $(NULL)
401 OS_LIBS += $(call EXPAND_LIBNAME,secur32 crypt32 iphlpapi strmiids dmoguids wmcodecdspuuid amstrmid msdmo wininet)
402 endif
403 endif
404 endif
407 ifdef MOZ_SYDNEYAUDIO
408 ifeq ($(OS_ARCH),Linux)
409 EXTRA_DSO_LDOPTS += $(MOZ_ALSA_LIBS)
410 endif
411 endif
413 ifdef MOZ_PULSEAUDIO
414 ifdef MOZ_CUBEB
415 EXTRA_DSO_LDOPTS += $(MOZ_PULSEAUDIO_LIBS)
416 endif
417 endif
419 ifdef HAVE_CLOCK_MONOTONIC
420 EXTRA_DSO_LDOPTS += $(REALTIME_LIBS)
421 endif
423 ifeq (android,$(MOZ_WIDGET_TOOLKIT))
424 OS_LIBS += -lGLESv2
425 endif
427 ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
428 OS_LIBS += \
429 -lui \
430 -lmedia \
431 -lhardware_legacy \
432 -lhardware \
433 -lutils \
434 -lcutils \
435 -lsysutils \
436 -lcamera_client \
437 -lbinder \
438 -lsensorservice \
439 -ldbus \
440 -lstagefright \
441 -lstagefright_omx \
442 -lbinder \
443 $(NULL)
444 endif
446 EXTRA_DEPS += \
447 $(topsrcdir)/intl/unicharutil/util/objs.mk \
448 $(topsrcdir)/rdf/util/src/objs.mk \
449 $(NULL)
451 CPPSRCS += \
452 $(INTL_UNICHARUTIL_UTIL_LCPPSRCS) \
453 $(RDF_UTIL_SRC_LCPPSRCS) \
454 $(NULL)
456 GARBAGE += \
457 $(INTL_UNICHARUTIL_UTIL_LCPPSRCS) \
458 $(RDF_UTIL_SRC_LCPPSRCS) \
459 $(NULL)
461 LOCAL_INCLUDES += -I$(topsrcdir)/intl/unicharutil/util \
462 -I$(topsrcdir)/intl/unicharutil/src
464 ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
465 SDK_LIBRARY = $(IMPORT_LIBRARY)
466 else
467 SDK_LIBRARY = $(SHARED_LIBRARY)
468 endif
470 # See bug 653662 - some builders are hitting an internal size limit on
471 # incremental builds. Disable incremental linking for debug builds on VC8 or
472 # on 32-bit hosts.
473 # See: http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/c34d5c37-ca4a-4580-9c7c-4379a8c76d1f/
474 ifeq ($(OS_ARCH),WINNT)
475 IS_32BIT_HOST := $(if $(filter AMD64,$(PROCESSOR_ARCHITECTURE) $(PROCESSOR_ARCHITEW6432)),,yes)
476 ifneq (,$(or $(filter 1400,$(_MSC_VER)),$(IS_32BIT_HOST)))
477 ifdef MOZ_DEBUG
478 EXTRA_DSO_LDOPTS += -INCREMENTAL:NO
479 endif
480 endif
481 endif
483 EXTRA_DSO_LDOPTS += $(LIBS_DIR) $(EXTRA_DSO_LIBS)
485 DEFINES += -DIMPL_XREAPI
487 EXTRA_DSO_LDOPTS += $(NSPR_LIBS) $(MOZALLOC_LIB)
489 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
490 CXXFLAGS += $(TK_CFLAGS)
491 OS_LIBS += \
492 -framework SystemConfiguration \
493 -framework QTKit \
494 -framework IOKit \
495 -F/System/Library/PrivateFrameworks -framework CoreUI \
496 $(TK_LIBS) \
497 $(NULL)
498 endif
500 ifeq ($(OS_ARCH),Darwin)
501 ifdef MOZ_SYDNEYAUDIO
502 OS_LIBS += \
503 -framework Carbon \
504 -framework CoreAudio \
505 -framework AudioToolbox \
506 -framework AudioUnit \
507 -framework IOKit \
508 -framework Foundation \
509 -framework AppKit \
510 -framework Security \
511 $(NULL)
512 endif
513 endif
515 ifneq (,$(filter NetBSD OpenBSD,$(OS_ARCH)))
516 ifdef MOZ_SYDNEYAUDIO
517 EXTRA_DSO_LDOPTS += -lossaudio
518 endif
519 endif
521 ifeq (OpenBSD,$(OS_ARCH))
522 ifdef MOZ_CUBEB
523 EXTRA_DSO_LDOPTS += -lsndio
524 endif
525 endif
527 ifdef MOZ_PLATFORM_MAEMO
528 EXTRA_DSO_LDOPTS += $(MOZ_PLATFORM_MAEMO_LIBS)
529 endif
531 ifdef MOZ_ENABLE_LIBCONIC
532 EXTRA_DSO_LDOPTS += $(LIBCONIC_LIBS)
533 endif
535 ifdef MOZ_ENABLE_DBUS
536 EXTRA_DSO_LDOPTS += $(MOZ_DBUS_GLIB_LIBS)
537 endif
539 ifeq (gtk2,$(MOZ_WIDGET_TOOLKIT))
540 EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS) $(XEXT_LIBS) $(XCOMPOSITE_LIBS) $(MOZ_PANGO_LIBS) $(MOZ_GTK2_LIBS) $(XT_LIBS) -lgthread-2.0
541 EXTRA_DSO_LDOPTS += $(FT2_LIBS)
542 endif
544 ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
545 EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS) $(XT_LIBS) $(MOZ_QT_LIBS)
546 EXTRA_DSO_LDOPTS += $(FT2_LIBS) $(MOZ_PANGO_LIBS)
547 EXTRA_DSO_LDOPTS += $(LIBXUL_DIST)/../widget/qt/faststartupqt/$(LIB_PREFIX)faststartupqt.$(LIB_SUFFIX)
548 endif
550 ifdef MOZ_TREE_FREETYPE
551 ifndef MOZ_TREE_CAIRO
552 EXTRA_DSO_LDOPTS += $(FT2_LIBS)
553 endif
554 endif
556 ifdef MOZ_ENABLE_STARTUP_NOTIFICATION
557 EXTRA_DSO_LDOPTS += $(MOZ_STARTUP_NOTIFICATION_LIBS)
558 endif
560 ifdef MOZ_ENABLE_LIBPROXY
561 EXTRA_DSO_LDOPTS += $(MOZ_LIBPROXY_LIBS)
562 endif
564 ifeq ($(OS_ARCH),SunOS)
565 ifdef GNU_CC
566 EXTRA_DSO_LDOPTS += -lelf
567 else
568 EXTRA_DSO_LDOPTS += -lelf -ldemangle
569 endif
570 endif
572 ifneq (,$(filter DragonFly FreeBSD NetBSD OpenBSD,$(OS_ARCH)))
573 OS_LIBS += $(call EXPAND_LIBNAME,kvm)
574 # keep `environ' unresolved, see bug 14426 for binutils
575 EXTRA_DSO_LDOPTS += -Wl,--warn-unresolved-symbols
576 endif
578 ifeq ($(OS_ARCH),WINNT)
579 OS_LIBS += $(call EXPAND_LIBNAME,shell32 ole32 version winspool comdlg32 imm32 msimg32 shlwapi psapi ws2_32 dbghelp rasapi32 rasdlg iphlpapi uxtheme setupapi secur32 sensorsapi portabledeviceguids windowscodecs wininet)
580 ifdef ACCESSIBILITY
581 OS_LIBS += $(call EXPAND_LIBNAME,oleacc)
582 endif
583 ifdef _MSC_VER
584 OS_LIBS += $(call EXPAND_LIBNAME,delayimp)
585 EXTRA_DSO_LDOPTS += \
586 -DELAYLOAD:psapi.dll \
587 -DELAYLOAD:dbghelp.dll \
588 -DELAYLOAD:rasapi32.dll \
589 -DELAYLOAD:rasdlg.dll \
590 -DELAYLOAD:comdlg32.dll \
591 -DELAYLOAD:winspool.drv \
592 -DELAYLOAD:secur32.dll \
593 -DELAYLOAD:wininet.dll \
594 $(NULL)
596 # See nsDllMain for an explanation
597 ifdef MOZ_METRO
598 ifdef MOZ_DEBUG
599 EXTRA_DSO_LDOPTS += -DELAYLOAD:VCCORLIB$(CRTDLLVERSION)D.DLL
600 else
601 EXTRA_DSO_LDOPTS += -DELAYLOAD:VCCORLIB$(CRTDLLVERSION).DLL
602 endif
603 EXTRA_DSO_LDOPTS += -DELAYLOAD:API-MS-WIN-CORE-WINRT-L$(CRTEXPDLLVERSION).DLL
604 EXTRA_DSO_LDOPTS += -DELAYLOAD:API-MS-WIN-CORE-WINRT-STRING-L$(CRTEXPDLLVERSION).DLL
605 endif
607 ifdef ACCESSIBILITY
608 EXTRA_DSO_LDOPTS += -DELAYLOAD:oleacc.dll
609 endif
610 endif
611 endif # WINNT
613 ifdef MOZ_JPROF
614 EXTRA_DSO_LDOPTS += -ljprof
615 endif
617 ifdef MOZ_ENABLE_QT
618 EXTRA_DSO_LDOPTS += $(MOZ_QT_LDFLAGS) $(XEXT_LIBS)
619 endif
621 ifdef MOZ_GSTREAMER
622 EXTRA_DSO_LDOPTS += $(GSTREAMER_LIBS)
623 endif
625 include $(topsrcdir)/config/rules.mk
627 export:: $(RDF_UTIL_SRC_CPPSRCS) $(INTL_UNICHARUTIL_UTIL_CPPSRCS)
628 $(INSTALL) $^ .
630 # need widget/windows for resource.h (included from widget.rc)
631 LOCAL_INCLUDES += \
632 -I$(topsrcdir)/config \
633 -I$(topsrcdir)/widget/windows \
634 $(NULL)
636 OS_LIBS += $(LIBICONV)
638 DEFINES += \
639 -D_IMPL_NS_COM \
640 -D_IMPL_NS_STRINGAPI \
641 -DEXPORT_XPT_API \
642 -DEXPORT_XPTC_API \
643 -D_IMPL_NS_GFX \
644 -D_IMPL_NS_WIDGET \
645 $(NULL)
647 ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
648 OS_LIBS += $(call EXPAND_LIBNAME,usp10 oleaut32)
649 endif
651 ifeq ($(OS_ARCH),OpenBSD)
652 # Needed by nsAuthGSSAPI
653 EXTRA_DSO_LDOPTS += -lkrb5 -lcrypto
654 endif
656 ifdef MOZ_DEBUG
657 ifdef ENABLE_TESTS
658 DEFINES += -DENABLE_LAYOUTDEBUG
659 endif
660 endif
662 ifeq (WINNT_1,$(OS_TARGET)_$(MOZ_PROFILE_USE))
663 # Wrap linker to measure peak virtual memory usage.
664 LD := $(PYTHON) $(topsrcdir)/build/link.py $(CURDIR)/linker-vsize $(LD)
665 endif