2 # vim:set ts=8 sw=8 sts=8 noet:
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 include $(topsrcdir
)/config
/makefiles
/makeutils.mk
11 milestone_txt
= $(topsrcdir
)/config
/milestone.txt
13 include $(topsrcdir
)/config
/rules.mk
15 # Should version be optional or required ?
16 TOOLKIT_EM_VERSION
=$(shell $(PERL
) $(topsrcdir
)/config
/milestone.pl
--topsrcdir
=$(topsrcdir
))
17 $(call warnIfEmpty
,TOOLKIT_EM_VERSION
)
19 # Valid if null: {warn,error}IfEmpty
20 DEFINES
+= -DTOOLKIT_EM_VERSION
='"$(TOOLKIT_EM_VERSION)"'
22 MOZ_SOURCE_STAMP ?
= $(firstword $(shell hg
-R
$(topsrcdir
) parent
--template
='{node|short}\n' 2>/dev
/null
))
23 ifdef MOZ_SOURCE_STAMP
25 INIARGS
= --sourcestamp
=$(MOZ_SOURCE_STAMP
)
27 ifdef MOZILLA_OFFICIAL
28 source_repo
:= $(call getSourceRepo
)
30 # extra sanity check for old versions of hg, no showconfig support
31 ifneq (,$(filter http
%,$(source_repo
)))
32 INIARGS
+= --sourcerepo
=$(source_repo
)
36 endif # MOZ_SOURCE_STAMP
38 GRE_BUILDID
:= $(strip $(firstword $(shell cat
$(DEPTH
)/config
/buildid
2>/dev
/null
)))
39 $(call errorIfEmpty
,GRE_MILESTONE GRE_BUILDID
)
41 DEFINES
+= -DGRE_BUILDID
=$(GRE_BUILDID
)
43 $(srcdir)/nsAppRunner.
cpp: $(DEPTH
)/config
/buildid
$(milestone_txt
)
46 $(PYTHON
) $(srcdir)/make-platformini.py
--buildid
=$(GRE_BUILDID
) $(INIARGS
) $(milestone_txt
) > $@
48 GARBAGE
+= platform.ini
51 $(INSTALL
) $^
$(DIST
)/bin