2015-03-25 17:22:41 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2014-02-05 16:35:12 +00:00
|
|
|
# This file builds the PDF backend.
|
2011-05-31 13:50:51 +00:00
|
|
|
{
|
|
|
|
'targets': [
|
2015-08-11 17:30:12 +00:00
|
|
|
{
|
|
|
|
'target_name': 'nopdf',
|
|
|
|
'type': 'static_library',
|
|
|
|
'dependencies': [ 'skia_lib.gyp:skia_lib', ],
|
2016-03-12 13:59:39 +00:00
|
|
|
'sources': [ '<(skia_src_path)/pdf/SkDocument_PDF_None.cpp', ],
|
2015-08-11 17:30:12 +00:00
|
|
|
'defines': [ 'SK_SUPPORT_PDF=0', ],
|
|
|
|
},
|
2011-05-31 13:50:51 +00:00
|
|
|
{
|
|
|
|
'target_name': 'pdf',
|
2012-10-10 19:45:51 +00:00
|
|
|
'product_name': 'skia_pdf',
|
2011-05-31 13:50:51 +00:00
|
|
|
'type': 'static_library',
|
2012-10-10 19:45:51 +00:00
|
|
|
'standalone_static_library': 1,
|
2016-03-29 17:10:24 +00:00
|
|
|
'variables': {
|
|
|
|
'skia_pdf_use_sfntly%': 1,
|
|
|
|
'skia_pdf_less_compression%': 0, # enable for debugging only
|
|
|
|
},
|
2012-03-21 23:11:46 +00:00
|
|
|
'dependencies': [
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2015-08-12 18:24:40 +00:00
|
|
|
'zlib.gyp:zlib',
|
2012-03-21 23:11:46 +00:00
|
|
|
],
|
2013-08-04 15:09:23 +00:00
|
|
|
'includes': [
|
|
|
|
'pdf.gypi',
|
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
'include_dirs': [
|
2015-07-28 15:55:14 +00:00
|
|
|
'../include/private',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h
|
2015-10-01 14:28:13 +00:00
|
|
|
'../src/image',
|
2012-03-21 23:11:46 +00:00
|
|
|
'../src/utils', # needed to get SkBitSet.h
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
2013-08-04 15:09:23 +00:00
|
|
|
'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
2014-02-05 16:35:12 +00:00
|
|
|
'conditions': [
|
2015-05-18 20:15:56 +00:00
|
|
|
[ 'skia_pdf_use_sfntly and not skia_android_framework and \
|
2016-04-29 21:01:34 +00:00
|
|
|
skia_os in ["win", "android", "linux", "mac"]',
|
2015-05-18 20:15:56 +00:00
|
|
|
{ 'dependencies': [ 'sfntly.gyp:sfntly' ] }
|
|
|
|
],
|
2016-03-29 17:10:24 +00:00
|
|
|
[ 'skia_pdf_less_compression',
|
|
|
|
{'defines': ['SK_PDF_LESS_COMPRESSION'] }
|
|
|
|
],
|
2014-02-05 16:35:12 +00:00
|
|
|
[ 'skia_android_framework', {
|
|
|
|
# Add SFTNLY support for PDF (which in turns depends on ICU)
|
|
|
|
'include_dirs': [
|
|
|
|
'external/sfntly/cpp/src',
|
|
|
|
],
|
|
|
|
'libraries': [
|
|
|
|
'libsfntly.a',
|
|
|
|
'-licuuc',
|
|
|
|
'-licui18n',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
'direct_dependent_settings': {
|
2015-08-11 17:30:12 +00:00
|
|
|
'defines': [ 'SK_SUPPORT_PDF=1', ],
|
2015-01-07 15:36:52 +00:00
|
|
|
'include_dirs': [
|
2015-02-19 15:26:12 +00:00
|
|
|
'../include/core', # SkDocument.h
|
2015-01-07 15:36:52 +00:00
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|