|
1 # This Source Code Form is subject to the terms of the Mozilla Public |
|
2 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
4 |
|
5 include $(topsrcdir)/config/config.mk |
|
6 |
|
7 ifeq (gonk,$(MOZ_WIDGET_TOOLKIT)) |
|
8 MOZ_B2G=1 |
|
9 else |
|
10 MOZ_B2G=0 |
|
11 endif |
|
12 |
|
13 libs:: |
|
14 $(PYTHON) $(srcdir)/copy_source.py $(topsrcdir) $(srcdir)/source/lib $(FINAL_TARGET)/modules/commonjs $(MOZ_B2G) >copy_source.mk |
|
15 $(MAKE) -f copy_source.mk libs |
|
16 |
|
17 include $(topsrcdir)/config/rules.mk |
|
18 |
|
19 TEST_FILES = \ |
|
20 source/app-extension \ |
|
21 source/bin \ |
|
22 source/python-lib \ |
|
23 source/test \ |
|
24 source/package.json \ |
|
25 source/mapping.json \ |
|
26 $(NULL) |
|
27 |
|
28 # Remove this once the test harness uses the APIs built into Firefox |
|
29 TEST_FILES += source/lib |
|
30 |
|
31 PKG_STAGE = $(DIST)/test-package-stage |
|
32 |
|
33 stage-tests-package:: $(TEST_FILES) |
|
34 $(INSTALL) $^ $(PKG_STAGE)/jetpack |