2014-02-05 16:35:12 +00:00
|
|
|
# This file builds the PDF backend.
|
2011-05-31 13:50:51 +00:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'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,
|
2012-03-21 23:11:46 +00:00
|
|
|
'dependencies': [
|
2013-06-03 12:10:19 +00:00
|
|
|
'skia_lib.gyp:skia_lib',
|
2012-03-21 23:11:46 +00:00
|
|
|
'zlib.gyp:zlib',
|
|
|
|
],
|
2013-08-04 15:09:23 +00:00
|
|
|
'includes': [
|
|
|
|
'pdf.gypi',
|
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
'include_dirs': [
|
|
|
|
'../include/pdf',
|
|
|
|
'../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).
|
2013-08-26 13:47:20 +00:00
|
|
|
|
|
|
|
'../src/doc/SkDocument_PDF.cpp', # Chromium does use this file
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
2014-02-05 16:35:12 +00:00
|
|
|
'conditions': [
|
|
|
|
[ '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-06-24 19:09:09 +00:00
|
|
|
# This section makes all targets that depend on this target
|
|
|
|
# #define SK_SUPPORT_PDF and have access to the pdf header files.
|
2011-05-31 13:50:51 +00:00
|
|
|
'direct_dependent_settings': {
|
2011-06-24 19:09:09 +00:00
|
|
|
'defines': [
|
|
|
|
'SK_SUPPORT_PDF',
|
|
|
|
],
|
2011-05-31 13:50:51 +00:00
|
|
|
'include_dirs': [
|
|
|
|
'../include/pdf',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|