| OLD | NEW |
| 1 # This file builds the PDF backend. | 1 # This file builds the PDF backend. |
| 2 { | 2 { |
| 3 'targets': [ | 3 'targets': [ |
| 4 { | 4 { |
| 5 'target_name': 'pdf', | 5 'target_name': 'pdf', |
| 6 'product_name': 'skia_pdf', | 6 'product_name': 'skia_pdf', |
| 7 'type': 'static_library', | 7 'type': 'static_library', |
| 8 'standalone_static_library': 1, | 8 'standalone_static_library': 1, |
| 9 'dependencies': [ | 9 'dependencies': [ |
| 10 'skia_lib.gyp:skia_lib', | 10 'skia_lib.gyp:skia_lib', |
| 11 'skflate.gyp:skflate', | 11 'skflate.gyp:skflate', |
| 12 ], | 12 ], |
| 13 'includes': [ | 13 'includes': [ |
| 14 'pdf.gypi', | 14 'pdf.gypi', |
| 15 ], | 15 ], |
| 16 'include_dirs': [ | 16 'include_dirs': [ |
| 17 '../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 'conditions': [ | 24 'conditions': [ |
| 26 [ 'skia_android_framework', { | 25 [ 'skia_android_framework', { |
| 27 # Add SFTNLY support for PDF (which in turns depends on ICU) | 26 # Add SFTNLY support for PDF (which in turns depends on ICU) |
| 28 'include_dirs': [ | 27 'include_dirs': [ |
| 29 'external/sfntly/cpp/src', | 28 'external/sfntly/cpp/src', |
| 30 ], | 29 ], |
| 31 'libraries': [ | 30 'libraries': [ |
| 32 'libsfntly.a', | 31 'libsfntly.a', |
| 33 '-licuuc', | 32 '-licuuc', |
| 34 '-licui18n', | 33 '-licui18n', |
| 35 ], | 34 ], |
| 36 } | 35 } |
| 37 ], | 36 ], |
| 38 ], | 37 ], |
| 39 # This section makes all targets that depend on this target | |
| 40 # #define SK_SUPPORT_PDF and have access to the pdf header files. | |
| 41 'direct_dependent_settings': { | 38 'direct_dependent_settings': { |
| 42 'defines': [ | 39 'defines': [ |
| 43 'SK_SUPPORT_PDF', | 40 'SK_SUPPORT_PDF', |
| 44 ], | 41 ], |
| 45 'include_dirs': [ | |
| 46 '../include/pdf', | |
| 47 ], | |
| 48 }, | 42 }, |
| 49 }, | 43 }, |
| 50 ], | 44 ], |
| 51 } | 45 } |
| OLD | NEW |