browser/metro/Makefile.in
author Marina Samuel <msamuel@mozilla.com>
Mon, 21 Oct 2013 13:11:32 -0400
changeset 151544 40f8ff3f63b96f0fd60b571c4c559246809a47d8
parent 151543 418d0fbd33b055d86cb7907142b8945118c217b2
child 153495 02cd5a0de5da84403267498f330e51fd8ea3347d
permissions -rw-r--r--
Bug 925467: Revert push to wrong patch. 418d0fbd33b0. r=me

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

include $(topsrcdir)/config/rules.mk

#########################################
# application.ini

ifdef MOZILLA_OFFICIAL
DEFINES += -DMOZILLA_OFFICIAL
endif

GRE_MILESTONE := $(shell tail -n 1 $(topsrcdir)/config/milestone.txt 2>/dev/null || tail -1 $(topsrcdir)/config/milestone.txt)
GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid)
DEFINES += -DGRE_MILESTONE=$(GRE_MILESTONE) -DGRE_BUILDID=$(GRE_BUILDID)

# 'application.ini' breaks firefox build config. So we use something different.
metroapp.ini: metroapp.ini.in $(DEPTH)/config/buildid $(topsrcdir)/config/milestone.txt
	$(RM) "metroapp.ini"
	$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $< > $@

libs:: metroapp.ini
	$(INSTALL) metroapp.ini $(FINAL_TARGET)

#########################################

GARBAGE += metroapp.ini