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
|
|
|
},
|
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,
|
|
|
|
},
|
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
|
|
|
],
|
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': [
|
2016-10-26 17:32:07 +00:00
|
|
|
'<!@(python read_gni.py ../gn/pdf.gni skia_pdf_sources)',
|
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"]',
|
2016-08-25 16:07:02 +00:00
|
|
|
{
|
|
|
|
'dependencies': [ 'sfntly.gyp:sfntly' ],
|
|
|
|
'defines': [ 'SK_PDF_USE_SFNTLY' ],
|
|
|
|
}
|
2015-05-18 20:15:56 +00:00
|
|
|
],
|
2014-02-05 16:35:12 +00:00
|
|
|
[ 'skia_android_framework', {
|
|
|
|
# Add SFTNLY support for PDF (which in turns depends on ICU)
|
2016-08-25 16:07:02 +00:00
|
|
|
'include_dirs': [ 'external/sfntly/cpp/src' ],
|
|
|
|
'defines': [ 'SK_PDF_USE_SFNTLY' ],
|
2014-02-05 16:35:12 +00:00
|
|
|
'libraries': [
|
|
|
|
'libsfntly.a',
|
|
|
|
'-licuuc',
|
|
|
|
'-licui18n',
|
|
|
|
],
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
'direct_dependent_settings': {
|
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
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|