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 ], | |
24 'conditions': [ | 8 'conditions': [ |
25 [ 'skia_os == "win"', { | 9 [ '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 ], |
26 'link_settings': { | 27 'link_settings': { |
27 'libraries': [ | 28 'libraries': [ |
28 '-lt2embed.lib', | 29 '-lt2embed.lib', |
29 '-lfontsub.lib', | 30 '-lfontsub.lib', |
30 ], | 31 ], |
31 }, | 32 }, |
| 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 }, |
32 },{ #else if 'skia_os != "win"' | 40 },{ #else if 'skia_os != "win"' |
33 'include_dirs!': [ | 41 'sources': [ '../src/doc/SkDocument_XPS_None.cpp', ], |
34 '../include/utils/win', | 42 'dependencies': [ 'skia_lib.gyp:skia_lib', ], |
35 ], | |
36 'sources!': [ | |
37 '../include/device/xps/SkXPSDevice.h', | |
38 | |
39 '../src/device/xps/SkXPSDevice.cpp', | |
40 ], | |
41 }], | 43 }], |
42 ], | 44 ], |
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 }, | |
58 }, | 45 }, |
59 ], | 46 ], |
60 } | 47 } |
OLD | NEW |