OLD | NEW |
1 # This file builds the PDF backend. | |
2 { | 1 { |
3 'targets': [ | 2 'targets': [ |
4 { | 3 { |
5 'target_name': 'pdf', | 4 'target_name': 'pdf', |
6 'product_name': 'skia_pdf', | 5 'product_name': 'skia_pdf', |
7 'type': 'static_library', | 6 'type': 'static_library', |
8 'standalone_static_library': 1, | 7 'standalone_static_library': 1, |
9 'dependencies': [ | 8 'dependencies': [ |
10 'skia_lib.gyp:skia_lib', | 9 'skia_lib.gyp:skia_lib', |
11 'zlib.gyp:zlib', | 10 'zlib.gyp:zlib', |
12 ], | 11 ], |
13 'includes': [ | 12 'includes': [ |
14 'pdf.gypi', | 13 'pdf.gypi', |
15 ], | 14 ], |
16 'include_dirs': [ | 15 'include_dirs': [ |
17 '../include/pdf', | 16 '../include/pdf', |
18 '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h | 17 '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h |
19 '../src/pdf', | 18 '../src/pdf', |
20 '../src/utils', # needed to get SkBitSet.h | 19 '../src/utils', # needed to get SkBitSet.h |
21 ], | 20 ], |
22 'sources': [ | 21 'sources': [ |
23 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). | 22 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). |
24 | 23 |
25 '../src/doc/SkDocument_PDF.cpp', # Chromium does use this file | 24 '../src/doc/SkDocument_PDF.cpp', # Chromium does use this file |
26 ], | 25 ], |
27 'conditions': [ | |
28 [ 'skia_android_framework', { | |
29 # Add SFTNLY support for PDF (which in turns depends on ICU) | |
30 'include_dirs': [ | |
31 'external/sfntly/cpp/src', | |
32 ], | |
33 'libraries': [ | |
34 'libsfntly.a', | |
35 '-licuuc', | |
36 '-licui18n', | |
37 ], | |
38 } | |
39 ], | |
40 ], | |
41 # This section makes all targets that depend on this target | 26 # This section makes all targets that depend on this target |
42 # #define SK_SUPPORT_PDF and have access to the pdf header files. | 27 # #define SK_SUPPORT_PDF and have access to the pdf header files. |
43 'direct_dependent_settings': { | 28 'direct_dependent_settings': { |
44 'defines': [ | 29 'defines': [ |
45 'SK_SUPPORT_PDF', | 30 'SK_SUPPORT_PDF', |
46 ], | 31 ], |
47 'include_dirs': [ | 32 'include_dirs': [ |
48 '../include/pdf', | 33 '../include/pdf', |
49 ], | 34 ], |
50 }, | 35 }, |
51 }, | 36 }, |
52 ], | 37 ], |
53 } | 38 } |
OLD | NEW |