toolkit/xre/Makefile.in

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial