2013-06-10 20:44:45 +00:00
|
|
|
# GYP file to build pdfviewer.
|
|
|
|
#
|
|
|
|
# To build on Linux:
|
|
|
|
# ./gyp_skia pdfviewer.gyp && make pdfviewer
|
|
|
|
#
|
|
|
|
{
|
|
|
|
'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
|
|
|
'sources': [
|
2013-06-26 17:48:12 +00:00
|
|
|
'../experimental/PdfViewer/SkPdfBasics.cpp',
|
|
|
|
'../experimental/PdfViewer/SkPdfFont.cpp',
|
2013-07-10 22:33:10 +00:00
|
|
|
'../experimental/PdfViewer/SkPdfRenderer.cpp',
|
2013-06-26 17:48:12 +00:00
|
|
|
'../experimental/PdfViewer/SkPdfUtils.cpp',
|
2013-07-02 22:42:53 +00:00
|
|
|
#'../experimental/PdfViewer/SkPdfNYI.cpp',
|
2013-07-22 15:36:39 +00:00
|
|
|
'../experimental/PdfViewer/SkTrackDevice.cpp',
|
|
|
|
'../experimental/PdfViewer/SkTracker.cpp',
|
2013-07-10 17:09:50 +00:00
|
|
|
'../experimental/PdfViewer/pdfparser/native/SkPdfObject.cpp',
|
|
|
|
'../experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp',
|
|
|
|
'../experimental/PdfViewer/pdfparser/native/SkNativeParsedPDF.cpp',
|
2013-07-25 15:33:13 +00:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfMapper_autogen.cpp',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfHeaders_autogen.cpp',
|
2013-07-02 22:42:53 +00:00
|
|
|
],
|
2013-07-25 15:33:13 +00:00
|
|
|
'copies': [
|
|
|
|
{
|
|
|
|
'files': [
|
|
|
|
'../experimental/PdfViewer/datatypes.py',
|
|
|
|
'../experimental/PdfViewer/generate_code.py',
|
|
|
|
],
|
|
|
|
'destination': '<(SHARED_INTERMEDIATE_DIR)',
|
|
|
|
},
|
|
|
|
],
|
2013-07-02 22:42:53 +00:00
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'spec2def',
|
|
|
|
'inputs': [
|
|
|
|
'../experimental/PdfViewer/spec2def.py',
|
|
|
|
'../experimental/PdfViewer/PdfReference-okular-1.txt',
|
|
|
|
],
|
|
|
|
'outputs': [
|
2013-07-25 15:33:13 +00:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/pdfspec_autogen.py',
|
2013-07-02 22:42:53 +00:00
|
|
|
],
|
2013-07-25 15:33:13 +00:00
|
|
|
'action': ['python', '../experimental/PdfViewer/spec2def.py', '../experimental/PdfViewer/PdfReference-okular-1.txt', '<(SHARED_INTERMEDIATE_DIR)/pdfspec_autogen.py'],
|
2013-07-02 22:42:53 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'action_name': 'generate_code',
|
|
|
|
'inputs': [
|
2013-07-25 15:33:13 +00:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/datatypes.py',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/generate_code.py',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/pdfspec_autogen.py',
|
2013-07-02 22:42:53 +00:00
|
|
|
],
|
|
|
|
'outputs': [
|
2013-07-25 15:33:13 +00:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfEnums_autogen.h',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfMapper_autogen.cpp',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfHeaders_autogen.cpp',
|
2013-07-02 22:42:53 +00:00
|
|
|
# TODO(edisonn): ok, there are many more files here, which we should list but since
|
|
|
|
# any change in the above should trigger a change here, we should be fine normally
|
|
|
|
],
|
2013-07-25 15:33:13 +00:00
|
|
|
'action': ['python', '<(SHARED_INTERMEDIATE_DIR)/generate_code.py', '<(SHARED_INTERMEDIATE_DIR)'],
|
2013-07-02 22:42:53 +00:00
|
|
|
},
|
2013-06-10 20:44:45 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../experimental/PdfViewer',
|
2013-06-28 22:01:06 +00:00
|
|
|
'../experimental/PdfViewer/pdfparser',
|
2013-07-10 17:09:50 +00:00
|
|
|
'../experimental/PdfViewer/pdfparser/native',
|
2013-07-25 15:33:13 +00:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/native/autogen',
|
2013-06-10 20:44:45 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
|
|
|
'images.gyp:images',
|
2013-07-11 12:27:21 +00:00
|
|
|
'zlib.gyp:zlib',
|
2013-06-10 20:44:45 +00:00
|
|
|
],
|
|
|
|
},
|
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': [
|
|
|
|
'../experimental/PdfViewer',
|
2013-07-02 22:42:53 +00:00
|
|
|
'../experimental/PdfViewer/pdfparser',
|
|
|
|
'../experimental/PdfViewer/pdfparser/autogen',
|
2013-07-10 17:09:50 +00:00
|
|
|
'../experimental/PdfViewer/pdfparser/native',
|
|
|
|
'../experimental/PdfViewer/pdfparser/native/autogen',
|
2013-06-26 17:48:12 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
2013-07-11 12:27:21 +00:00
|
|
|
'flags.gyp:flags',
|
2013-06-26 17:48:12 +00:00
|
|
|
'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:
|