Index: gyp/pdfviewer.gyp |
=================================================================== |
--- gyp/pdfviewer.gyp (revision 9765) |
+++ gyp/pdfviewer.gyp (working copy) |
@@ -12,15 +12,19 @@ |
], |
'targets': [ |
{ |
- 'target_name': 'pdfviewer', |
- 'type': 'executable', |
+ 'target_name': 'libpdfviewer', |
+ 'type': 'static_library', |
'cflags': ['-fexceptions'], |
'cflags_cc': ['-fexceptions'], |
'cflags!': [ '-fno-exceptions' ], |
'cflags_cc!': [ '-fno-exceptions' ], |
'sources': [ |
- '../experimental/PdfViewer/pdf_viewer_main.cpp', |
- #'../experimental/PdfViewer/SkPdfFont.cpp', |
+ '../experimental/PdfViewer/SkPdfBasics.cpp', |
+ '../experimental/PdfViewer/SkPdfFont.cpp', |
+ '../experimental/PdfViewer/SkPdfParser.cpp', |
+ '../experimental/PdfViewer/SkPdfUtils.cpp', |
+ '../experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp', |
+ '../experimental/PdfViewer/autogen/SkPdfHeaders_autogen.cpp', |
], |
'include_dirs': [ |
'../third_party/externals/podofo/src/base', |
@@ -47,22 +51,31 @@ |
'BUILDING_PODOFO', |
], |
}, |
+ { |
+ 'target_name': 'pdfviewer', |
+ 'type': 'executable', |
+ 'cflags': ['-fexceptions'], |
+ 'cflags_cc': ['-fexceptions'], |
+ 'cflags!': [ '-fno-exceptions' ], |
+ 'cflags_cc!': [ '-fno-exceptions' ], |
+ 'sources': [ |
+ '../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', |
+ ], |
+ 'dependencies': [ |
+ 'core.gyp:core', |
+ 'images.gyp:images', |
+ 'libpdfviewer', |
+ ], |
+ }, |
], |
- 'conditions': [ |
- ['skia_os == "win"', |
- { |
- 'targets': [ |
- { |
- 'target_name': 'win_lcid', |
- 'type': 'executable', |
- 'sources': [ |
- '../tools/win_lcid.cpp', |
- ], |
- }, |
- ], |
- }, |
- ], |
- ], |
} |
# Local Variables: |