2013-06-10 20:44:45 +00:00
|
|
|
# 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': [
|
|
|
|
{
|
2013-06-26 17:48:12 +00:00
|
|
|
'target_name': 'libpdfviewer',
|
|
|
|
'type': 'static_library',
|
2013-06-10 20:44:45 +00:00
|
|
|
'cflags': ['-fexceptions'],
|
|
|
|
'cflags_cc': ['-fexceptions'],
|
|
|
|
'cflags!': [ '-fno-exceptions' ],
|
2013-06-11 07:01:17 +00:00
|
|
|
'cflags_cc!': [ '-fno-exceptions' ],
|
2013-06-10 20:44:45 +00:00
|
|
|
'sources': [
|
2013-06-26 17:48:12 +00:00
|
|
|
'../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',
|
2013-06-10 20:44:45 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../third_party/externals/podofo/src/base',
|
|
|
|
'../third_party/externals/podofo/src',
|
|
|
|
'../third_party/externals/podofo',
|
|
|
|
'../tools',
|
|
|
|
'../experimental/PdfViewer',
|
2013-06-25 20:45:40 +00:00
|
|
|
'../experimental/PdfViewer/autogen',
|
2013-06-10 20:44:45 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
|
|
|
'effects.gyp:effects',
|
|
|
|
'images.gyp:images',
|
|
|
|
'pdf.gyp:pdf',
|
|
|
|
'ports.gyp:ports',
|
|
|
|
'tools.gyp:picture_utils',
|
|
|
|
'../third_party/externals/podofo/podofo.gyp:podofo',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
],
|
2013-06-11 07:01:17 +00:00
|
|
|
},
|
2013-06-10 20:44:45 +00:00
|
|
|
'defines': [
|
|
|
|
'BUILDING_PODOFO',
|
|
|
|
],
|
|
|
|
},
|
2013-06-26 17:48:12 +00:00
|
|
|
{
|
|
|
|
'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',
|
|
|
|
],
|
|
|
|
},
|
2013-06-11 07:01:17 +00:00
|
|
|
],
|
2013-06-10 20:44:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|