|
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 file, |
|
3 # You can obtain one at http://mozilla.org/MPL/2.0/. |
|
4 |
|
5 ifdef MOZ_METRO |
|
6 GENERATED_DIRS = $(DIST)/bin/metro/chrome |
|
7 endif |
|
8 |
|
9 include $(topsrcdir)/config/rules.mk |
|
10 |
|
11 exclude_files = \ |
|
12 test \ |
|
13 install.rdf \ |
|
14 bootstrap.js \ |
|
15 icon.png \ |
|
16 icon64.png \ |
|
17 $(NULL) |
|
18 |
|
19 $(FINAL_TARGET)/chrome/pdfjs.manifest: $(GLOBAL_DEPS) |
|
20 printf 'manifest pdfjs/chrome.manifest' > $@ |
|
21 |
|
22 libs:: $(FINAL_TARGET)/chrome/pdfjs.manifest |
|
23 $(PYTHON) $(topsrcdir)/config/nsinstall.py \ |
|
24 $(srcdir)/pdfjs \ |
|
25 $(foreach exclude,$(exclude_files), -X $(srcdir)/pdfjs/$(exclude)) \ |
|
26 $(FINAL_TARGET)/chrome |
|
27 $(call py_action,buildlist,$(FINAL_TARGET)/chrome.manifest 'manifest chrome/pdfjs.manifest') |
|
28 |
|
29 ifdef NIGHTLY_BUILD |
|
30 $(FINAL_TARGET)/chrome/shumway.manifest: $(GLOBAL_DEPS) |
|
31 printf 'manifest shumway/chrome.manifest' > $@ |
|
32 |
|
33 libs:: $(FINAL_TARGET)/chrome/shumway.manifest |
|
34 $(PYTHON) $(topsrcdir)/config/nsinstall.py \ |
|
35 $(srcdir)/shumway \ |
|
36 $(foreach exclude,$(exclude_files), -X $(srcdir)/shumway/$(exclude)) \ |
|
37 $(FINAL_TARGET)/chrome |
|
38 $(call py_action,buildlist,$(FINAL_TARGET)/chrome.manifest 'manifest chrome/shumway.manifest') |
|
39 endif |
|
40 |
|
41 ifdef MOZ_METRO |
|
42 ifdef NIGHTLY_BUILD |
|
43 $(DIST)/bin/metro/chrome/pdfjs.manifest: $(GLOBAL_DEPS) |
|
44 printf 'manifest pdfjs/chrome.manifest' > $@ |
|
45 |
|
46 libs:: $(DIST)/bin/metro/chrome/pdfjs.manifest |
|
47 $(PYTHON) $(topsrcdir)/config/nsinstall.py \ |
|
48 $(srcdir)/pdfjs \ |
|
49 $(foreach exclude,$(exclude_files), -X $(srcdir)/pdfjs/$(exclude)) \ |
|
50 $(DIST)/bin/metro/chrome |
|
51 $(call py_action,buildlist,$(DIST)/bin/metro/chrome.manifest 'manifest chrome/pdfjs.manifest') |
|
52 |
|
53 $(DIST)/bin/metro/chrome/shumway.manifest: $(GLOBAL_DEPS) |
|
54 printf 'manifest shumway/chrome.manifest' > $@ |
|
55 |
|
56 libs:: $(DIST)/bin/metro/chrome/shumway.manifest |
|
57 $(PYTHON) $(topsrcdir)/config/nsinstall.py \ |
|
58 $(srcdir)/shumway \ |
|
59 $(foreach exclude,$(exclude_files), -X $(srcdir)/shumway/$(exclude)) \ |
|
60 $(DIST)/bin/metro/chrome |
|
61 $(call py_action,buildlist,$(DIST)/bin/metro/chrome.manifest 'manifest chrome/shumway.manifest') |
|
62 endif |
|
63 endif |