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

This commit is contained in:
Yury 2012-03-21 22:25:06 -04:00
parent e7805ffe5a
commit d7808c6896
3 changed files with 39 additions and 5 deletions

View File

@ -35,16 +35,19 @@
#
# ***** END LICENSE BLOCK *****
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
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

View File

@ -0,0 +1,30 @@
# 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

View File

@ -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