summaryrefslogtreecommitdiffstats
path: root/addon-sdk/Makefile.in
blob: 4ef3e5a73cd56787952d9d4e27f73f1e1b271d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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)

include $(topsrcdir)/config/rules.mk

# This can switch to just zipping the files when native jetpacks land
%.xpi: FORCE
	$(PYTHON) $(srcdir)/source/bin/cfx xpi --no-strip-xpi --pkgdir=$(ADDONSRC)/$* --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