Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Unified Diff: gyp/pdfviewer.gyp

Issue 18042005: isolate podofo to prepare for native parser, autogenerate PDF API during build (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/PdfViewer/spec2def.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/pdfviewer.gyp
===================================================================
--- gyp/pdfviewer.gyp (revision 9825)
+++ gyp/pdfviewer.gyp (working copy)
@@ -23,9 +23,46 @@
'../experimental/PdfViewer/SkPdfFont.cpp',
'../experimental/PdfViewer/SkPdfParser.cpp',
'../experimental/PdfViewer/SkPdfUtils.cpp',
- '../experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfPodofoMapper_autogen.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',
],
+ 'actions': [
+ {
+ 'action_name': 'spec2def',
+ 'inputs': [
+ '../experimental/PdfViewer/spec2def.py',
+ '../experimental/PdfViewer/PdfReference-okular-1.txt',
+ ],
+ 'outputs': [
+ '../experimental/PdfViewer/autogen/pdfspec_autogen.py',
+ ],
+ 'action': ['python', '../experimental/PdfViewer/spec2def.py', '../experimental/PdfViewer/PdfReference-okular-1.txt', '../experimental/PdfViewer/autogen/pdfspec_autogen.py'],
+ },
+ {
+ 'action_name': 'generate_code',
+ 'inputs': [
+ '../experimental/PdfViewer/generate_code.py',
+ '../experimental/PdfViewer/autogen/pdfspec_autogen.py',
+ ],
+ 'outputs': [
+ '../experimental/PdfViewer/pdfparser/autogen/SkPdfEnums_autogen.h',
+ '../experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfMapper_autogen.cpp',
+ '../experimental/PdfViewer/pdfparser/podofo/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
+ ],
+ 'action': ['python', '../experimental/PdfViewer/generate_code.py', '../experimental/PdfViewer/pdfparser/'],
+ },
+ ],
'include_dirs': [
'../third_party/externals/podofo/src/base',
'../third_party/externals/podofo/src',
@@ -33,10 +70,9 @@
'../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',
@@ -66,12 +102,12 @@
'../experimental/PdfViewer/pdf_viewer_main.cpp',
],
'include_dirs': [
- '../third_party/externals/podofo/src/base',
- '../third_party/externals/podofo/src',
- '../third_party/externals/podofo',
'../tools',
'../experimental/PdfViewer',
- '../experimental/PdfViewer/autogen',
+ '../experimental/PdfViewer/pdfparser',
+ '../experimental/PdfViewer/pdfparser/autogen',
+ '../experimental/PdfViewer/pdfparser/podofo',
+ '../experimental/PdfViewer/pdfparser/podofo/autogen',
],
'dependencies': [
'core.gyp:core',
« no previous file with comments | « experimental/PdfViewer/spec2def.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698