2013-02-20 04:18:59 +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/.
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2014-03-24 13:09:45 +04:00
|
|
|
ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
MOZ_B2G=1
|
|
|
|
else
|
|
|
|
MOZ_B2G=0
|
|
|
|
endif
|
|
|
|
|
2013-02-20 04:18:59 +04:00
|
|
|
libs::
|
2014-03-24 13:09:45 +04:00
|
|
|
$(PYTHON) $(srcdir)/copy_source.py $(topsrcdir) $(srcdir)/source/lib $(FINAL_TARGET)/modules/commonjs $(MOZ_B2G) >copy_source.mk
|
2013-02-20 04:18:59 +04:00
|
|
|
$(MAKE) -f copy_source.mk libs
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
TEST_FILES = \
|
|
|
|
source/app-extension \
|
|
|
|
source/bin \
|
|
|
|
source/python-lib \
|
|
|
|
source/test \
|
|
|
|
source/package.json \
|
|
|
|
source/mapping.json \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# Remove this once the test harness uses the APIs built into Firefox
|
|
|
|
TEST_FILES += source/lib
|
|
|
|
|
2014-05-16 06:55:00 +04:00
|
|
|
PKG_STAGE = $(DIST)/test-stage
|
2013-02-20 04:18:59 +04:00
|
|
|
|
|
|
|
stage-tests-package:: $(TEST_FILES)
|
|
|
|
$(INSTALL) $^ $(PKG_STAGE)/jetpack
|