Index: gyp/pdfviewer.gyp |
=================================================================== |
--- gyp/pdfviewer.gyp (revision 0) |
+++ gyp/pdfviewer.gyp (revision 0) |
@@ -0,0 +1,210 @@ |
+# GYP file to build pdfviewer. |
+# |
+# To build on Linux: |
+# ./gyp_skia pdfviewer.gyp && make pdfviewer |
+# |
+{ |
+ 'variables': { |
+ 'skia_warnings_as_errors': 0, |
+ }, |
+ 'includes': [ |
+ 'apptype_console.gypi', |
+ ], |
+ 'targets': [ |
+ { |
+ 'target_name': 'pdfviewer', |
+ 'type': 'executable', |
+ 'sources': [ |
+ '../experimental/PdfViewer/pdf_viewer_main.cpp', |
+ '../third_party/externals/podofo/src/base', |
+ '../third_party/externals/podofo/src/base/PdfArray.cpp', |
+ '../third_party/externals/podofo/src/base/PdfCanvas.cpp', |
+ '../third_party/externals/podofo/src/base/PdfColor.cpp', |
+ '../third_party/externals/podofo/src/base/PdfContentsTokenizer.cpp', |
+ '../third_party/externals/podofo/src/base/PdfData.cpp', |
+ '../third_party/externals/podofo/src/base/PdfDataType.cpp', |
+ '../third_party/externals/podofo/src/base/PdfDate.cpp', |
+ '../third_party/externals/podofo/src/base/PdfDictionary.cpp', |
+ '../third_party/externals/podofo/src/base/PdfEncoding.cpp', |
+ '../third_party/externals/podofo/src/base/PdfEncodingFactory.cpp', |
+ '../third_party/externals/podofo/src/base/PdfEncrypt.cpp', |
+ '../third_party/externals/podofo/src/base/PdfError.cpp', |
+ '../third_party/externals/podofo/src/base/PdfFileStream.cpp', |
+ '../third_party/externals/podofo/src/base/PdfFilter.cpp', |
+ '../third_party/externals/podofo/src/base/PdfFiltersPrivate.cpp', |
+ '../third_party/externals/podofo/src/base/PdfImmediateWriter.cpp', |
+ '../third_party/externals/podofo/src/base/PdfInputDevice.cpp', |
+ '../third_party/externals/podofo/src/base/PdfInputStream.cpp', |
+ '../third_party/externals/podofo/src/base/PdfLocale.cpp', |
+ '../third_party/externals/podofo/src/base/PdfMemoryManagement.cpp', |
+ '../third_party/externals/podofo/src/base/PdfMemStream.cpp', |
+ '../third_party/externals/podofo/src/base/PdfName.cpp', |
+ '../third_party/externals/podofo/src/base/PdfObject.cpp', |
+ '../third_party/externals/podofo/src/base/PdfObjectStreamParserObject.cpp', |
+ '../third_party/externals/podofo/src/base/PdfOutputDevice.cpp', |
+ '../third_party/externals/podofo/src/base/PdfOutputStream.cpp', |
+ '../third_party/externals/podofo/src/base/PdfParser.cpp', |
+ '../third_party/externals/podofo/src/base/PdfParserObject.cpp', |
+ '../third_party/externals/podofo/src/base/PdfRect.cpp', |
+ '../third_party/externals/podofo/src/base/PdfRefCountedBuffer.cpp', |
+ '../third_party/externals/podofo/src/base/PdfRefCountedInputDevice.cpp', |
+ '../third_party/externals/podofo/src/base/PdfReference.cpp', |
+ '../third_party/externals/podofo/src/base/PdfStream.cpp', |
+ '../third_party/externals/podofo/src/base/PdfString.cpp', |
+ '../third_party/externals/podofo/src/base/PdfTokenizer.cpp', |
+ '../third_party/externals/podofo/src/base/PdfVariant.cpp', |
+ '../third_party/externals/podofo/src/base/PdfVecObjects.cpp', |
+ '../third_party/externals/podofo/src/base/PdfWriter.cpp', |
+ '../third_party/externals/podofo/src/base/PdfXRef.cpp', |
+ '../third_party/externals/podofo/src/base/PdfXRefStream.cpp', |
+ '../third_party/externals/podofo/src/base/PdfXRefStreamParserObject.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfAcroForm.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfAction.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfAnnotation.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfContents.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfDestination.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfDifferenceEncoding.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfDocument.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfElement.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfEncodingObjectFactory.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfExtGState.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfField.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFileSpec.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontCache.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontCID.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontConfigWrapper.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFont.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontFactory.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontMetricsBase14.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontMetrics.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontMetricsFreetype.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontMetricsObject.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontSimple.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontTrueType.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontTTFSubset.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontType1Base14.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFontType1.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfFunction.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfHintStream.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfIdentityEncoding.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfImage.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfInfo.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfMemDocument.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfNamesTree.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfOutlines.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfPage.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfPagesTreeCache.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfPagesTree.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfPainter.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfPainterMM.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfShadingPattern.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfSignatureField.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfSignOutputDevice.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfStreamedDocument.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfTable.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfXObject.cpp', |
+ '../third_party/externals/podofo/src/doc/PdfCMapEncoding.cpp', |
+ ], |
+ 'include_dirs': [ |
+ '../third_party/externals/podofo/src/base', |
+ '../third_party/externals/podofo/src', |
+ '../third_party/externals/podofo', |
+ '../tools', |
+ '../experimental/PdfViewer', |
+ ], |
+ 'dependencies': [ |
+ 'core.gyp:core', |
+ 'effects.gyp:effects', |
+ 'images.gyp:images', |
+ 'pdf.gyp:pdf', |
+ 'ports.gyp:ports', |
+ 'tools.gyp:picture_utils', |
+ ], |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-lssl', |
+ '-lcrypto', |
+ #'-llibpcre', |
+ #'-llibssl', |
+ #'-llibexpat', |
+ ], |
+ }, |
+ 'defines': [ |
+ 'BUILDING_PODOFO', |
+ ], |
+ 'conditions': [ |
+ ['skia_win_debuggers_path and skia_os == "win"', |
+ { |
+ 'dependencies': [ |
+ 'tools.gyp:win_dbghelp', |
+ ], |
+ }, |
+ ], |
+ # VS static libraries don't have a linker option. We must set a global |
+ # project linker option, or add it to each executable. |
+ ['skia_win_debuggers_path and skia_os == "win" and ' |
+ 'skia_arch_width == 64', |
+ { |
+ 'msvs_settings': { |
+ 'VCLinkerTool': { |
+ 'AdditionalDependencies': [ |
+ '<(skia_win_debuggers_path)/x64/DbgHelp.lib', |
+ ], |
+ }, |
+ }, |
+ }, |
+ ], |
+ ['skia_win_debuggers_path and skia_os == "win" and ' |
+ 'skia_arch_width == 32', |
+ { |
+ 'msvs_settings': { |
+ 'VCLinkerTool': { |
+ 'AdditionalDependencies': [ |
+ '<(skia_win_debuggers_path)/DbgHelp.lib', |
+ ], |
+ }, |
+ }, |
+ }, |
+ ], |
+ ], |
+ }, |
+ ], |
+ 'conditions': [ |
+ ['skia_win_debuggers_path and skia_os == "win"', |
+ { |
+ 'targets': [ |
+ { |
+ 'target_name': 'win_dbghelp', |
+ 'type': 'static_library', |
+ 'defines': [ |
+ 'SK_CDB_PATH="<(skia_win_debuggers_path)"', |
+ ], |
+ 'sources': [ |
+ '../tools/win_dbghelp.h', |
+ '../tools/win_dbghelp.cpp', |
+ ], |
+ }, |
+ ], |
+ }, |
+ ], |
+ ['skia_os == "win"', |
+ { |
+ 'targets': [ |
+ { |
+ 'target_name': 'win_lcid', |
+ 'type': 'executable', |
+ 'sources': [ |
+ '../tools/win_lcid.cpp', |
+ ], |
+ }, |
+ ], |
+ }, |
+ ], |
+ ], |
+} |
+ |
+# Local Variables: |
+# tab-width:2 |
+# indent-tabs-mode:nil |
+# End: |
+# vim: set expandtab tabstop=2 shiftwidth=2: |