michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: # You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: ifdef MOZ_METRO michael@0: GENERATED_DIRS = $(DIST)/bin/metro/chrome michael@0: endif michael@0: michael@0: include $(topsrcdir)/config/rules.mk michael@0: michael@0: exclude_files = \ michael@0: test \ michael@0: install.rdf \ michael@0: bootstrap.js \ michael@0: icon.png \ michael@0: icon64.png \ michael@0: $(NULL) michael@0: michael@0: $(FINAL_TARGET)/chrome/pdfjs.manifest: $(GLOBAL_DEPS) michael@0: printf 'manifest pdfjs/chrome.manifest' > $@ michael@0: michael@0: libs:: $(FINAL_TARGET)/chrome/pdfjs.manifest michael@0: $(PYTHON) $(topsrcdir)/config/nsinstall.py \ michael@0: $(srcdir)/pdfjs \ michael@0: $(foreach exclude,$(exclude_files), -X $(srcdir)/pdfjs/$(exclude)) \ michael@0: $(FINAL_TARGET)/chrome michael@0: $(call py_action,buildlist,$(FINAL_TARGET)/chrome.manifest 'manifest chrome/pdfjs.manifest') michael@0: michael@0: ifdef NIGHTLY_BUILD michael@0: $(FINAL_TARGET)/chrome/shumway.manifest: $(GLOBAL_DEPS) michael@0: printf 'manifest shumway/chrome.manifest' > $@ michael@0: michael@0: libs:: $(FINAL_TARGET)/chrome/shumway.manifest michael@0: $(PYTHON) $(topsrcdir)/config/nsinstall.py \ michael@0: $(srcdir)/shumway \ michael@0: $(foreach exclude,$(exclude_files), -X $(srcdir)/shumway/$(exclude)) \ michael@0: $(FINAL_TARGET)/chrome michael@0: $(call py_action,buildlist,$(FINAL_TARGET)/chrome.manifest 'manifest chrome/shumway.manifest') michael@0: endif michael@0: michael@0: ifdef MOZ_METRO michael@0: ifdef NIGHTLY_BUILD michael@0: $(DIST)/bin/metro/chrome/pdfjs.manifest: $(GLOBAL_DEPS) michael@0: printf 'manifest pdfjs/chrome.manifest' > $@ michael@0: michael@0: libs:: $(DIST)/bin/metro/chrome/pdfjs.manifest michael@0: $(PYTHON) $(topsrcdir)/config/nsinstall.py \ michael@0: $(srcdir)/pdfjs \ michael@0: $(foreach exclude,$(exclude_files), -X $(srcdir)/pdfjs/$(exclude)) \ michael@0: $(DIST)/bin/metro/chrome michael@0: $(call py_action,buildlist,$(DIST)/bin/metro/chrome.manifest 'manifest chrome/pdfjs.manifest') michael@0: michael@0: $(DIST)/bin/metro/chrome/shumway.manifest: $(GLOBAL_DEPS) michael@0: printf 'manifest shumway/chrome.manifest' > $@ michael@0: michael@0: libs:: $(DIST)/bin/metro/chrome/shumway.manifest michael@0: $(PYTHON) $(topsrcdir)/config/nsinstall.py \ michael@0: $(srcdir)/shumway \ michael@0: $(foreach exclude,$(exclude_files), -X $(srcdir)/shumway/$(exclude)) \ michael@0: $(DIST)/bin/metro/chrome michael@0: $(call py_action,buildlist,$(DIST)/bin/metro/chrome.manifest 'manifest chrome/shumway.manifest') michael@0: endif michael@0: endif