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