~extension-hackers/globalmenu-extension/3.5

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Chris Coulson
  • Date: 2011-08-05 17:37:02 UTC
  • Revision ID: chrisccoulson@ubuntu.com-20110805173702-n11ykbt0tdp5u07q
Refresh build system from FIREFOX_6_0b5_BUILD1

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
 
84
84
GARBAGE_DIRS += dist _javagen _profile _tests staticlib
85
85
DIST_GARBAGE = config.cache config.log config.status config-defs.h \
86
 
   dependencies.beos config/autoconf.mk \
 
86
   config/autoconf.mk \
87
87
   unallmakefiles mozilla-config.h \
88
88
   netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
89
89
   $(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
90
90
 
91
 
ifdef WINCE
92
 
check::
93
 
        $(PYTHON) $(topsrcdir)/build/mobile/devicemanager-utils.py copy $(DIST)/bin
94
 
endif
95
 
 
96
91
default alldep all:: $(topsrcdir)/configure config.status
97
 
        $(RM) -rf $(DIST)/sdk
98
 
        $(RM) -rf $(DIST)/include
99
 
        $(RM) -rf $(DIST)/private
100
 
        $(RM) -rf $(DIST)/public
101
 
        $(RM) -rf $(DIST)/bin/components
102
 
        $(RM) -rf _tests
 
92
        $(RM) -r $(DIST)/sdk
 
93
        $(RM) -r $(DIST)/include
 
94
        $(RM) -r $(DIST)/private
 
95
        $(RM) -r $(DIST)/public
 
96
        $(RM) -r $(DIST)/bin/components
 
97
        $(RM) -r _tests
103
98
 
104
99
$(topsrcdir)/configure: $(topsrcdir)/configure.in
105
100
        @echo "STOP!  configure.in has changed, and your configure is out of date."
117
112
 
118
113
# Build pseudo-external modules first when export is explicitly called
119
114
export::
120
 
        $(RM) -rf $(DIST)/sdk
 
115
        $(RM) -r $(DIST)/sdk
121
116
        $(MAKE) -C config export
122
117
        $(MAKE) tier_nspr
123
118
 
130
125
 
131
126
distclean::
132
127
        cat unallmakefiles | $(XARGS) rm -f
133
 
        rm -f unallmakefiles $(DIST_GARBAGE)
 
128
        $(RM) unallmakefiles $(DIST_GARBAGE)
134
129
 
135
130
ifeq ($(OS_ARCH),WINNT)
136
131
# we want to copy PDB files on Windows
137
 
MAKE_SYM_STORE_ARGS := -c
 
132
MAKE_SYM_STORE_ARGS := -c --vcs-info
138
133
ifdef PDBSTR_PATH
139
134
MAKE_SYM_STORE_ARGS += -i
140
135
endif
141
 
ifeq (,$(CYGWIN_WRAPPER))
142
 
# this doesn't work with Cygwin Python
143
 
MAKE_SYM_STORE_ARGS += --vcs-info
144
 
endif
145
 
DUMP_SYMS_BIN ?= $(topsrcdir)/toolkit/crashreporter/tools/win32/dump_syms.exe
 
136
DUMP_SYMS_BIN ?= $(topsrcdir)/toolkit/crashreporter/tools/win32/dump_syms_vc$(_MSC_VER).exe
146
137
# PDB files don't get moved to dist, so we need to scan the whole objdir
147
138
MAKE_SYM_STORE_PATH := .
148
139
endif
171
162
EXTRA_BUILDID := -$(MOZ_SYMBOLS_EXTRA_BUILDID)
172
163
endif
173
164
 
174
 
export SYMBOL_INDEX_NAME = \
 
165
SYMBOL_INDEX_NAME = \
175
166
  $(MOZ_APP_NAME)-$(MOZ_APP_VERSION)-$(OS_TARGET)-$(BUILDID)$(EXTRA_BUILDID)-symbols.txt
176
167
 
177
168
buildsymbols:
178
169
ifdef MOZ_CRASHREPORTER
 
170
ifdef USE_ELF_HACK
 
171
        $(MAKE) -C $(MOZ_BUILD_APP)/installer elfhack
 
172
endif
179
173
        echo building symbol store
180
 
        $(RM) -rf $(DIST)/crashreporter-symbols
181
 
        $(RM) -f "$(DIST)/$(SYMBOL_ARCHIVE_BASENAME).zip"
 
174
        $(RM) -r $(DIST)/crashreporter-symbols
 
175
        $(RM) "$(DIST)/$(SYMBOL_ARCHIVE_BASENAME).zip"
182
176
        $(NSINSTALL) -D $(DIST)/crashreporter-symbols
183
177
        $(PYTHON) $(topsrcdir)/toolkit/crashreporter/tools/symbolstore.py \
184
178
          $(MAKE_SYM_STORE_ARGS)                                          \
192
186
        cd $(DIST)/crashreporter-symbols && \
193
187
          zip -r9D "../$(PKG_PATH)$(SYMBOL_FULL_ARCHIVE_BASENAME).zip" .
194
188
        cd $(DIST)/crashreporter-symbols && \
195
 
          zip -r9D "../$(PKG_PATH)$(SYMBOL_ARCHIVE_BASENAME).zip" . -i "*.sym"
196
 
else
197
 
ifdef WINCE
198
 
ifdef SYMBOLSTORE_PATH
199
 
        echo building symbol store with symstore.exe
200
 
        $(RM) -rf $(DIST)/symbols
201
 
        $(RM) -f "$(DIST)/$(SYMBOL_ARCHIVE_BASENAME).zip"
202
 
        $(NSINSTALL) -D $(DIST)/symbols
203
 
        $(SYMBOLSTORE_PATH) add -r -f "$(subst /,\,$(shell pwd -W))\*.PDB" \
204
 
          -s $(DIST)/symbols/ -t "$(MOZ_PKG_APPNAME)" -v "$(MOZ_PKG_VERSION)"
205
 
        echo packing symbols
206
 
        $(NSINSTALL) -D $(DIST)/$(PKG_PATH)
207
 
        cd $(DIST)/symbols && \
208
 
          zip -r9D "../$(PKG_PATH)$(SYMBOL_ARCHIVE_BASENAME).zip" .
209
 
endif # SYMBOLSTORE_PATH
210
 
endif # WINCE
 
189
        grep "sym" $(SYMBOL_INDEX_NAME) > $(SYMBOL_INDEX_NAME).tmp && \
 
190
          mv $(SYMBOL_INDEX_NAME).tmp $(SYMBOL_INDEX_NAME)
 
191
        cd $(DIST)/crashreporter-symbols && \
 
192
          zip -r9D "../$(PKG_PATH)$(SYMBOL_ARCHIVE_BASENAME).zip" . -i "*.sym" -i "*.txt"
211
193
endif # MOZ_CRASHREPORTER
212
194
 
213
195
uploadsymbols:
214
196
ifdef MOZ_CRASHREPORTER
215
 
        $(SHELL) $(topsrcdir)/toolkit/crashreporter/tools/upload_symbols.sh "$(DIST)/$(PKG_PATH)$(SYMBOL_FULL_ARCHIVE_BASENAME).zip"
 
197
        $(SHELL) $(topsrcdir)/toolkit/crashreporter/tools/upload_symbols.sh $(SYMBOL_INDEX_NAME) "$(DIST)/$(PKG_PATH)$(SYMBOL_FULL_ARCHIVE_BASENAME).zip"
216
198
endif
217
199
 
218
200
# defined in package-name.mk