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. |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 5 | { |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 6 | 'targets': [ |
| 7 | { |
| 8 | 'target_name': 'xps', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 9 | 'product_name': 'skia_xps', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 10 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 11 | 'standalone_static_library': 1, |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 12 | 'conditions': [ |
| 13 | [ 'skia_os == "win"', { |
halcanary | 47ef4d5 | 2015-03-03 09:13:09 -0800 | [diff] [blame] | 14 | 'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ], |
| 15 | 'dependencies': [ |
| 16 | 'skia_lib.gyp:skia_lib', |
halcanary | 47ef4d5 | 2015-03-03 09:13:09 -0800 | [diff] [blame] | 17 | ], |
| 18 | 'include_dirs': [ |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 19 | '../include/private', |
halcanary | 47ef4d5 | 2015-03-03 09:13:09 -0800 | [diff] [blame] | 20 | '../include/utils/win', |
| 21 | '../src/core', # needed to get SkGlyphCache.h |
| 22 | '../src/utils', # needed to get SkBitSet.h |
| 23 | ], |
| 24 | 'sources': [ |
halcanary | 23f4d4d | 2016-03-12 05:59:39 -0800 | [diff] [blame] | 25 | '../src/xps/SkDocument_XPS.cpp', |
| 26 | '../src/xps/SkXPSDevice.cpp', |
| 27 | '../src/xps/SkXPSDevice.h', |
halcanary | 47ef4d5 | 2015-03-03 09:13:09 -0800 | [diff] [blame] | 28 | ], |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 29 | 'link_settings': { |
| 30 | 'libraries': [ |
bungeman@google.com | 24339aa | 2013-12-02 19:54:33 +0000 | [diff] [blame] | 31 | '-lt2embed.lib', |
| 32 | '-lfontsub.lib', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 33 | ], |
| 34 | }, |
halcanary | 47ef4d5 | 2015-03-03 09:13:09 -0800 | [diff] [blame] | 35 | 'direct_dependent_settings': { |
| 36 | 'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ], |
| 37 | 'include_dirs': [ |
| 38 | '../include/device/xps', |
| 39 | '../src/utils', # needed to get SkBitSet.h |
| 40 | ], |
| 41 | }, |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 42 | },{ #else if 'skia_os != "win"' |
halcanary | 23f4d4d | 2016-03-12 05:59:39 -0800 | [diff] [blame] | 43 | 'sources': [ '../src/xps/SkDocument_XPS_None.cpp', ], |
halcanary | 47ef4d5 | 2015-03-03 09:13:09 -0800 | [diff] [blame] | 44 | 'dependencies': [ 'skia_lib.gyp:skia_lib', ], |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 45 | }], |
| 46 | ], |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 47 | }, |
| 48 | ], |
| 49 | } |