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