OLD | NEW |
1 # GYP file to build pdfviewer. | 1 # GYP file to build pdfviewer. |
2 # | 2 # |
3 # To build on Linux: | 3 # To build on Linux: |
4 # ./gyp_skia pdfviewer.gyp && make pdfviewer | 4 # ./gyp_skia pdfviewer.gyp && make pdfviewer |
5 # | 5 # |
6 { | 6 { |
7 'variables': { | 7 'variables': { |
8 'skia_warnings_as_errors': 0, | 8 'skia_warnings_as_errors': 0, |
9 }, | 9 }, |
10 'includes': [ | 10 'includes': [ |
11 'apptype_console.gypi', | 11 'apptype_console.gypi', |
12 ], | 12 ], |
13 'targets': [ | 13 'targets': [ |
14 { | 14 { |
15 'target_name': 'pdfviewer', | 15 'target_name': 'libpdfviewer', |
16 'type': 'executable', | 16 'type': 'static_library', |
17 'cflags': ['-fexceptions'], | 17 'cflags': ['-fexceptions'], |
18 'cflags_cc': ['-fexceptions'], | 18 'cflags_cc': ['-fexceptions'], |
19 'cflags!': [ '-fno-exceptions' ], | 19 'cflags!': [ '-fno-exceptions' ], |
20 'cflags_cc!': [ '-fno-exceptions' ], | 20 'cflags_cc!': [ '-fno-exceptions' ], |
21 'sources': [ | 21 'sources': [ |
22 '../experimental/PdfViewer/pdf_viewer_main.cpp', | 22 '../experimental/PdfViewer/SkPdfBasics.cpp', |
23 #'../experimental/PdfViewer/SkPdfFont.cpp', | 23 '../experimental/PdfViewer/SkPdfFont.cpp', |
| 24 '../experimental/PdfViewer/SkPdfParser.cpp', |
| 25 '../experimental/PdfViewer/SkPdfUtils.cpp', |
| 26 '../experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp', |
| 27 '../experimental/PdfViewer/autogen/SkPdfHeaders_autogen.cpp', |
24 ], | 28 ], |
25 'include_dirs': [ | 29 'include_dirs': [ |
26 '../third_party/externals/podofo/src/base', | 30 '../third_party/externals/podofo/src/base', |
27 '../third_party/externals/podofo/src', | 31 '../third_party/externals/podofo/src', |
28 '../third_party/externals/podofo', | 32 '../third_party/externals/podofo', |
29 '../tools', | 33 '../tools', |
30 '../experimental/PdfViewer', | 34 '../experimental/PdfViewer', |
31 '../experimental/PdfViewer/autogen', | 35 '../experimental/PdfViewer/autogen', |
32 ], | 36 ], |
33 'dependencies': [ | 37 'dependencies': [ |
34 'core.gyp:core', | 38 'core.gyp:core', |
35 'effects.gyp:effects', | 39 'effects.gyp:effects', |
36 'images.gyp:images', | 40 'images.gyp:images', |
37 'pdf.gyp:pdf', | 41 'pdf.gyp:pdf', |
38 'ports.gyp:ports', | 42 'ports.gyp:ports', |
39 'tools.gyp:picture_utils', | 43 'tools.gyp:picture_utils', |
40 '../third_party/externals/podofo/podofo.gyp:podofo', | 44 '../third_party/externals/podofo/podofo.gyp:podofo', |
41 ], | 45 ], |
42 'link_settings': { | 46 'link_settings': { |
43 'libraries': [ | 47 'libraries': [ |
44 ], | 48 ], |
45 }, | 49 }, |
46 'defines': [ | 50 'defines': [ |
47 'BUILDING_PODOFO', | 51 'BUILDING_PODOFO', |
48 ], | 52 ], |
49 }, | 53 }, |
50 ], | 54 { |
51 'conditions': [ | 55 'target_name': 'pdfviewer', |
52 ['skia_os == "win"', | 56 'type': 'executable', |
53 { | 57 'cflags': ['-fexceptions'], |
54 'targets': [ | 58 'cflags_cc': ['-fexceptions'], |
55 { | 59 'cflags!': [ '-fno-exceptions' ], |
56 'target_name': 'win_lcid', | 60 'cflags_cc!': [ '-fno-exceptions' ], |
57 'type': 'executable', | 61 'sources': [ |
58 'sources': [ | 62 '../experimental/PdfViewer/pdf_viewer_main.cpp', |
59 '../tools/win_lcid.cpp', | 63 ], |
60 ], | 64 'include_dirs': [ |
61 }, | 65 '../third_party/externals/podofo/src/base', |
62 ], | 66 '../third_party/externals/podofo/src', |
63 }, | 67 '../third_party/externals/podofo', |
64 ], | 68 '../tools', |
| 69 '../experimental/PdfViewer', |
| 70 '../experimental/PdfViewer/autogen', |
| 71 ], |
| 72 'dependencies': [ |
| 73 'core.gyp:core', |
| 74 'images.gyp:images', |
| 75 'libpdfviewer', |
| 76 ], |
| 77 }, |
65 ], | 78 ], |
66 } | 79 } |
67 | 80 |
68 # Local Variables: | 81 # Local Variables: |
69 # tab-width:2 | 82 # tab-width:2 |
70 # indent-tabs-mode:nil | 83 # indent-tabs-mode:nil |
71 # End: | 84 # End: |
72 # vim: set expandtab tabstop=2 shiftwidth=2: | 85 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |