OLD | NEW |
(Empty) | |
| 1 # GYP file to build pdfviewer. |
| 2 # |
| 3 # To build on Linux: |
| 4 # ./gyp_skia pdfviewer.gyp && make pdfviewer |
| 5 # |
| 6 { |
| 7 'variables': { |
| 8 'skia_warnings_as_errors': 0, |
| 9 }, |
| 10 'includes': [ |
| 11 'apptype_console.gypi', |
| 12 ], |
| 13 'targets': [ |
| 14 { |
| 15 'target_name': 'pdfviewer', |
| 16 'type': 'executable', |
| 17 'sources': [ |
| 18 '../experimental/PdfViewer/pdf_viewer_main.cpp', |
| 19 '../third_party/externals/podofo/src/base', |
| 20 '../third_party/externals/podofo/src/base/PdfArray.cpp', |
| 21 '../third_party/externals/podofo/src/base/PdfCanvas.cpp', |
| 22 '../third_party/externals/podofo/src/base/PdfColor.cpp', |
| 23 '../third_party/externals/podofo/src/base/PdfContentsTokenizer.cpp', |
| 24 '../third_party/externals/podofo/src/base/PdfData.cpp', |
| 25 '../third_party/externals/podofo/src/base/PdfDataType.cpp', |
| 26 '../third_party/externals/podofo/src/base/PdfDate.cpp', |
| 27 '../third_party/externals/podofo/src/base/PdfDictionary.cpp', |
| 28 '../third_party/externals/podofo/src/base/PdfEncoding.cpp', |
| 29 '../third_party/externals/podofo/src/base/PdfEncodingFactory.cpp', |
| 30 '../third_party/externals/podofo/src/base/PdfEncrypt.cpp', |
| 31 '../third_party/externals/podofo/src/base/PdfError.cpp', |
| 32 '../third_party/externals/podofo/src/base/PdfFileStream.cpp', |
| 33 '../third_party/externals/podofo/src/base/PdfFilter.cpp', |
| 34 '../third_party/externals/podofo/src/base/PdfFiltersPrivate.cpp', |
| 35 '../third_party/externals/podofo/src/base/PdfImmediateWriter.cpp', |
| 36 '../third_party/externals/podofo/src/base/PdfInputDevice.cpp', |
| 37 '../third_party/externals/podofo/src/base/PdfInputStream.cpp', |
| 38 '../third_party/externals/podofo/src/base/PdfLocale.cpp', |
| 39 '../third_party/externals/podofo/src/base/PdfMemoryManagement.cpp', |
| 40 '../third_party/externals/podofo/src/base/PdfMemStream.cpp', |
| 41 '../third_party/externals/podofo/src/base/PdfName.cpp', |
| 42 '../third_party/externals/podofo/src/base/PdfObject.cpp', |
| 43 '../third_party/externals/podofo/src/base/PdfObjectStreamParserObject.cp
p', |
| 44 '../third_party/externals/podofo/src/base/PdfOutputDevice.cpp', |
| 45 '../third_party/externals/podofo/src/base/PdfOutputStream.cpp', |
| 46 '../third_party/externals/podofo/src/base/PdfParser.cpp', |
| 47 '../third_party/externals/podofo/src/base/PdfParserObject.cpp', |
| 48 '../third_party/externals/podofo/src/base/PdfRect.cpp', |
| 49 '../third_party/externals/podofo/src/base/PdfRefCountedBuffer.cpp', |
| 50 '../third_party/externals/podofo/src/base/PdfRefCountedInputDevice.cpp', |
| 51 '../third_party/externals/podofo/src/base/PdfReference.cpp', |
| 52 '../third_party/externals/podofo/src/base/PdfStream.cpp', |
| 53 '../third_party/externals/podofo/src/base/PdfString.cpp', |
| 54 '../third_party/externals/podofo/src/base/PdfTokenizer.cpp', |
| 55 '../third_party/externals/podofo/src/base/PdfVariant.cpp', |
| 56 '../third_party/externals/podofo/src/base/PdfVecObjects.cpp', |
| 57 '../third_party/externals/podofo/src/base/PdfWriter.cpp', |
| 58 '../third_party/externals/podofo/src/base/PdfXRef.cpp', |
| 59 '../third_party/externals/podofo/src/base/PdfXRefStream.cpp', |
| 60 '../third_party/externals/podofo/src/base/PdfXRefStreamParserObject.cpp'
, |
| 61 '../third_party/externals/podofo/src/doc/PdfAcroForm.cpp', |
| 62 '../third_party/externals/podofo/src/doc/PdfAction.cpp', |
| 63 '../third_party/externals/podofo/src/doc/PdfAnnotation.cpp', |
| 64 '../third_party/externals/podofo/src/doc/PdfContents.cpp', |
| 65 '../third_party/externals/podofo/src/doc/PdfDestination.cpp', |
| 66 '../third_party/externals/podofo/src/doc/PdfDifferenceEncoding.cpp', |
| 67 '../third_party/externals/podofo/src/doc/PdfDocument.cpp', |
| 68 '../third_party/externals/podofo/src/doc/PdfElement.cpp', |
| 69 '../third_party/externals/podofo/src/doc/PdfEncodingObjectFactory.cpp', |
| 70 '../third_party/externals/podofo/src/doc/PdfExtGState.cpp', |
| 71 '../third_party/externals/podofo/src/doc/PdfField.cpp', |
| 72 '../third_party/externals/podofo/src/doc/PdfFileSpec.cpp', |
| 73 '../third_party/externals/podofo/src/doc/PdfFontCache.cpp', |
| 74 '../third_party/externals/podofo/src/doc/PdfFontCID.cpp', |
| 75 '../third_party/externals/podofo/src/doc/PdfFontConfigWrapper.cpp', |
| 76 '../third_party/externals/podofo/src/doc/PdfFont.cpp', |
| 77 '../third_party/externals/podofo/src/doc/PdfFontFactory.cpp', |
| 78 '../third_party/externals/podofo/src/doc/PdfFontMetricsBase14.cpp', |
| 79 '../third_party/externals/podofo/src/doc/PdfFontMetrics.cpp', |
| 80 '../third_party/externals/podofo/src/doc/PdfFontMetricsFreetype.cpp', |
| 81 '../third_party/externals/podofo/src/doc/PdfFontMetricsObject.cpp', |
| 82 '../third_party/externals/podofo/src/doc/PdfFontSimple.cpp', |
| 83 '../third_party/externals/podofo/src/doc/PdfFontTrueType.cpp', |
| 84 '../third_party/externals/podofo/src/doc/PdfFontTTFSubset.cpp', |
| 85 '../third_party/externals/podofo/src/doc/PdfFontType1Base14.cpp', |
| 86 '../third_party/externals/podofo/src/doc/PdfFontType1.cpp', |
| 87 '../third_party/externals/podofo/src/doc/PdfFunction.cpp', |
| 88 '../third_party/externals/podofo/src/doc/PdfHintStream.cpp', |
| 89 '../third_party/externals/podofo/src/doc/PdfIdentityEncoding.cpp', |
| 90 '../third_party/externals/podofo/src/doc/PdfImage.cpp', |
| 91 '../third_party/externals/podofo/src/doc/PdfInfo.cpp', |
| 92 '../third_party/externals/podofo/src/doc/PdfMemDocument.cpp', |
| 93 '../third_party/externals/podofo/src/doc/PdfNamesTree.cpp', |
| 94 '../third_party/externals/podofo/src/doc/PdfOutlines.cpp', |
| 95 '../third_party/externals/podofo/src/doc/PdfPage.cpp', |
| 96 '../third_party/externals/podofo/src/doc/PdfPagesTreeCache.cpp', |
| 97 '../third_party/externals/podofo/src/doc/PdfPagesTree.cpp', |
| 98 '../third_party/externals/podofo/src/doc/PdfPainter.cpp', |
| 99 '../third_party/externals/podofo/src/doc/PdfPainterMM.cpp', |
| 100 '../third_party/externals/podofo/src/doc/PdfShadingPattern.cpp', |
| 101 '../third_party/externals/podofo/src/doc/PdfSignatureField.cpp', |
| 102 '../third_party/externals/podofo/src/doc/PdfSignOutputDevice.cpp', |
| 103 '../third_party/externals/podofo/src/doc/PdfStreamedDocument.cpp', |
| 104 '../third_party/externals/podofo/src/doc/PdfTable.cpp', |
| 105 '../third_party/externals/podofo/src/doc/PdfXObject.cpp', |
| 106 '../third_party/externals/podofo/src/doc/PdfCMapEncoding.cpp', |
| 107 ], |
| 108 'include_dirs': [ |
| 109 '../third_party/externals/podofo/src/base', |
| 110 '../third_party/externals/podofo/src', |
| 111 '../third_party/externals/podofo', |
| 112 '../tools', |
| 113 '../experimental/PdfViewer', |
| 114 ], |
| 115 'dependencies': [ |
| 116 'core.gyp:core', |
| 117 'effects.gyp:effects', |
| 118 'images.gyp:images', |
| 119 'pdf.gyp:pdf', |
| 120 'ports.gyp:ports', |
| 121 'tools.gyp:picture_utils', |
| 122 ], |
| 123 'link_settings': { |
| 124 'libraries': [ |
| 125 '-lssl', |
| 126 '-lcrypto', |
| 127 #'-llibpcre', |
| 128 #'-llibssl', |
| 129 #'-llibexpat', |
| 130 ], |
| 131 }, |
| 132 'defines': [ |
| 133 'BUILDING_PODOFO', |
| 134 ], |
| 135 'conditions': [ |
| 136 ['skia_win_debuggers_path and skia_os == "win"', |
| 137 { |
| 138 'dependencies': [ |
| 139 'tools.gyp:win_dbghelp', |
| 140 ], |
| 141 }, |
| 142 ], |
| 143 # VS static libraries don't have a linker option. We must set a global |
| 144 # project linker option, or add it to each executable. |
| 145 ['skia_win_debuggers_path and skia_os == "win" and ' |
| 146 'skia_arch_width == 64', |
| 147 { |
| 148 'msvs_settings': { |
| 149 'VCLinkerTool': { |
| 150 'AdditionalDependencies': [ |
| 151 '<(skia_win_debuggers_path)/x64/DbgHelp.lib', |
| 152 ], |
| 153 }, |
| 154 }, |
| 155 }, |
| 156 ], |
| 157 ['skia_win_debuggers_path and skia_os == "win" and ' |
| 158 'skia_arch_width == 32', |
| 159 { |
| 160 'msvs_settings': { |
| 161 'VCLinkerTool': { |
| 162 'AdditionalDependencies': [ |
| 163 '<(skia_win_debuggers_path)/DbgHelp.lib', |
| 164 ], |
| 165 }, |
| 166 }, |
| 167 }, |
| 168 ], |
| 169 ], |
| 170 }, |
| 171 ], |
| 172 'conditions': [ |
| 173 ['skia_win_debuggers_path and skia_os == "win"', |
| 174 { |
| 175 'targets': [ |
| 176 { |
| 177 'target_name': 'win_dbghelp', |
| 178 'type': 'static_library', |
| 179 'defines': [ |
| 180 'SK_CDB_PATH="<(skia_win_debuggers_path)"', |
| 181 ], |
| 182 'sources': [ |
| 183 '../tools/win_dbghelp.h', |
| 184 '../tools/win_dbghelp.cpp', |
| 185 ], |
| 186 }, |
| 187 ], |
| 188 }, |
| 189 ], |
| 190 ['skia_os == "win"', |
| 191 { |
| 192 'targets': [ |
| 193 { |
| 194 'target_name': 'win_lcid', |
| 195 'type': 'executable', |
| 196 'sources': [ |
| 197 '../tools/win_lcid.cpp', |
| 198 ], |
| 199 }, |
| 200 ], |
| 201 }, |
| 202 ], |
| 203 ], |
| 204 } |
| 205 |
| 206 # Local Variables: |
| 207 # tab-width:2 |
| 208 # indent-tabs-mode:nil |
| 209 # End: |
| 210 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |