Bug 475419. Make sure to set up our user font set no matter what the ordering of...
[mozilla-central.git] / config / static-config.mk
blobe54feabd8329e8e75d29b0b015b54fa4ff3d46f4
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 $(LCMS_LIBS) \
73 $(NULL)
75 ifdef MOZ_PSM
76 STATIC_EXTRA_LIBS += \
77 $(NSS_LIBS) \
78 $(NULL)
79 endif
81 STATIC_EXTRA_LIBS += $(MOZ_CAIRO_LIBS)
83 ifdef MOZ_ENABLE_GTK2
84 STATIC_EXTRA_LIBS += $(XLDFLAGS) $(XT_LIBS) -lgthread-2.0
85 STATIC_EXTRA_LIBS += $(MOZ_PANGO_LIBS)
86 endif
88 ifdef MOZ_STORAGE
89 STATIC_EXTRA_LIBS += $(SQLITE_LIBS)
90 endif
92 ifdef MOZ_ENABLE_STARTUP_NOTIFICATION
93 STATIC_EXTRA_LIBS += $(MOZ_STARTUP_NOTIFICATION_LIBS)
94 endif
96 # Component Makefile always brings in this.
97 # STATIC_EXTRA_LIBS += $(TK_LIBS)
99 # Some random modules require this
100 ifndef MOZ_NO_XPCOM_OBSOLETE
101 STATIC_EXTRA_LIBS += $(MOZ_XPCOM_OBSOLETE_LIBS)
102 endif
104 ifeq ($(OS_ARCH),WINNT)
105 STATIC_EXTRA_LIBS += $(call EXPAND_LIBNAME,comctl32 comdlg32 uuid shell32 ole32 oleaut32 version winspool imm32)
106 # XXX temporary workaround until link ordering issue is solved
107 ifdef GNU_CC
108 STATIC_EXTRA_LIBS += $(call EXPAND_LIBNAME,winmm wsock32 gdi32)
109 endif
110 STATIC_EXTRA_LIBS += $(call EXPAND_LIBNAME, usp10)
111 endif
113 ifeq ($(OS_ARCH),AIX)
114 STATIC_EXTRA_LIBS += $(call EXPAND_LIBNAME,odm cfg)
115 endif
117 LOCAL_INCLUDES += -I$(topsrcdir)/config