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