scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 1 | # Copyright 2015 Google Inc. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 5 | # This file builds the PDF backend. |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 6 | { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 7 | 'targets': [ |
| 8 | { |
halcanary | 8ee06f2 | 2015-08-11 10:30:12 -0700 | [diff] [blame] | 9 | 'target_name': 'nopdf', |
| 10 | 'type': 'static_library', |
| 11 | 'dependencies': [ 'skia_lib.gyp:skia_lib', ], |
halcanary | 23f4d4d | 2016-03-12 05:59:39 -0800 | [diff] [blame] | 12 | 'sources': [ '<(skia_src_path)/pdf/SkDocument_PDF_None.cpp', ], |
halcanary | 8ee06f2 | 2015-08-11 10:30:12 -0700 | [diff] [blame] | 13 | }, |
| 14 | { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 15 | 'target_name': 'pdf', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 16 | 'product_name': 'skia_pdf', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 17 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 18 | 'standalone_static_library': 1, |
halcanary | 6e26205 | 2016-03-29 10:10:24 -0700 | [diff] [blame] | 19 | 'variables': { |
| 20 | 'skia_pdf_use_sfntly%': 1, |
halcanary | 6e26205 | 2016-03-29 10:10:24 -0700 | [diff] [blame] | 21 | }, |
vandebo@chromium.org | ec1a7fa | 2012-03-21 23:11:46 +0000 | [diff] [blame] | 22 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 23 | 'skia_lib.gyp:skia_lib', |
halcanary | d9e5715 | 2015-08-12 11:24:40 -0700 | [diff] [blame] | 24 | 'zlib.gyp:zlib', |
vandebo@chromium.org | ec1a7fa | 2012-03-21 23:11:46 +0000 | [diff] [blame] | 25 | ], |
commit-bot@chromium.org | 7e5d186 | 2013-08-04 15:09:23 +0000 | [diff] [blame] | 26 | 'includes': [ |
| 27 | 'pdf.gypi', |
| 28 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 29 | 'include_dirs': [ |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 30 | '../include/private', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 31 | '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h |
halcanary | 7a14b31 | 2015-10-01 07:28:13 -0700 | [diff] [blame] | 32 | '../src/image', |
vandebo@chromium.org | ec1a7fa | 2012-03-21 23:11:46 +0000 | [diff] [blame] | 33 | '../src/utils', # needed to get SkBitSet.h |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 34 | ], |
| 35 | 'sources': [ |
commit-bot@chromium.org | 7e5d186 | 2013-08-04 15:09:23 +0000 | [diff] [blame] | 36 | 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the build). |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 37 | ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 38 | 'conditions': [ |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 39 | [ 'skia_pdf_use_sfntly and not skia_android_framework and \ |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 40 | skia_os in ["win", "android", "linux", "mac"]', |
halcanary | 650e20d | 2016-08-25 09:07:02 -0700 | [diff] [blame] | 41 | { |
| 42 | 'dependencies': [ 'sfntly.gyp:sfntly' ], |
| 43 | 'defines': [ 'SK_PDF_USE_SFNTLY' ], |
| 44 | } |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 45 | ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 46 | [ 'skia_android_framework', { |
| 47 | # Add SFTNLY support for PDF (which in turns depends on ICU) |
halcanary | 650e20d | 2016-08-25 09:07:02 -0700 | [diff] [blame] | 48 | 'include_dirs': [ 'external/sfntly/cpp/src' ], |
| 49 | 'defines': [ 'SK_PDF_USE_SFNTLY' ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 50 | 'libraries': [ |
| 51 | 'libsfntly.a', |
| 52 | '-licuuc', |
| 53 | '-licui18n', |
| 54 | ], |
| 55 | } |
| 56 | ], |
| 57 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 58 | 'direct_dependent_settings': { |
caryclark | ac8d8b8 | 2015-01-07 07:36:52 -0800 | [diff] [blame] | 59 | 'include_dirs': [ |
halcanary | 07327bf | 2015-02-19 07:26:12 -0800 | [diff] [blame] | 60 | '../include/core', # SkDocument.h |
caryclark | ac8d8b8 | 2015-01-07 07:36:52 -0800 | [diff] [blame] | 61 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 62 | }, |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 63 | }, |
| 64 | ], |
| 65 | } |