blob: 76b23bb3a7fb0f3e2e70d4577ce9b2013eb2444d [file] [log] [blame]
scroggo@google.comd4adfa32014-02-05 16:35:12 +00001# This file builds the PDF backend.
epoger@google.comae85aea2011-05-31 13:50:51 +00002{
epoger@google.comae85aea2011-05-31 13:50:51 +00003 'targets': [
4 {
5 'target_name': 'pdf',
borenet@google.comefb1d772012-10-10 19:45:51 +00006 'product_name': 'skia_pdf',
epoger@google.comae85aea2011-05-31 13:50:51 +00007 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +00008 'standalone_static_library': 1,
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +00009 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000010 'skia_lib.gyp:skia_lib',
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000011 'skflate.gyp:skflate',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000012 ],
commit-bot@chromium.org7e5d1862013-08-04 15:09:23 +000013 'includes': [
14 'pdf.gypi',
15 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000016 'include_dirs': [
caryclarkac8d8b82015-01-07 07:36:52 -080017 '../include/pdf',
epoger@google.comae85aea2011-05-31 13:50:51 +000018 '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h
commit-bot@chromium.org5e009892013-10-14 13:42:12 +000019 '../src/pdf',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000020 '../src/utils', # needed to get SkBitSet.h
epoger@google.comae85aea2011-05-31 13:50:51 +000021 ],
22 'sources': [
commit-bot@chromium.org7e5d1862013-08-04 15:09:23 +000023 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
epoger@google.comae85aea2011-05-31 13:50:51 +000024 ],
scroggo@google.comd4adfa32014-02-05 16:35:12 +000025 'conditions': [
26 [ 'skia_android_framework', {
27 # Add SFTNLY support for PDF (which in turns depends on ICU)
28 'include_dirs': [
29 'external/sfntly/cpp/src',
30 ],
31 'libraries': [
32 'libsfntly.a',
33 '-licuuc',
34 '-licui18n',
35 ],
36 }
37 ],
38 ],
caryclarkac8d8b82015-01-07 07:36:52 -080039 # This section makes all targets that depend on this target
40 # #define SK_SUPPORT_PDF and have access to the pdf header files.
epoger@google.comae85aea2011-05-31 13:50:51 +000041 'direct_dependent_settings': {
epoger@google.comdcab3a12011-06-24 19:09:09 +000042 'defines': [
43 'SK_SUPPORT_PDF',
44 ],
caryclarkac8d8b82015-01-07 07:36:52 -080045 'include_dirs': [
46 '../include/pdf',
47 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000048 },
epoger@google.comae85aea2011-05-31 13:50:51 +000049 },
50 ],
51}