Bug 771250 - Copy pdfjs extension to Firefox Metro. r=dtownsend
authorBrian R. Bondy <netzen@gmail.com>
Tue, 27 Nov 2012 15:32:00 -0500
changeset 114268 93ca9158ae3e2975714630d6a1daeb56fb538292
parent 114267 0e37dbe22164e4856a8312e3e486c40afa317162
child 114269 b19684c7502ac242fb6ef874f633066a9a0deb72
push id23913
push useremorley@mozilla.com
push dateWed, 28 Nov 2012 17:11:31 +0000
treeherdermozilla-central@17c267a881cf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdtownsend
bugs771250
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 771250 - Copy pdfjs extension to Firefox Metro. r=dtownsend
browser/extensions/Makefile.in
--- a/browser/extensions/Makefile.in
+++ b/browser/extensions/Makefile.in
@@ -8,16 +8,20 @@ srcdir     = @srcdir@
 VPATH      = @srcdir@
 
 CHROMEDIR = $(call core_abspath,$(FINAL_TARGET))/chrome
 
 include $(DEPTH)/config/autoconf.mk
 
 TEST_DIRS += pdfjs/test
 
+ifdef MOZ_METRO
+GENERATED_DIRS = $(DIST)/bin/metro/chrome
+endif
+
 include $(topsrcdir)/config/rules.mk
 
 exclude_files = \
   test \
   install.rdf \
   bootstrap.js \
   icon.png \
   icon64.png \
@@ -28,8 +32,21 @@ exclude_files = \
 
 libs:: $(FINAL_TARGET)/chrome/pdfjs.manifest
 	$(PYTHON) $(topsrcdir)/config/nsinstall.py \
 	  $(srcdir)/pdfjs \
           $(foreach exclude,$(exclude_files), -X $(srcdir)/pdfjs/$(exclude)) \
           $(FINAL_TARGET)/chrome
 	$(PYTHON) $(MOZILLA_DIR)/config/buildlist.py \
 	  $(FINAL_TARGET)/chrome.manifest "manifest chrome/pdfjs.manifest"
+
+ifdef MOZ_METRO
+$(DIST)/bin/metro/chrome/pdfjs.manifest: $(GLOBAL_DEPS)
+	printf "manifest pdfjs/chrome.manifest" > $@
+
+libs:: $(DIST)/bin/metro/chrome/pdfjs.manifest
+	$(PYTHON) $(topsrcdir)/config/nsinstall.py \
+	  $(srcdir)/pdfjs \
+          $(foreach exclude,$(exclude_files), -X $(srcdir)/pdfjs/$(exclude)) \
+          $(DIST)/bin/metro/chrome
+	$(PYTHON) $(MOZILLA_DIR)/config/buildlist.py \
+	  $(DIST)/bin/metro/chrome.manifest "manifest chrome/pdfjs.manifest"
+endif