| 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': 'nopdf', | 9 'target_name': 'nopdf', |
| 10 'type': 'static_library', | 10 'type': 'static_library', |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 '../src/utils', # needed to get SkBitSet.h | 33 '../src/utils', # needed to get SkBitSet.h |
| 34 ], | 34 ], |
| 35 'sources': [ | 35 'sources': [ |
| 36 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). | 36 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). |
| 37 ], | 37 ], |
| 38 'conditions': [ | 38 'conditions': [ |
| 39 [ 'skia_pdf_use_sfntly and not skia_android_framework and \ | 39 [ 'skia_pdf_use_sfntly and not skia_android_framework and \ |
| 40 skia_os in ["win", "android", "linux", "chromeos", "mac"]', | 40 skia_os in ["win", "android", "linux", "chromeos", "mac"]', |
| 41 { 'dependencies': [ 'sfntly.gyp:sfntly' ] } | 41 { 'dependencies': [ 'sfntly.gyp:sfntly' ] } |
| 42 ], | 42 ], |
| 43 [ 'skia_pdf_generate_pdfa', { 'defines': ['SK_PDF_GENERATE_PDFA'] } ], |
| 43 [ 'skia_android_framework', { | 44 [ 'skia_android_framework', { |
| 44 # Add SFTNLY support for PDF (which in turns depends on ICU) | 45 # Add SFTNLY support for PDF (which in turns depends on ICU) |
| 45 'include_dirs': [ | 46 'include_dirs': [ |
| 46 'external/sfntly/cpp/src', | 47 'external/sfntly/cpp/src', |
| 47 ], | 48 ], |
| 48 'libraries': [ | 49 'libraries': [ |
| 49 'libsfntly.a', | 50 'libsfntly.a', |
| 50 '-licuuc', | 51 '-licuuc', |
| 51 '-licui18n', | 52 '-licui18n', |
| 52 ], | 53 ], |
| 53 } | 54 } |
| 54 ], | 55 ], |
| 55 ], | 56 ], |
| 56 'direct_dependent_settings': { | 57 'direct_dependent_settings': { |
| 57 'defines': [ 'SK_SUPPORT_PDF=1', ], | 58 'defines': [ 'SK_SUPPORT_PDF=1', ], |
| 58 'include_dirs': [ | 59 'include_dirs': [ |
| 59 '../include/core', # SkDocument.h | 60 '../include/core', # SkDocument.h |
| 60 ], | 61 ], |
| 61 }, | 62 }, |
| 62 }, | 63 }, |
| 63 ], | 64 ], |
| 64 } | 65 } |
| OLD | NEW |