toolkit/xre/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/xre/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     1.4 +# -*- makefile -*-
     1.5 +# vim:set ts=8 sw=8 sts=8 noet:
     1.6 +
     1.7 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.8 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
    1.10 +
    1.11 +USE_RCS_MK=1
    1.12 +include $(topsrcdir)/config/makefiles/makeutils.mk
    1.13 +
    1.14 +milestone_txt = $(topsrcdir)/config/milestone.txt
    1.15 +
    1.16 +include $(topsrcdir)/config/rules.mk
    1.17 +
    1.18 +CXXFLAGS += $(TK_CFLAGS) $(MOZ_DBUS_CFLAGS) $(MOZ_DBUS_GLIB_CFLAGS)
    1.19 +
    1.20 +ifdef MOZ_WIDGET_GTK
    1.21 +CXXFLAGS += $(MOZ_PANGO_CFLAGS)
    1.22 +endif
    1.23 +
    1.24 +# Should version be optional or required ?
    1.25 +TOOLKIT_EM_VERSION=$(shell $(PERL) $(topsrcdir)/config/milestone.pl --topsrcdir=$(topsrcdir))
    1.26 +$(call warnIfEmpty,TOOLKIT_EM_VERSION)
    1.27 +
    1.28 +# Valid if null: {warn,error}IfEmpty
    1.29 +DEFINES += -DTOOLKIT_EM_VERSION='"$(TOOLKIT_EM_VERSION)"'
    1.30 +
    1.31 +MOZ_SOURCE_STAMP ?= $(firstword $(shell hg -R $(topsrcdir) parent --template='{node|short}\n' 2>/dev/null))
    1.32 +ifdef MOZ_SOURCE_STAMP
    1.33 +
    1.34 +  INIARGS = --sourcestamp=$(MOZ_SOURCE_STAMP)
    1.35 +
    1.36 +  source_repo := $(call getSourceRepo)
    1.37 +
    1.38 +  # extra sanity check for old versions of hg, no showconfig support
    1.39 +  ifneq (,$(filter http%,$(source_repo)))
    1.40 +    INIARGS += --sourcerepo=$(source_repo)
    1.41 +  endif
    1.42 +
    1.43 +endif # MOZ_SOURCE_STAMP
    1.44 +
    1.45 +GRE_BUILDID   := $(strip $(firstword $(shell cat $(DEPTH)/config/buildid 2>/dev/null)))
    1.46 +$(call errorIfEmpty,GRE_MILESTONE GRE_BUILDID)
    1.47 +
    1.48 +DEFINES += -DGRE_BUILDID=$(GRE_BUILDID)
    1.49 +
    1.50 +$(srcdir)/nsAppRunner.cpp: $(DEPTH)/config/buildid $(milestone_txt)
    1.51 +
    1.52 +platform.ini: FORCE
    1.53 +	$(PYTHON) $(srcdir)/make-platformini.py --buildid=$(GRE_BUILDID) $(INIARGS) $(milestone_txt) > $@
    1.54 +
    1.55 +GARBAGE += platform.ini
    1.56 +
    1.57 +libs:: platform.ini
    1.58 +	$(INSTALL) $^ $(DIST)/bin

mercurial