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