toolkit/content/Makefile.in
author Georg Fritzsche <georg.fritzsche@googlemail.com>
Fri, 29 Jan 2016 18:42:51 +0100
changeset 282352 e8d8faa2595513aca6258f0d9e224f86c6ecd01e
parent 257129 38f81480762d6c29047fa7d56cc9a3182152c48c
child 282433 0512df61134e23991be14b08307edd16c007a74e
permissions -rw-r--r--
Bug 1241111 - Allow overriding SOURCE_REV_URL, SOURCE_REPO, SOURCE_CHANGESET. r=ted

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

DEFINES += \
  -DCXXFLAGS='$(CXXFLAGS)' \
  -DCPPFLAGS='$(CPPFLAGS)' \
  $(NULL)

ifdef MOZ_SOURCE_CHANGESET
MOZ_SOURCE_STAMP = $(MOZ_SOURCE_CHANGESET)
else
MOZ_SOURCE_STAMP ?= $(shell hg -R $(topsrcdir) parent --template='{node}\n' 2>/dev/null)
endif
ifdef MOZ_SOURCE_STAMP
DEFINES += -DSOURCE_CHANGESET='$(MOZ_SOURCE_STAMP)'
endif

ifdef MOZ_INCLUDE_SOURCE_INFO
ifdef MOZ_SOURCE_REPO
source_repo = $(MOZ_SOURCE_REPO)
else
source_repo ?= $(call getSourceRepo)
endif
ifneq (,$(filter http%,$(source_repo)))
  DEFINES += -DSOURCE_REPO='$(source_repo)'
else ifneq (,$(strip $(source_repo)))
  DEFINES += -DSOURCE_GIT_COMMIT='$(source_repo)'
endif
endif