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', ],
|
|
|
|
'sources': [ '<(skia_src_path)/doc/SkDocument_PDF_None.cpp', ],
|
|
|
|
'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,
|
2015-05-18 20:15:56 +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
|
|
|
],
|
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
|
2013-10-14 13:42:12 +00:00
|
|
|
'../src/pdf',
|
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 \
|
|
|
|
skia_os in ["win", "android", "linux", "chromeos", "mac"]',
|
|
|
|
{ 'dependencies': [ 'sfntly.gyp:sfntly' ] }
|
|
|
|
],
|
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
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|