OLD | NEW |
1 { | 1 { |
2 'targets': [ | 2 'targets': [ |
3 { | 3 { |
4 'target_name': 'xps', | 4 'target_name': 'xps', |
5 'product_name': 'skia_xps', | 5 'product_name': 'skia_xps', |
6 'type': 'static_library', | 6 'type': 'static_library', |
7 'standalone_static_library': 1, | 7 'standalone_static_library': 1, |
| 8 'dependencies': [ |
| 9 'skia_lib.gyp:skia_lib', |
| 10 'sfnt.gyp:sfnt', |
| 11 ], |
| 12 'include_dirs': [ |
| 13 '../include/device/xps', |
| 14 '../include/utils/win', |
| 15 '../src/core', # needed to get SkGlyphCache.h |
| 16 '../src/utils', # needed to get SkBitSet.h |
| 17 ], |
| 18 'sources': [ |
| 19 '../include/device/xps/SkConstexprMath.h', |
| 20 '../include/device/xps/SkXPSDevice.h', |
| 21 |
| 22 '../src/device/xps/SkXPSDevice.cpp', |
| 23 ], |
8 'conditions': [ | 24 'conditions': [ |
9 [ 'skia_os == "win"', { | 25 [ 'skia_os == "win"', { |
10 'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ], | |
11 'dependencies': [ | |
12 'skia_lib.gyp:skia_lib', | |
13 'sfnt.gyp:sfnt', | |
14 ], | |
15 'include_dirs': [ | |
16 '../include/device/xps', | |
17 '../include/utils/win', | |
18 '../src/core', # needed to get SkGlyphCache.h | |
19 '../src/utils', # needed to get SkBitSet.h | |
20 ], | |
21 'sources': [ | |
22 '../include/device/xps/SkConstexprMath.h', | |
23 '../include/device/xps/SkXPSDevice.h', | |
24 '../src/device/xps/SkXPSDevice.cpp', | |
25 '../src/doc/SkDocument_XPS.cpp', | |
26 ], | |
27 'link_settings': { | 26 'link_settings': { |
28 'libraries': [ | 27 'libraries': [ |
29 '-lt2embed.lib', | 28 '-lt2embed.lib', |
30 '-lfontsub.lib', | 29 '-lfontsub.lib', |
31 ], | 30 ], |
32 }, | 31 }, |
33 'direct_dependent_settings': { | |
34 'defines': [ 'SK_XPS_USE_DETERMINISTIC_IDS', ], | |
35 'include_dirs': [ | |
36 '../include/device/xps', | |
37 '../src/utils', # needed to get SkBitSet.h | |
38 ], | |
39 }, | |
40 },{ #else if 'skia_os != "win"' | 32 },{ #else if 'skia_os != "win"' |
41 'sources': [ '../src/doc/SkDocument_XPS_None.cpp', ], | 33 'include_dirs!': [ |
42 'dependencies': [ 'skia_lib.gyp:skia_lib', ], | 34 '../include/utils/win', |
| 35 ], |
| 36 'sources!': [ |
| 37 '../include/device/xps/SkXPSDevice.h', |
| 38 |
| 39 '../src/device/xps/SkXPSDevice.cpp', |
| 40 ], |
43 }], | 41 }], |
44 ], | 42 ], |
| 43 # This section makes all targets that depend on this target |
| 44 # #define SK_SUPPORT_XPS and have access to the xps header files. |
| 45 'direct_dependent_settings': { |
| 46 'conditions': [ |
| 47 [ 'skia_os == "win"', { |
| 48 'defines': [ |
| 49 'SK_SUPPORT_XPS', |
| 50 ], |
| 51 }], |
| 52 ], |
| 53 'include_dirs': [ |
| 54 '../include/device/xps', |
| 55 '../src/utils', # needed to get SkBitSet.h |
| 56 ], |
| 57 }, |
45 }, | 58 }, |
46 ], | 59 ], |
47 } | 60 } |
OLD | NEW |