calendar/lightning/Makefile.in
author Jorg K <jorgk@jorgk.com>
Mon, 18 Feb 2019 23:01:32 +0100
changeset 71573 47dc660a82c01e7cdf49a35a48f8a8b24a4ed73f
parent 59939 8bbed059de0aa3ffc85ecdee5467828b8bb26462
child 67373 57c9b9ee77c2d48b59aca9bf00447c09a704f240
child 71329 60a01eba3a0598bc0df08d93eee74338dbe0b065
child 74129 3d7849936d046192081e176094be893213ee4b0a
child 74723 a949a209b2e8584d23025803a380e7f47fc0d126
child 74724 3b7f8bb95fde3dfb91b5f1ff30beb7bd34f8880d
child 74773 c7b8d957a9c515f44e82ef46ed8fc5b3d57d5790
child 74981 c25bb835e58ff444c4ac7ee4f96197d36d5b2f6b
child 78797 9a507de4197d646d342a88433784eaa236548272
child 78875 d7b6c942b2d087550333d159afae149f22dbd55b
child 80088 03988a4d6b226ff5cf7738ecf2bfb7572d7217ab
child 80089 7bdb0fc6b8ab182c8e51014495257ba290230aaa
child 80111 0c91151a13cff81d0a8df5ca470f0a9c896d50a6
child 80112 233a34be1484306adec9f1a9d6ebd36ea1ffd0d3
child 80488 df8d58fb0bbaac3287abddba59b7a0cebacdfb1b
permissions -rw-r--r--
No bug - Pin mozilla-beta version (rev bce0092f646c, FIREFOX_66_0b9) for release. a=jorgk

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

# Calendar builders currently use STRIP_XPI to reduce the binary component in
# Lightning.

XPI_PKGNAME = lightning-$(LIGHTNING_VERSION).$(AB_CD)
XPI_VERSION = $(LIGHTNING_VERSION)

XPI_EM_ID = {e2fda1a4-762b-4020-b5ad-a41df1933103}

ifneq (,$(findstring a,$(LIGHTNING_VERSION)))
DEFINES += -DLIGHTNING_PRERELEASE_VERSION=1
endif

# Gecko milestone
GRE_MILESTONE = $(shell $(PYTHON) $(moztopsrcdir)/config/printconfigsetting.py $(DIST)/bin/platform.ini Build Milestone)
ifdef GRE_MILESTONE
DEFINES += -DGRE_MILESTONE=$(GRE_MILESTONE)
endif

# comm-central source repo and stamp
SOURCE_STAMP ?= $(firstword $(shell hg -R $(commtopsrcdir) parent --template='{node}\n' 2>/dev/null))
ifdef SOURCE_STAMP
DEFINES += -DSOURCE_STAMP='$(SOURCE_STAMP)'
endif

SOURCE_REPO := $(shell hg -R $(commtopsrcdir) showconfig paths.default 2>/dev/null | sed -e 's/^ssh:/http:/')
ifdef SOURCE_REPO
DEFINES += -DSOURCE_REPO='$(SOURCE_REPO)'
endif

# Mozilla source repo and stamps
MOZ_SOURCE_STAMP = $(firstword $(shell hg -R $(moztopsrcdir) parent --template='{node}\n' 2>/dev/null))
ifdef MOZ_SOURCE_STAMP
DEFINES += -DMOZ_SOURCE_STAMP='$(MOZ_SOURCE_STAMP)'
endif

MOZ_SOURCE_REPO := $(shell hg -R $(moztopsrcdir) showconfig paths.default 2>/dev/null | sed -e 's/^ssh:/http:/')
ifdef MOZ_SOURCE_REPO
DEFINES += -DMOZ_SOURCE_REPO='$(MOZ_SOURCE_REPO)'
endif

DEFINES += -DTHUNDERBIRD_VERSION=$(THUNDERBIRD_VERSION) \
           -DTHUNDERBIRD_MAXVERSION=$(THUNDERBIRD_MAXVERSION) \
           -DSEAMONKEY_VERSION=$(SEAMONKEY_VERSION) \
           -DSEAMONKEY_MAXVERSION=$(SEAMONKEY_MAXVERSION) \
           -DLIGHTNING_VERSION=$(LIGHTNING_VERSION) \
           -DXPI_EM_ID="$(XPI_EM_ID)" \
           $(NULL)

MOZ_BUILDID = $(shell $(PYTHON) $(moztopsrcdir)/config/printconfigsetting.py $(DIST)/bin/application.ini App BuildID)
DEFINES += -DMOZ_BUILDID=$(MOZ_BUILDID)

LOCALE_TOPDIR=$(commtopsrcdir)
LOCALE_RELATIVEDIR=calendar/lightning

include $(moztopsrcdir)/config/rules.mk
include $(srcdir)/versions.mk
include $(srcdir)/lightning-tests.mk

ident:
	@printf 'comm_revision '
	@$(PYTHON) $(moztopsrcdir)/config/printconfigsetting.py \
	    $(FINAL_TARGET)/app.ini App SourceStamp
	@printf 'moz_revision '
	@$(PYTHON) $(moztopsrcdir)/config/printconfigsetting.py \
	    $(FINAL_TARGET)/app.ini Build SourceStamp
	@printf 'buildid '
	@$(PYTHON) $(moztopsrcdir)/config/printconfigsetting.py \
	    $(FINAL_TARGET)/app.ini App BuildID