Bug 508760 - Remove MSVC6 support from the tree; (Iv1) /toolkit/xre/*.cpp.
[mozilla-central.git] / config / static-config.mk
blobeba4edf95a49ae688ea145ee3b4809d151442884
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.org code.
17 # The Initial Developer of the Original Code is
18 # Netscape Communications Corporation.
19 # Portions created by the Initial Developer are Copyright (C) 1998
20 # the Initial Developer. All Rights Reserved.
22 # Contributor(s):
24 # Alternatively, the contents of this file may be used under the terms of
25 # either of the GNU General Public License Version 2 or later (the "GPL"),
26 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
38 # Static components makefile
39 # Include this makefile after config/config.mk & before config/rules.mk
40 # This makefile will provide the defines for statically linking
41 # all of the components into the binary.
43 STATIC_CPPSRCS += nsStaticComponents.cpp
44 STATIC_DEFINES += -D_BUILD_STATIC_BIN=1
45 STATIC_REQUIRES += \
46 xpcom \
47 string \
48 $(NULL)
50 STATIC_EXTRA_LIBS += \
51 $(addsuffix .$(LIB_SUFFIX),$(addprefix $(DEPTH)/staticlib/components/$(LIB_PREFIX),$(shell cat $(FINAL_LINK_COMPS)))) \
52 $(addsuffix .$(LIB_SUFFIX),$(addprefix $(DEPTH)/staticlib/$(LIB_PREFIX),$(shell cat $(FINAL_LINK_LIBS)))) \
53 $(NULL)
55 STATIC_COMPONENT_LIST = $(shell cat $(FINAL_LINK_COMP_NAMES))
57 STATIC_EXTRA_DEPS += $(FINAL_LINK_COMPS) $(FINAL_LINK_LIBS) $(addsuffix .$(LIB_SUFFIX),$(addprefix $(DEPTH)/staticlib/components/$(LIB_PREFIX),$(shell cat $(FINAL_LINK_COMPS)))) $(addsuffix .$(LIB_SUFFIX),$(addprefix $(DEPTH)/staticlib/$(LIB_PREFIX),$(shell cat $(FINAL_LINK_LIBS))))
59 STATIC_EXTRA_DEPS += \
60 $(topsrcdir)/config/static-config.mk \
61 $(topsrcdir)/config/static-rules.mk \
62 $(NULL)
64 ifdef MOZ_PSM
65 STATIC_EXTRA_DEPS += $(NSS_DEP_LIBS)
66 endif
68 STATIC_EXTRA_LIBS += \
69 $(PNG_LIBS) \
70 $(JPEG_LIBS) \
71 $(ZLIB_LIBS) \
72 $(NULL)
74 ifdef MOZ_PSM
75 STATIC_EXTRA_LIBS += \
76 $(NSS_LIBS) \
77 $(NULL)
78 endif
80 STATIC_EXTRA_LIBS += $(MOZ_CAIRO_LIBS)
82 STATIC_EXTRA_LIBS += $(QCMS_LIBS)
84 ifdef MOZ_ENABLE_GTK2
85 STATIC_EXTRA_LIBS += $(XLDFLAGS) $(XT_LIBS) -lgthread-2.0
86 STATIC_EXTRA_LIBS += $(MOZ_PANGO_LIBS)
87 endif
89 ifdef MOZ_STORAGE
90 STATIC_EXTRA_LIBS += $(SQLITE_LIBS)
91 endif
93 ifdef MOZ_ENABLE_STARTUP_NOTIFICATION
94 STATIC_EXTRA_LIBS += $(MOZ_STARTUP_NOTIFICATION_LIBS)
95 endif
97 ifdef MOZ_SYDNEYAUDIO
98 ifeq ($(OS_ARCH),Linux)
99 STATIC_EXTRA_LIBS += $(MOZ_ALSA_LIBS)
100 endif
101 endif
103 # Component Makefile always brings in this.
104 # STATIC_EXTRA_LIBS += $(TK_LIBS)
106 ifeq ($(OS_ARCH),WINNT)
107 STATIC_EXTRA_LIBS += $(call EXPAND_LIBNAME,comctl32 comdlg32 uuid shell32 ole32 oleaut32 version winspool imm32)
108 # XXX temporary workaround until link ordering issue is solved
109 ifdef GNU_CC
110 STATIC_EXTRA_LIBS += $(call EXPAND_LIBNAME,winmm wsock32 gdi32)
111 endif
112 STATIC_EXTRA_LIBS += $(call EXPAND_LIBNAME, usp10)
113 endif
115 ifeq ($(OS_ARCH),AIX)
116 STATIC_EXTRA_LIBS += $(call EXPAND_LIBNAME,odm cfg)
117 endif
119 LOCAL_INCLUDES += -I$(topsrcdir)/config