suite/extensions/Makefile.in
author Tom Prince <mozilla@hocat.ca>
Wed, 03 Jan 2018 16:40:38 -0700
changeset 29890 678d7a3b822aa27c2d7371b7b9596e89fb753cda
parent 29262 c0f7fd94ed10f542f467a1e32cba21ec8b02af0d
child 31766 21774e0f8d4d042adb28b4d7b9efd57f74b1888a
permissions -rw-r--r--
Bug 1423801: Use comm-central sccache buckets; r?Fallen MozReview-Commit-ID: Hiuze3ySTh9

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

DISTROEXT = $(ABS_DIST)/bin/distribution/extensions

include $(moztopsrcdir)/config/rules.mk

# If adding extra extensions here, check that EXTRA_ARGS defined below won't
# affect them unintentionally.
EXTENSIONS = \
  $(NULL)

# We are in release mode, we don't want to ship the debug file.
ifndef MOZ_DEBUG
EXTRA_ARGS = -x content/debug.html
endif

DEFINES += \
  -DMOZ_APP_VERSION=$(MOZ_APP_VERSION) \
  -DMOZ_APP_MAXVERSION=$(MOZ_APP_MAXVERSION) \
  $(NULL)

define _INSTALL_EXTENSION
$(NSINSTALL) -D $(dir) && \
  $(PYTHON) -m mozbuild.action.preprocessor $(DEFINES) $(ACDEFINES) $(srcdir)/$(dir)/install.rdf.in -o $(dir)/install.rdf && \
  cd $(dir) && \
  $(ZIP) -r9XD $(DISTROEXT)/$(dir).xpi install.rdf && \
  cd $(abspath $(srcdir)/$(dir)) && \
  $(ZIP) -r9XD $(DISTROEXT)/$(dir).xpi * -x install.rdf.in $(EXTRA_ARGS)

endef # do not remove the blank line!

libs::
	$(NSINSTALL) -D $(DISTROEXT)
	$(foreach dir,$(EXTENSIONS),$(_INSTALL_EXTENSION))