toolkit/xre/Makefile.in
author Mike Conley <mconley@mozilla.com>
Fri, 10 Apr 2015 13:45:22 -0400
changeset 257771 40a21375b99be21a55df2a7c415ccf240715922f
parent 256872 6288bbcd0ab2a8bee3092327d2bd5158f076ff9d
child 277802 38f81480762d6c29047fa7d56cc9a3182152c48c
permissions -rw-r--r--
Bug 1152864 - Disable unsafe CPOW warnings when running mochitests by default, and add option to re-enable. r=ahal. --enable-cpow-warnings can now be passed when running a mochitest to re-enable the warnings, should one wish to do that.

# -*- makefile -*-
# vim:set ts=8 sw=8 sts=8 noet:

# 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/.

USE_RCS_MK=1
include $(topsrcdir)/config/makefiles/makeutils.mk

milestone_txt = $(topsrcdir)/config/milestone.txt

include $(topsrcdir)/config/rules.mk

# Should version be optional or required ?
TOOLKIT_EM_VERSION=$(shell $(PYTHON) $(topsrcdir)/python/mozbuild/mozbuild/milestone.py --topsrcdir=$(topsrcdir))
$(call warnIfEmpty,TOOLKIT_EM_VERSION)

# Valid if null: {warn,error}IfEmpty
DEFINES += -DTOOLKIT_EM_VERSION='"$(TOOLKIT_EM_VERSION)"'

MOZ_SOURCE_STAMP ?= $(firstword $(shell hg -R $(topsrcdir) parent --template='{node|short}\n' 2>/dev/null))
ifdef MOZ_SOURCE_STAMP

  INIARGS = --sourcestamp=$(MOZ_SOURCE_STAMP)

  ifdef MOZ_INCLUDE_SOURCE_INFO
    source_repo := $(call getSourceRepo)

    # extra sanity check for old versions of hg, no showconfig support
    ifneq (,$(filter http%,$(source_repo)))
      INIARGS += --sourcerepo=$(source_repo)
    endif
  endif

endif # MOZ_SOURCE_STAMP

GRE_BUILDID   := $(strip $(firstword $(shell cat $(DEPTH)/config/buildid 2>/dev/null)))
$(call errorIfEmpty,GRE_MILESTONE GRE_BUILDID)

DEFINES += -DGRE_BUILDID=$(GRE_BUILDID)

$(srcdir)/nsAppRunner.cpp: $(DEPTH)/config/buildid $(milestone_txt)

platform.ini: FORCE
	$(PYTHON) $(srcdir)/make-platformini.py --buildid=$(GRE_BUILDID) $(INIARGS) $(milestone_txt) > $@

GARBAGE += platform.ini

# Moving this out of libs breaks packaging.
libs:: platform.ini
	$(INSTALL) $^ $(DIST)/bin