aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/sfntly.gyp
blob: 09d40943dd11149dc38414939868f4bd1270a8c0 (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
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
  'targets': [
    {
      'target_name': 'sfntly',
      'type': 'static_library',
      'includes': [
        'common_conditions.gypi',
        'common_variables.gypi',
      ],
      'variables': {
        'sfntly_src_path': '../third_party/externals/sfntly/cpp/src',
      },
      'direct_dependent_settings': {
        'include_dirs': [ '<(sfntly_src_path)', ],
      },
      'sources': [
        '<(sfntly_src_path)/sample/chromium/font_subsetter.cc',
        '<(sfntly_src_path)/sample/chromium/subsetter_impl.cc',
        '<!@(python find.py "*.c*" "<(sfntly_src_path)/sfntly")'
      ],
      'include_dirs': [
        '<(sfntly_src_path)',
      ],
      'defines': [
        'SFNTLY_NO_EXCEPTION',
      ],
      'dependencies' : [
        'icu.gyp:icuuc',
      ],
      'conditions': [
        [ 'skia_os == "win"',
          {
            'defines': [ 'WIN32', 'NOMINMAX', ],
            'msvs_settings': {
              'VCCLCompilerTool': {
                'AdditionalOptions': [ '/EHsc' ],
              },
            },
          }
        ],
        [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]',
          { 'link_settings': { 'libraries': [ '-lpthread', ], }, },
        ],
      ],
      # TODO(jschuh): http://crbug.com/167187
      'msvs_disabled_warnings': [ 4267, 4244 ],
    },
  ]
}