blob: e5923e74835f8a93d3c2647916629e799a3fcd5a [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 '../include/pdf',
18 '../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).
robertphillips@google.com62aa8d62013-08-26 13:47:20 +000024
25 '../src/doc/SkDocument_PDF.cpp', # Chromium does use this file
epoger@google.comae85aea2011-05-31 13:50:51 +000026 ],
scroggo@google.comd4adfa32014-02-05 16:35:12 +000027 'conditions': [
28 [ 'skia_android_framework', {
29 # Add SFTNLY support for PDF (which in turns depends on ICU)
30 'include_dirs': [
31 'external/sfntly/cpp/src',
32 ],
33 'libraries': [
34 'libsfntly.a',
35 '-licuuc',
36 '-licui18n',
37 ],
38 }
39 ],
40 ],
epoger@google.comdcab3a12011-06-24 19:09:09 +000041 # This section makes all targets that depend on this target
42 # #define SK_SUPPORT_PDF and have access to the pdf header files.
epoger@google.comae85aea2011-05-31 13:50:51 +000043 'direct_dependent_settings': {
epoger@google.comdcab3a12011-06-24 19:09:09 +000044 'defines': [
45 'SK_SUPPORT_PDF',
46 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000047 'include_dirs': [
48 '../include/pdf',
49 ],
50 },
epoger@google.comae85aea2011-05-31 13:50:51 +000051 },
52 ],
53}