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

Unified Diff: gyp/pdfviewer.gyp

Issue 17856004: refactoring for pdf viewer lib (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 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:
« 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