| edisonn@google.com | 01cd4d5 | 2013-06-10 20:44:45 +0000 | [diff] [blame] | 1 | # GYP file to build pdfviewer. |
| 2 | # |
| 3 | # To build on Linux: |
| 4 | # ./gyp_skia pdfviewer.gyp && make pdfviewer |
| 5 | # |
| 6 | { |
| edisonn@google.com | 01cd4d5 | 2013-06-10 20:44:45 +0000 | [diff] [blame] | 7 | 'includes': [ |
| 8 | 'apptype_console.gypi', |
| 9 | ], |
| 10 | 'targets': [ |
| 11 | { |
| edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 12 | 'target_name': 'libpdfviewer', |
| 13 | 'type': 'static_library', |
| edisonn@google.com | 01cd4d5 | 2013-06-10 20:44:45 +0000 | [diff] [blame] | 14 | 'sources': [ |
| edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 15 | '../experimental/PdfViewer/SkPdfBasics.cpp', |
| 16 | '../experimental/PdfViewer/SkPdfFont.cpp', |
| edisonn@google.com | 222382b | 2013-07-10 22:33:10 +0000 | [diff] [blame] | 17 | '../experimental/PdfViewer/SkPdfRenderer.cpp', |
| edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 18 | '../experimental/PdfViewer/SkPdfUtils.cpp', |
| edisonn@google.com | 3aac1f9 | 2013-07-02 22:42:53 +0000 | [diff] [blame] | 19 | #'../experimental/PdfViewer/SkPdfNYI.cpp', |
| edisonn@google.com | ac03d91 | 2013-07-22 15:36:39 +0000 | [diff] [blame] | 20 | '../experimental/PdfViewer/SkTrackDevice.cpp', |
| 21 | '../experimental/PdfViewer/SkTracker.cpp', |
| edisonn@google.com | 571c70b | 2013-07-10 17:09:50 +0000 | [diff] [blame] | 22 | '../experimental/PdfViewer/pdfparser/native/SkPdfObject.cpp', |
| 23 | '../experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp', |
| 24 | '../experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp', |
| edisonn@google.com | 50bbdb4 | 2013-07-25 15:33:13 +0000 | [diff] [blame] | 25 | '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfMapper_autogen.cpp', |
| 26 | '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfHeaders_autogen.cpp', |
| edisonn@google.com | 3aac1f9 | 2013-07-02 22:42:53 +0000 | [diff] [blame] | 27 | ], |
| edisonn@google.com | 50bbdb4 | 2013-07-25 15:33:13 +0000 | [diff] [blame] | 28 | 'copies': [ |
| 29 | { |
| 30 | 'files': [ |
| 31 | '../experimental/PdfViewer/datatypes.py', |
| 32 | '../experimental/PdfViewer/generate_code.py', |
| 33 | ], |
| 34 | 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
| 35 | }, |
| skia.committer@gmail.com | 956b310 | 2013-07-26 07:00:58 +0000 | [diff] [blame] | 36 | ], |
| edisonn@google.com | 3aac1f9 | 2013-07-02 22:42:53 +0000 | [diff] [blame] | 37 | 'actions': [ |
| 38 | { |
| 39 | 'action_name': 'spec2def', |
| 40 | 'inputs': [ |
| 41 | '../experimental/PdfViewer/spec2def.py', |
| 42 | '../experimental/PdfViewer/PdfReference-okular-1.txt', |
| 43 | ], |
| 44 | 'outputs': [ |
| edisonn@google.com | 50bbdb4 | 2013-07-25 15:33:13 +0000 | [diff] [blame] | 45 | '<(SHARED_INTERMEDIATE_DIR)/pdfspec_autogen.py', |
| edisonn@google.com | 3aac1f9 | 2013-07-02 22:42:53 +0000 | [diff] [blame] | 46 | ], |
| edisonn@google.com | 50bbdb4 | 2013-07-25 15:33:13 +0000 | [diff] [blame] | 47 | 'action': ['python', '../experimental/PdfViewer/spec2def.py', '../experimental/PdfViewer/PdfReference-okular-1.txt', '<(SHARED_INTERMEDIATE_DIR)/pdfspec_autogen.py'], |
| edisonn@google.com | 3aac1f9 | 2013-07-02 22:42:53 +0000 | [diff] [blame] | 48 | }, |
| 49 | { |
| 50 | 'action_name': 'generate_code', |
| 51 | 'inputs': [ |
| edisonn@google.com | 50bbdb4 | 2013-07-25 15:33:13 +0000 | [diff] [blame] | 52 | '<(SHARED_INTERMEDIATE_DIR)/datatypes.py', |
| 53 | '<(SHARED_INTERMEDIATE_DIR)/generate_code.py', |
| 54 | '<(SHARED_INTERMEDIATE_DIR)/pdfspec_autogen.py', |
| edisonn@google.com | 3aac1f9 | 2013-07-02 22:42:53 +0000 | [diff] [blame] | 55 | ], |
| 56 | 'outputs': [ |
| edisonn@google.com | 50bbdb4 | 2013-07-25 15:33:13 +0000 | [diff] [blame] | 57 | '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfEnums_autogen.h', |
| edisonn@google.com | e878e72 | 2013-07-29 19:10:58 +0000 | [diff] [blame] | 58 | '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfMapper_autogen.h', |
| 59 | '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfHeaders_autogen.h', |
| edisonn@google.com | 50bbdb4 | 2013-07-25 15:33:13 +0000 | [diff] [blame] | 60 | '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfMapper_autogen.cpp', |
| 61 | '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfHeaders_autogen.cpp', |
| edisonn@google.com | 3aac1f9 | 2013-07-02 22:42:53 +0000 | [diff] [blame] | 62 | # TODO(edisonn): ok, there are many more files here, which we should list but since |
| 63 | # any change in the above should trigger a change here, we should be fine normally |
| 64 | ], |
| edisonn@google.com | 50bbdb4 | 2013-07-25 15:33:13 +0000 | [diff] [blame] | 65 | 'action': ['python', '<(SHARED_INTERMEDIATE_DIR)/generate_code.py', '<(SHARED_INTERMEDIATE_DIR)'], |
| edisonn@google.com | 3aac1f9 | 2013-07-02 22:42:53 +0000 | [diff] [blame] | 66 | }, |
| edisonn@google.com | 01cd4d5 | 2013-06-10 20:44:45 +0000 | [diff] [blame] | 67 | ], |
| 68 | 'include_dirs': [ |
| edisonn@google.com | 01cd4d5 | 2013-06-10 20:44:45 +0000 | [diff] [blame] | 69 | '../experimental/PdfViewer', |
| edisonn@google.com | 5d41b36 | 2013-06-28 22:01:06 +0000 | [diff] [blame] | 70 | '../experimental/PdfViewer/pdfparser', |
| edisonn@google.com | 571c70b | 2013-07-10 17:09:50 +0000 | [diff] [blame] | 71 | '../experimental/PdfViewer/pdfparser/native', |
| edisonn@google.com | 50bbdb4 | 2013-07-25 15:33:13 +0000 | [diff] [blame] | 72 | '<(SHARED_INTERMEDIATE_DIR)/native/autogen', |
| edisonn@google.com | 01cd4d5 | 2013-06-10 20:44:45 +0000 | [diff] [blame] | 73 | ], |
| 74 | 'dependencies': [ |
| 75 | 'core.gyp:core', |
| edisonn@google.com | a0cefa1 | 2013-07-28 18:34:14 +0000 | [diff] [blame] | 76 | 'effects.gyp:effects', |
| edisonn@google.com | 01cd4d5 | 2013-06-10 20:44:45 +0000 | [diff] [blame] | 77 | 'images.gyp:images', |
| edisonn@google.com | a5aaa79 | 2013-07-11 12:27:21 +0000 | [diff] [blame] | 78 | 'zlib.gyp:zlib', |
| edisonn@google.com | 01cd4d5 | 2013-06-10 20:44:45 +0000 | [diff] [blame] | 79 | ], |
| edisonn@google.com | 01cd4d5 | 2013-06-10 20:44:45 +0000 | [diff] [blame] | 80 | }, |
| edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 81 | { |
| 82 | 'target_name': 'pdfviewer', |
| 83 | 'type': 'executable', |
| 84 | 'cflags': ['-fexceptions'], |
| 85 | 'cflags_cc': ['-fexceptions'], |
| 86 | 'cflags!': [ '-fno-exceptions' ], |
| 87 | 'cflags_cc!': [ '-fno-exceptions' ], |
| 88 | 'sources': [ |
| 89 | '../experimental/PdfViewer/pdf_viewer_main.cpp', |
| 90 | ], |
| 91 | 'include_dirs': [ |
| edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 92 | '../experimental/PdfViewer', |
| edisonn@google.com | 3aac1f9 | 2013-07-02 22:42:53 +0000 | [diff] [blame] | 93 | '../experimental/PdfViewer/pdfparser', |
| 94 | '../experimental/PdfViewer/pdfparser/autogen', |
| edisonn@google.com | 571c70b | 2013-07-10 17:09:50 +0000 | [diff] [blame] | 95 | '../experimental/PdfViewer/pdfparser/native', |
| 96 | '../experimental/PdfViewer/pdfparser/native/autogen', |
| edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 97 | ], |
| 98 | 'dependencies': [ |
| 99 | 'core.gyp:core', |
| edisonn@google.com | a5aaa79 | 2013-07-11 12:27:21 +0000 | [diff] [blame] | 100 | 'flags.gyp:flags', |
| edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 101 | 'libpdfviewer', |
| edisonn@google.com | 5149bd9 | 2013-08-05 17:26:11 +0000 | [diff] [blame^] | 102 | 'chop_transparency', |
| 103 | ], |
| 104 | }, |
| 105 | { |
| 106 | 'target_name': 'chop_transparency', |
| 107 | 'type': 'executable', |
| 108 | 'sources': [ |
| 109 | '../experimental/PdfViewer/chop_transparency_main.cpp', |
| 110 | ], |
| 111 | 'include_dirs': [ |
| 112 | # For SkBitmapHasher.h |
| 113 | '../src/utils/', |
| 114 | ], |
| 115 | 'dependencies': [ |
| 116 | 'skia_lib.gyp:skia_lib', |
| 117 | 'flags.gyp:flags', |
| edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 118 | ], |
| 119 | }, |
| skia.committer@gmail.com | 7fb5373 | 2013-06-11 07:01:17 +0000 | [diff] [blame] | 120 | ], |
| edisonn@google.com | 01cd4d5 | 2013-06-10 20:44:45 +0000 | [diff] [blame] | 121 | } |
| 122 | |
| 123 | # Local Variables: |
| 124 | # tab-width:2 |
| 125 | # indent-tabs-mode:nil |
| 126 | # End: |
| 127 | # vim: set expandtab tabstop=2 shiftwidth=2: |