addon-sdk/Makefile.in
author Nathan Froyd <froydnj@gmail.com>
Tue, 09 Aug 2016 18:10:19 -0400
changeset 308834 c8be3efb34863ed1b532536c3cc77ad46340d497
parent 291794 42ba1f78bde5d7f9cdb9decfb69a8734afca07a8
child 309526 5dd2ba45526f0c5ac61ec69ca5643504f424c17a
permissions -rw-r--r--
Bug 1290957 - ensure MOZ_AUTOMATION builds require a cargo with --frozen support; r=chmanchester We want to ensure that our automation builds don't pull in libraries from crates.io, and we need --frozen support in cargo to do that. If we don't have that support, we shouldn't build.

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

TESTADDONS = source/test/addons
ADDONSRC = $(srcdir)/$(TESTADDONS)

sinclude $(topsrcdir)/config/rules.mk

# This can switch to just zipping the files when native jetpacks land
$(TESTADDONS)/%.xpi: FORCE $(call mkdir_deps,$(CURDIR)/$(TESTADDONS)) $(ADDONSRC)/%
	$(PYTHON) $(srcdir)/source/bin/cfx xpi --no-strip-xpi --pkgdir=$(lastword $^) --output-file=$@

TEST_FILES = \
  $(srcdir)/source/app-extension \
  $(srcdir)/source/bin \
  $(srcdir)/source/python-lib \
  $(srcdir)/source/test \
  $(srcdir)/source/package.json \
  $(srcdir)/source/mapping.json \
  $(NULL)

# Remove this once the test harness uses the APIs built into Firefox
TEST_FILES += $(srcdir)/source/lib

PKG_STAGE = $(DIST)/test-stage

stage-tests-package:: $(TEST_FILES)
	$(INSTALL) $^ $(PKG_STAGE)/jetpack