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 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 26 | 'include_dirs': [ |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 27 | '../include/private', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 28 | '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h |
halcanary | 7a14b31 | 2015-10-01 07:28:13 -0700 | [diff] [blame] | 29 | '../src/image', |
vandebo@chromium.org | ec1a7fa | 2012-03-21 23:11:46 +0000 | [diff] [blame] | 30 | '../src/utils', # needed to get SkBitSet.h |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 31 | ], |
| 32 | 'sources': [ |
Mike Klein | 552cd13 | 2016-10-26 13:32:07 -0400 | [diff] [blame] | 33 | '<!@(python read_gni.py ../gn/pdf.gni skia_pdf_sources)', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 34 | ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 35 | 'conditions': [ |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 36 | [ 'skia_pdf_use_sfntly and not skia_android_framework and \ |
borenet | 43bf511 | 2016-04-29 14:01:34 -0700 | [diff] [blame] | 37 | skia_os in ["win", "android", "linux", "mac"]', |
halcanary | 650e20d | 2016-08-25 09:07:02 -0700 | [diff] [blame] | 38 | { |
| 39 | 'dependencies': [ 'sfntly.gyp:sfntly' ], |
| 40 | 'defines': [ 'SK_PDF_USE_SFNTLY' ], |
| 41 | } |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 42 | ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 43 | [ 'skia_android_framework', { |
| 44 | # Add SFTNLY support for PDF (which in turns depends on ICU) |
halcanary | 650e20d | 2016-08-25 09:07:02 -0700 | [diff] [blame] | 45 | 'include_dirs': [ 'external/sfntly/cpp/src' ], |
| 46 | 'defines': [ 'SK_PDF_USE_SFNTLY' ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 47 | 'libraries': [ |
| 48 | 'libsfntly.a', |
| 49 | '-licuuc', |
| 50 | '-licui18n', |
| 51 | ], |
| 52 | } |
| 53 | ], |
| 54 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 55 | 'direct_dependent_settings': { |
caryclark | ac8d8b8 | 2015-01-07 07:36:52 -0800 | [diff] [blame] | 56 | 'include_dirs': [ |
halcanary | 07327bf | 2015-02-19 07:26:12 -0800 | [diff] [blame] | 57 | '../include/core', # SkDocument.h |
caryclark | ac8d8b8 | 2015-01-07 07:36:52 -0800 | [diff] [blame] | 58 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 59 | }, |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 60 | }, |
| 61 | ], |
| 62 | } |