scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 1 | # This file builds the PDF backend. |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 2 | { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 3 | 'targets': [ |
| 4 | { |
| 5 | 'target_name': 'pdf', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 6 | 'product_name': 'skia_pdf', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 7 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 8 | 'standalone_static_library': 1, |
vandebo@chromium.org | ec1a7fa | 2012-03-21 23:11:46 +0000 | [diff] [blame] | 9 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 10 | 'skia_lib.gyp:skia_lib', |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 11 | 'skflate.gyp:skflate', |
vandebo@chromium.org | ec1a7fa | 2012-03-21 23:11:46 +0000 | [diff] [blame] | 12 | ], |
commit-bot@chromium.org | 7e5d186 | 2013-08-04 15:09:23 +0000 | [diff] [blame] | 13 | 'includes': [ |
| 14 | 'pdf.gypi', |
| 15 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 16 | 'include_dirs': [ |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 17 | '../include/pdf', |
| 18 | '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h |
commit-bot@chromium.org | 5e00989 | 2013-10-14 13:42:12 +0000 | [diff] [blame] | 19 | '../src/pdf', |
vandebo@chromium.org | ec1a7fa | 2012-03-21 23:11:46 +0000 | [diff] [blame] | 20 | '../src/utils', # needed to get SkBitSet.h |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 21 | ], |
| 22 | 'sources': [ |
commit-bot@chromium.org | 7e5d186 | 2013-08-04 15:09:23 +0000 | [diff] [blame] | 23 | 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the build). |
robertphillips@google.com | 62aa8d6 | 2013-08-26 13:47:20 +0000 | [diff] [blame] | 24 | |
| 25 | '../src/doc/SkDocument_PDF.cpp', # Chromium does use this file |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 26 | ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 27 | '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.com | dcab3a1 | 2011-06-24 19:09:09 +0000 | [diff] [blame] | 41 | # 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.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 43 | 'direct_dependent_settings': { |
epoger@google.com | dcab3a1 | 2011-06-24 19:09:09 +0000 | [diff] [blame] | 44 | 'defines': [ |
| 45 | 'SK_SUPPORT_PDF', |
| 46 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 47 | 'include_dirs': [ |
| 48 | '../include/pdf', |
| 49 | ], |
| 50 | }, |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 51 | }, |
| 52 | ], |
| 53 | } |