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 | { |
| 9 | 'target_name': 'pdf', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 10 | 'product_name': 'skia_pdf', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 11 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 12 | 'standalone_static_library': 1, |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 13 | 'variables': { 'skia_pdf_use_sfntly%': 1, }, |
vandebo@chromium.org | ec1a7fa | 2012-03-21 23:11:46 +0000 | [diff] [blame] | 14 | 'dependencies': [ |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 15 | 'skia_lib.gyp:skia_lib', |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 16 | 'skflate.gyp:skflate', |
vandebo@chromium.org | ec1a7fa | 2012-03-21 23:11:46 +0000 | [diff] [blame] | 17 | ], |
commit-bot@chromium.org | 7e5d186 | 2013-08-04 15:09:23 +0000 | [diff] [blame] | 18 | 'includes': [ |
| 19 | 'pdf.gypi', |
| 20 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 21 | 'include_dirs': [ |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 22 | '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h |
commit-bot@chromium.org | 5e00989 | 2013-10-14 13:42:12 +0000 | [diff] [blame] | 23 | '../src/pdf', |
vandebo@chromium.org | ec1a7fa | 2012-03-21 23:11:46 +0000 | [diff] [blame] | 24 | '../src/utils', # needed to get SkBitSet.h |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 25 | ], |
| 26 | 'sources': [ |
commit-bot@chromium.org | 7e5d186 | 2013-08-04 15:09:23 +0000 | [diff] [blame] | 27 | '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] | 28 | ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 29 | 'conditions': [ |
halcanary | 7be0ce0 | 2015-05-18 13:15:56 -0700 | [diff] [blame] | 30 | [ 'skia_pdf_use_sfntly and not skia_android_framework and \ |
| 31 | skia_os in ["win", "android", "linux", "chromeos", "mac"]', |
| 32 | { 'dependencies': [ 'sfntly.gyp:sfntly' ] } |
| 33 | ], |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 34 | [ 'skia_android_framework', { |
| 35 | # Add SFTNLY support for PDF (which in turns depends on ICU) |
| 36 | 'include_dirs': [ |
| 37 | 'external/sfntly/cpp/src', |
| 38 | ], |
| 39 | 'libraries': [ |
| 40 | 'libsfntly.a', |
| 41 | '-licuuc', |
| 42 | '-licui18n', |
| 43 | ], |
| 44 | } |
| 45 | ], |
| 46 | ], |
caryclark | ac8d8b8 | 2015-01-07 07:36:52 -0800 | [diff] [blame] | 47 | # This section makes all targets that depend on this target |
| 48 | # #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] | 49 | 'direct_dependent_settings': { |
epoger@google.com | dcab3a1 | 2011-06-24 19:09:09 +0000 | [diff] [blame] | 50 | 'defines': [ |
| 51 | 'SK_SUPPORT_PDF', |
| 52 | ], |
caryclark | ac8d8b8 | 2015-01-07 07:36:52 -0800 | [diff] [blame] | 53 | 'include_dirs': [ |
halcanary | 07327bf | 2015-02-19 07:26:12 -0800 | [diff] [blame] | 54 | '../include/core', # SkDocument.h |
caryclark | ac8d8b8 | 2015-01-07 07:36:52 -0800 | [diff] [blame] | 55 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 56 | }, |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 57 | }, |
| 58 | ], |
| 59 | } |