2013-08-16 16:13:44 +00:00
|
|
|
# GYP file to build pdfviewer.
|
|
|
|
#
|
|
|
|
# To build on Linux:
|
|
|
|
# ./gyp_skia pdfviewer.gyp && make pdfviewer
|
|
|
|
#
|
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'pdfviewer_lib',
|
|
|
|
'type': 'static_library',
|
|
|
|
'sources': [
|
2013-11-14 19:09:27 +00:00
|
|
|
# FIXME: Include directory is named "inc" (instead of "include") in
|
|
|
|
# order to not be considered the public API.
|
2013-11-20 22:33:39 +00:00
|
|
|
'../experimental/PdfViewer/inc/SkPdfContext.h',
|
2013-11-14 19:09:27 +00:00
|
|
|
'../experimental/PdfViewer/inc/SkPdfRenderer.h',
|
2013-11-20 23:12:25 +00:00
|
|
|
'../experimental/PdfViewer/inc/SkPdfTokenLooper.h',
|
2013-11-20 20:47:21 +00:00
|
|
|
|
2013-11-20 22:33:39 +00:00
|
|
|
'../experimental/PdfViewer/src/SkPdfContext.cpp',
|
2013-11-14 19:09:27 +00:00
|
|
|
'../experimental/PdfViewer/src/SkPdfRenderer.cpp',
|
2013-11-20 20:47:21 +00:00
|
|
|
'../experimental/PdfViewer/src/SkTDStackNester.h',
|
Restructuring of PdfViewer code.
The only change in behavior is that SkPdfAllocator on SkPdfContext is
no longer allocated on the heap.
In general, I have just moved code.
SkPdfContext:
Inherit from SkNoncopyable.
Make SkPdfContext directly own fTmpPageAllocator. fTmpPageAllocator is
created when SkPdfContext is, and destroyed at the same time as well,
so there is no reason for the extra allocation.
Add the function parseStream. This eliminates code duplication, and
allows making fTmpPageAllocator private.
Move PdfMainLooper into the implementation file, since it is now only
used by parseStream.
Move SkTDictWithDefaultConstructor and render stats info here, in
support of PdfMainLooper.
SkPdfTokenLooper:
Rename PdfTokenLooper to SkPdfTokenLooper.
Move readToken here, unchanged.
Remove tokenizer(), which is unused.
SkPdfNativeDoc:
Remove tokenizerOfPage and tokenizerOfBuffer, which are unused.
SkPdfOps:
Move gPdfOps and PdfOperatorRenderer into a header file (hidden for
now), so they can be accessed by both SkPdfRenderer.cpp and
SkPdfContext.cpp.
SkPdfRenderer:
Harvest things into other files:
PdfMainLooper (and the code that calls it) -> SkPdfContext.
readToken -> SkPdfTokenLooper.
R=mtklein@google.com
Review URL: https://codereview.chromium.org/79933003
git-svn-id: http://skia.googlecode.com/svn/trunk@12435 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-12-02 20:18:09 +00:00
|
|
|
'../experimental/PdfViewer/src/SkPdfTokenLooper.cpp',
|
2013-11-14 19:09:27 +00:00
|
|
|
|
2013-08-16 16:13:44 +00:00
|
|
|
'../experimental/PdfViewer/SkPdfGraphicsState.cpp',
|
|
|
|
'../experimental/PdfViewer/SkPdfFont.cpp',
|
2013-09-13 19:33:42 +00:00
|
|
|
'../experimental/PdfViewer/SkPdfReporter.cpp',
|
2013-08-16 16:13:44 +00:00
|
|
|
'../experimental/PdfViewer/SkPdfUtils.cpp',
|
|
|
|
#'../experimental/PdfViewer/SkPdfNYI.cpp',
|
|
|
|
'../experimental/PdfViewer/SkTrackDevice.cpp',
|
|
|
|
'../experimental/PdfViewer/SkTracker.cpp',
|
|
|
|
'../experimental/PdfViewer/pdfparser/native/SkPdfNativeObject.cpp',
|
|
|
|
'../experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp',
|
|
|
|
'../experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp',
|
2013-08-20 18:56:49 +00:00
|
|
|
'../experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfMapper_autogen.cpp',
|
|
|
|
'../experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfHeaders_autogen.cpp',
|
2013-08-16 16:13:44 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../experimental/PdfViewer',
|
2013-11-14 19:09:27 +00:00
|
|
|
'../experimental/PdfViewer/inc',
|
2013-11-20 20:47:21 +00:00
|
|
|
'../experimental/PdfViewer/src',
|
2013-08-16 16:13:44 +00:00
|
|
|
'../experimental/PdfViewer/pdfparser',
|
|
|
|
'../experimental/PdfViewer/pdfparser/native',
|
2013-08-20 18:56:49 +00:00
|
|
|
'../experimental/PdfViewer/pdfparser/native/pdfapi',
|
2013-08-16 16:13:44 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
'zlib.gyp:zlib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|