Bug 441233 Missing focus events in Thunderbird account wizard dialog r=surkov.alexander
[wine-gecko.git] / Makefile.in
blobb9375f469c114ff75bf70f2d4d4c90c5338b55cf
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 the GNU General Public License Version 2 or later (the "GPL"), or
26 # 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 DEPTH = .
39 topsrcdir = @top_srcdir@
40 srcdir = @srcdir@
41 VPATH = @srcdir@
43 include $(DEPTH)/config/autoconf.mk
45 include $(topsrcdir)/config/config.mk
47 default alldep all::
48 $(RM) -rf $(DIST)/sdk
49 $(RM) -rf $(DIST)/include
50 $(RM) -rf $(DIST)/private
51 $(RM) -rf $(DIST)/public
52 $(RM) -rf _tests
54 TIERS += base
57 # tier "base" - basic setup
59 tier_base_dirs = \
60 config \
61 build \
62 probes \
63 $(NULL)
65 ifdef MOZ_MEMORY
66 tier_base_dirs += memory/jemalloc
67 endif
69 include $(topsrcdir)/$(MOZ_BUILD_APP)/build.mk
71 TIERS += testharness
73 # test harnesses
74 ifdef ENABLE_TESTS
75 tier_testharness_dirs += tools/test-harness
76 endif
78 GARBAGE_DIRS += dist _javagen _profile _tests staticlib
79 DIST_GARBAGE = config.cache config.log config.status config-defs.h \
80 dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
81 unallmakefiles mozilla-config.h \
82 netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
83 $(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
85 # Build pseudo-external modules first when export is explicitly called
86 export::
87 $(RM) -rf $(DIST)/sdk
88 $(MAKE) -C config export
89 $(MAKE) tier_nspr
91 include $(topsrcdir)/config/rules.mk
93 # After we build tier toolkit, go back and build the tools from previous dirs
94 tier_toolkit::
95 $(MAKE) tools_tier_js
96 $(MAKE) tools_tier_xpcom
97 $(MAKE) tools_tier_necko
98 $(MAKE) tools_tier_gecko
99 $(MAKE) tools_tier_toolkit
101 ifeq (netwerk,$(MOZ_BUILD_APP))
102 tier_necko::
103 $(EXIT_ON_ERROR) \
104 $(foreach tier,$(TIERS),$(MAKE) tools_tier_$(tier); )
105 endif
107 distclean::
108 cat unallmakefiles | $(XARGS) rm -f
109 rm -f unallmakefiles $(DIST_GARBAGE)
111 ifeq ($(OS_ARCH),WINNT)
112 rebase:
113 ifdef MOZILLA_OFFICIAL
114 echo rebasing $(DIST)
115 /bin/find $(DIST) -name "*.dll" -a -not -name "msvc*" > rebase.lst
116 rebase -b 60000000 -R . -G rebase.lst
117 rm rebase.lst
118 endif
120 splitsymbols:
121 ifdef MOZILLA_OFFICIAL
122 ifdef MOZ_DEBUG_SYMBOLS
123 echo finding pdb files
124 mkdir -p $(DIST)/$(BUILDID)
125 -cp `/bin/find . -path "./dist" -prune -o -name "*.dll" | sed "s/\.dll$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
126 -cp `/bin/find . -path "./dist" -prune -o -name "*.exe" | sed "s/\.exe$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
127 -cp `/bin/find . -path "./dist" -prune -o -name "*.EXE" | sed "s/\.EXE$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
128 endif # MOZ_DEBUG_SYMBOLS
129 ifdef MOZ_PROFILE
130 echo splitting symbols out of binaries
131 /bin/find $(DIST) -name "*.dll" -exec splitsym {} \;
132 /bin/find $(DIST) -name "*.exe" -exec splitsym {} \;
133 /bin/find $(DIST) -name "*.EXE" -exec splitsym {} \;
134 mkdir -p $(DIST)/$(BUILDID)
135 /bin/find $(DIST) -name "*.dbg" -exec mv {} $(DIST)/$(BUILDID) \;
136 endif # MOZ_PROFILE
137 endif # MOZILLA_OFFICIAL
138 endif # WINNT
140 ifeq ($(OS_ARCH),WINNT)
141 # we want to copy PDB files on Windows
142 MAKE_SYM_STORE_ARGS := -c
143 ifdef PDBSTR_PATH
144 MAKE_SYM_STORE_ARGS += -i
145 endif
146 ifeq (,$(CYGWIN_WRAPPER))
147 # this doesn't work with Cygwin Python
148 MAKE_SYM_STORE_ARGS += --vcs-info
149 endif
150 DUMP_SYMS_BIN ?= $(topsrcdir)/toolkit/crashreporter/tools/win32/dump_syms.exe
151 # PDB files don't get moved to dist, so we need to scan the whole objdir
152 MAKE_SYM_STORE_PATH := .
153 endif
154 ifeq ($(OS_ARCH),Darwin)
155 # need to pass arch flags for universal builds
156 ifdef UNIVERSAL_BINARY
157 MAKE_SYM_STORE_ARGS := -a "ppc i386" --vcs-info
158 MAKE_SYM_STORE_PATH := $(DIST)/universal
159 else
160 MAKE_SYM_STORE_ARGS := -a $(OS_TEST) --vcs-info
161 MAKE_SYM_STORE_PATH := $(DIST)/bin
162 endif
163 DUMP_SYMS_BIN ?= $(DIST)/host/bin/dump_syms
164 endif
165 ifeq (,$(filter-out Linux SunOS,$(OS_ARCH)))
166 MAKE_SYM_STORE_ARGS := --vcs-info
167 DUMP_SYMS_BIN ?= $(DIST)/host/bin/dump_syms
168 MAKE_SYM_STORE_PATH := $(DIST)/bin
169 endif
171 ifdef MOZ_SYMBOLS_EXTRA_BUILDID
172 EXTRA_BUILDID := -$(MOZ_SYMBOLS_EXTRA_BUILDID)
173 endif
175 SYMBOL_ARCHIVE_BASENAME = \
176 $(MOZ_APP_NAME)-$(MOZ_APP_VERSION)-$(OS_ARCH)-$(BUILDID)$(EXTRA_BUILDID)
178 buildsymbols:
179 ifdef MOZ_CRASHREPORTER
180 echo building symbol store
181 mkdir -p $(DIST)/crashreporter-symbols/$(BUILDID)
182 $(PYTHON) $(topsrcdir)/toolkit/crashreporter/tools/symbolstore.py \
183 $(MAKE_SYM_STORE_ARGS) -s $(topsrcdir) $(DUMP_SYMS_BIN) \
184 $(DIST)/crashreporter-symbols/$(BUILDID) \
185 $(MAKE_SYM_STORE_PATH) > \
186 $(DIST)/crashreporter-symbols/$(BUILDID)/$(SYMBOL_ARCHIVE_BASENAME)-symbols.txt
187 echo packing symbols
188 mkdir -p $(topsrcdir)/../$(BUILDID)
189 cd $(DIST)/crashreporter-symbols/$(BUILDID) && \
190 zip -r9D ../crashreporter-symbols-$(SYMBOL_ARCHIVE_BASENAME).zip .
191 mv $(DIST)/crashreporter-symbols/crashreporter-symbols-$(SYMBOL_ARCHIVE_BASENAME).zip \
192 $(topsrcdir)/../$(BUILDID)
193 endif # MOZ_CRASHREPORTER
195 uploadsymbols:
196 ifdef MOZ_CRASHREPORTER
197 $(topsrcdir)/toolkit/crashreporter/tools/upload_symbols.sh $(topsrcdir)/../$(BUILDID)/crashreporter-symbols-$(SYMBOL_ARCHIVE_BASENAME).zip
198 endif
200 ifeq ($(OS_ARCH),WINNT)
201 signnss:
202 ifdef MOZILLA_OFFICIAL
203 echo signing NSS libs
204 cd $(DIST)/bin; ./shlibsign.exe -v -i softokn3.dll
205 cd $(DIST)/bin; ./shlibsign.exe -v -i freebl3.dll
206 endif # MOZILLA_OFFICIAL
208 deliver: splitsymbols rebase signnss
210 endif # WINNT
212 ifneq (,$(wildcard $(DIST)/bin/application.ini))
213 BUILDID = $(shell $(PYTHON) $(srcdir)/config/printconfigsetting.py $(DIST)/bin/application.ini App BuildID)
214 else
215 BUILDID = $(shell $(PYTHON) $(srcdir)/config/printconfigsetting.py $(DIST)/bin/platform.ini Build BuildID)
216 endif
218 #XXX: this is a hack, since we don't want to clobber for MSVC
219 # PGO support, but we can't do this test in client.mk
220 ifneq ($(OS_ARCH)_$(GNU_CC), WINNT_)
221 # No point in clobbering if PGO has been explicitly disabled.
222 ifndef NO_PROFILE_GUIDED_OPTIMIZE
223 maybe_clobber_profiledbuild: clobber_all
224 else
225 maybe_clobber_profiledbuild:
226 endif
227 else
228 maybe_clobber_profiledbuild:
229 endif
231 .PHONY: maybe_clobber_profiledbuild