Commit cd43165c authored by Yury's avatar Yury
Browse files

Bug 714712 - Part 4: Add built-in PDF support to Firefox with PDF.js. r=dtownsend

parent 7221ab2e
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -44,7 +44,10 @@ DISTROEXT = $(call core_abspath,$(DIST))/bin/distribution/extensions

include $(DEPTH)/config/autoconf.mk

DIRS = {972ce4c6-7e08-4474-a285-3208198ce6fd}
DIRS = \
  {972ce4c6-7e08-4474-a285-3208198ce6fd} \
  uriloader@pdf.js \
  $(NULL)

include $(topsrcdir)/config/rules.mk

+30 −0
Original line number Diff line number Diff line
# 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/.

DEPTH      = ../../../../..
topsrcdir  = @top_srcdir@
srcdir     = @srcdir@
VPATH      = @srcdir@

APPEXT = $(call core_abspath,$(DIST))/bin/extensions

TEST_DIRS += test

include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk

# Using the extension-files as an extension files whitelist to avoid noise
# in the xpi file such as MOZILLA.readme, install.pdf.in and this make file.
FILES := $(shell cat $(srcdir)/extension-files)

libs::
	$(PYTHON) $(MOZILLA_DIR)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) $(srcdir)/install.rdf.in > install.rdf
	$(ZIP) -9X $(APPEXT)/uriloader@pdf.js.xpi install.rdf
	cd $(call core_abspath,$(srcdir)) && \
	$(ZIP) -9X $(APPEXT)/uriloader@pdf.js.xpi $(FILES)

install::
	$(SYSINSTALL) $(IFLAGS1) $(APPEXT)/uriloader@pdf.js.xpi $(DESTDIR)$(mozappdir)/extensions

GARBAGE += install.rdf
+1 −0
Original line number Diff line number Diff line
@@ -456,6 +456,7 @@
@BINPATH@/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
@BINPATH@/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/icon.png
@BINPATH@/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/preview.png
@BINPATH@/extensions/uriloader@pdf.js.xpi
#ifdef SHIP_FEEDBACK
@BINPATH@/distribution/extensions/testpilot@labs.mozilla.com.xpi
#endif