[Pkg-javascript-commits] [pdf.js] 01/02: PDF.js version 1.0.1208

David Prévot taffit at moszumanska.debian.org
Sat Jun 20 21:36:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v1.0.1209
in repository pdf.js.

commit 0a7b12a8b66058832d26f32e820142ca4e9629a2
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Sat Mar 14 13:42:43 2015 -0500

    PDF.js version 1.0.1208
---
 extensions/b2g/viewer.html | 4 ++--
 extensions/b2g/viewer.js   | 4 ++--
 make.js                    | 8 ++------
 3 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/extensions/b2g/viewer.html b/extensions/b2g/viewer.html
index 573d046..6c1da58 100644
--- a/extensions/b2g/viewer.html
+++ b/extensions/b2g/viewer.html
@@ -22,8 +22,8 @@ limitations under the License.
 
 
     <link rel="stylesheet" href="viewer.css"/>
-    <script src="../build/pdf.js"></script>
-    <script src="../build/pdf_viewer.js"></script>
+    <script src="./bower_compoments/pdfjs_dist/build/pdf.js"></script>
+    <script src="./bower_compoments/pdfjs_dist/web/pdf_viewer.js"></script>
     <script src="/shared/js/async_storage.js"></script>
 
     <script src="viewer.js"></script>
diff --git a/extensions/b2g/viewer.js b/extensions/b2g/viewer.js
index fdf049c..7951174 100644
--- a/extensions/b2g/viewer.js
+++ b/extensions/b2g/viewer.js
@@ -17,8 +17,8 @@
 
 PDFJS.useOnlyCssZoom = true;
 PDFJS.disableTextLayer = true;
-PDFJS.workerSrc = '../build/pdf.worker.js';
-PDFJS.cMapUrl = '../web/cmaps/';
+PDFJS.workerSrc = './bower_components/pdfjs_dist/build/pdf.worker.js';
+PDFJS.cMapUrl = './bower_components/pdfjs_dist/cmaps/';
 PDFJS.cMapPacked = true;
 
 var DEFAULT_SCALE_DELTA = 1.1;
diff --git a/make.js b/make.js
index 3ebe1e5..e64f940 100644
--- a/make.js
+++ b/make.js
@@ -986,7 +986,7 @@ target.b2g = function() {
   mkdir('-p', B2G_BUILD_CONTENT_DIR);
   mkdir('-p', B2G_BUILD_CONTENT_DIR + BUILD_DIR);
   mkdir('-p', B2G_BUILD_CONTENT_DIR + '/web');
-  mkdir('-p', B2G_BUILD_CONTENT_DIR + '/web/cmaps');
+  mkdir('-p', B2G_BUILD_CONTENT_DIR + '/web/bower_components');
 
   var setup = {
     defines: defines,
@@ -995,11 +995,7 @@ target.b2g = function() {
       ['extensions/b2g/viewer.html', B2G_BUILD_CONTENT_DIR + '/web'],
       ['extensions/b2g/viewer.css', B2G_BUILD_CONTENT_DIR + '/web'],
       ['extensions/b2g/viewer.js', B2G_BUILD_CONTENT_DIR + '/web'],
-      ['external/bcmaps/*', B2G_BUILD_CONTENT_DIR + '/web/cmaps']
-    ],
-    preprocess: [
-      ['build/components/pdf_viewer.js', B2G_BUILD_CONTENT_DIR + '/build'],
-      [BUILD_TARGETS, B2G_BUILD_CONTENT_DIR + BUILD_DIR]
+      ['build/dist/*', B2G_BUILD_CONTENT_DIR + '/web/bower_components']
     ]
   };
   builder.build(setup);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list