aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/xps.gyp
blob: 29d5e075a9ab8794b3831f34315ba1b0800d14f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
  'targets': [
    {
      'target_name': 'xps',
      'product_name': 'skia_xps',
      'type': 'static_library',
      'standalone_static_library': 1,
      'dependencies': [
        'skia_lib.gyp:skia_lib',
        'sfnt.gyp:sfnt',
      ],
      'include_dirs': [
        '../include/device/xps',
        '../include/utils/win',
        '../src/core', # needed to get SkGlyphCache.h
        '../src/utils', # needed to get SkBitSet.h
      ],
      'sources': [
        '../include/device/xps/SkConstexprMath.h',
        '../include/device/xps/SkXPSDevice.h',

        '../src/device/xps/SkXPSDevice.cpp',
      ],
      'conditions': [
        [ 'skia_os == "win"', {
          'link_settings': {
            'libraries': [
              'T2Embed.lib',
              'FontSub.lib',
            ],
          },
        },{ #else if 'skia_os != "win"'
          'include_dirs!': [
            '../include/utils/win',
          ],
          'sources!': [
            '../include/device/xps/SkXPSDevice.h',

            '../src/device/xps/SkXPSDevice.cpp',
          ],
        }],
      ],
      # This section makes all targets that depend on this target
      # #define SK_SUPPORT_XPS and have access to the xps header files.
      'direct_dependent_settings': {
        'conditions': [
          [ 'skia_os == "win"', {
            'defines': [
              'SK_SUPPORT_XPS',
            ],
          }],
        ],
        'include_dirs': [
          '../include/device/xps',
          '../src/utils', # needed to get SkBitSet.h
        ],
      },
    },
  ],
}

# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: