blob: b253fd8e97e3719c7a35d8fc740a003f7fc9683e [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': [
epoger@google.comae85aea2011-05-31 13:50:51 +000017 '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h
commit-bot@chromium.org5e009892013-10-14 13:42:12 +000018 '../src/pdf',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000019 '../src/utils', # needed to get SkBitSet.h
epoger@google.comae85aea2011-05-31 13:50:51 +000020 ],
21 'sources': [
commit-bot@chromium.org7e5d1862013-08-04 15:09:23 +000022 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
epoger@google.comae85aea2011-05-31 13:50:51 +000023 ],
scroggo@google.comd4adfa32014-02-05 16:35:12 +000024 'conditions': [
25 [ 'skia_android_framework', {
26 # Add SFTNLY support for PDF (which in turns depends on ICU)
27 'include_dirs': [
28 'external/sfntly/cpp/src',
29 ],
30 'libraries': [
31 'libsfntly.a',
32 '-licuuc',
33 '-licui18n',
34 ],
35 }
36 ],
37 ],
caryclarkac8d8b82015-01-07 07:36:52 -080038 # This section makes all targets that depend on this target
39 # #define SK_SUPPORT_PDF and have access to the pdf header files.
epoger@google.comae85aea2011-05-31 13:50:51 +000040 'direct_dependent_settings': {
epoger@google.comdcab3a12011-06-24 19:09:09 +000041 'defines': [
42 'SK_SUPPORT_PDF',
43 ],
caryclarkac8d8b82015-01-07 07:36:52 -080044 'include_dirs': [
halcanary07327bf2015-02-19 07:26:12 -080045 '../include/core', # SkDocument.h
caryclarkac8d8b82015-01-07 07:36:52 -080046 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000047 },
epoger@google.comae85aea2011-05-31 13:50:51 +000048 },
49 ],
50}