aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-10 17:09:50 +0000
committerGravatar edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-10 17:09:50 +0000
commit571c70b95f56e22b5a7d6f4f288aa6c9a925a64f (patch)
treee0d3377d7e373350706d46722af8fe050abda9d3 /gyp
parent89fa4b9ee6bc6039781acbdb6c097a41f894ea1c (diff)
Native PDF parser implementation - don't try it on pdfs that are not generated by skia, Crome Print Preview or Chrome Save As Pdf - it will crash as mising xref, pdfs with updates, and other features are not supported yer.
Review URL: https://codereview.chromium.org/18323019 git-svn-id: http://skia.googlecode.com/svn/trunk@9962 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp')
-rw-r--r--gyp/pdfviewer.gyp34
1 files changed, 11 insertions, 23 deletions
diff --git a/gyp/pdfviewer.gyp b/gyp/pdfviewer.gyp
index 55e6b1b645..95e0421ccb 100644
--- a/gyp/pdfviewer.gyp
+++ b/gyp/pdfviewer.gyp
@@ -24,16 +24,11 @@
'../experimental/PdfViewer/SkPdfParser.cpp',
'../experimental/PdfViewer/SkPdfUtils.cpp',
#'../experimental/PdfViewer/SkPdfNYI.cpp',
- #podofo
- '../experimental/PdfViewer/pdfparser/podofo/SkPdfPodofoTokenizer.cpp',
- '../experimental/PdfViewer/pdfparser/podofo/SkPodofoParsedPDF.cpp',
- '../experimental/PdfViewer/pdfparser/podofo/SkPodofoUtils.cpp',
- '../experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfMapper_autogen.cpp',
- '../experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfHeaders_autogen.cpp',
- #native TODO
-
- # libraries.cc is generated by the js2c action below.
- #'<(INTERMEDIATE_DIR)/libraries.cc',
+ '../experimental/PdfViewer/pdfparser/native/SkPdfObject.cpp',
+ '../experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp',
+ '../experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp',
+ '../experimental/PdfViewer/pdfparser/native/autogen/SkPdfMapper_autogen.cpp',
+ '../experimental/PdfViewer/pdfparser/native/autogen/SkPdfHeaders_autogen.cpp',
],
'actions': [
{
@@ -55,8 +50,8 @@
],
'outputs': [
'../experimental/PdfViewer/pdfparser/autogen/SkPdfEnums_autogen.h',
- '../experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfMapper_autogen.cpp',
- '../experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfHeaders_autogen.cpp',
+ '../experimental/PdfViewer/pdfparser/native/autogen/SkPdfMapper_autogen.cpp',
+ '../experimental/PdfViewer/pdfparser/native/autogen/SkPdfHeaders_autogen.cpp',
# TODO(edisonn): ok, there are many more files here, which we should list but since
# any change in the above should trigger a change here, we should be fine normally
],
@@ -64,15 +59,12 @@
},
],
'include_dirs': [
- '../third_party/externals/podofo/src/base',
- '../third_party/externals/podofo/src',
- '../third_party/externals/podofo',
'../tools',
'../experimental/PdfViewer',
'../experimental/PdfViewer/pdfparser',
'../experimental/PdfViewer/pdfparser/autogen',
- '../experimental/PdfViewer/pdfparser/podofo',
- '../experimental/PdfViewer/pdfparser/podofo/autogen',
+ '../experimental/PdfViewer/pdfparser/native',
+ '../experimental/PdfViewer/pdfparser/native/autogen',
],
'dependencies': [
'core.gyp:core',
@@ -81,15 +73,11 @@
'pdf.gyp:pdf',
'ports.gyp:ports',
'tools.gyp:picture_utils',
- '../third_party/externals/podofo/podofo.gyp:podofo',
],
'link_settings': {
'libraries': [
],
},
- 'defines': [
- 'BUILDING_PODOFO',
- ],
},
{
'target_name': 'pdfviewer',
@@ -106,8 +94,8 @@
'../experimental/PdfViewer',
'../experimental/PdfViewer/pdfparser',
'../experimental/PdfViewer/pdfparser/autogen',
- '../experimental/PdfViewer/pdfparser/podofo',
- '../experimental/PdfViewer/pdfparser/podofo/autogen',
+ '../experimental/PdfViewer/pdfparser/native',
+ '../experimental/PdfViewer/pdfparser/native/autogen',
],
'dependencies': [
'core.gyp:core',