2007-03-22 10:30:00 -07:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# 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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-02-15 14:00:12 -08:00
|
|
|
USE_RCS_MK := 1
|
|
|
|
include $(topsrcdir)/config/makefiles/makeutils.mk
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-09-22 11:00:38 -07:00
|
|
|
DEFINES += \
|
2013-12-02 13:34:21 -08:00
|
|
|
-DCXXFLAGS='$(CXXFLAGS)' \
|
|
|
|
-DCPPFLAGS='$(CPPFLAGS)' \
|
2008-09-22 11:00:38 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2013-12-02 13:34:21 -08:00
|
|
|
MOZ_SOURCE_STAMP ?= $(shell hg -R $(topsrcdir) parent --template='{node|short}\n' 2>/dev/null)
|
2009-12-20 06:25:48 -08:00
|
|
|
ifdef MOZ_SOURCE_STAMP
|
2013-12-02 13:34:21 -08:00
|
|
|
DEFINES += -DSOURCE_CHANGESET='$(MOZ_SOURCE_STAMP)'
|
2008-09-22 11:00:38 -07:00
|
|
|
endif
|
|
|
|
|
2014-08-07 18:29:39 -07:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
2013-02-15 14:00:12 -08:00
|
|
|
source_repo ?= $(call getSourceRepo)
|
|
|
|
ifneq (,$(filter http%,$(source_repo)))
|
2013-12-02 13:34:21 -08:00
|
|
|
DEFINES += -DSOURCE_REPO='$(source_repo)'
|
2013-09-04 20:31:31 -07:00
|
|
|
else ifneq (,$(strip $(source_repo)))
|
2013-12-02 13:34:21 -08:00
|
|
|
DEFINES += -DSOURCE_GIT_COMMIT='$(source_repo)'
|
2008-09-22 11:00:38 -07:00
|
|
|
endif
|
2014-08-07 18:29:39 -07:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2014-03-11 08:14:51 -07:00
|
|
|
ifndef BUILD_HOSTNAME
|
|
|
|
BUILD_HOSTNAME = $(shell hostname -s || hostname)
|
|
|
|
endif
|
2013-12-02 13:34:21 -08:00
|
|
|
DEFINES += -DBUILD_HOSTNAME='$(BUILD_HOSTNAME)'
|