aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/harfbuzz.gyp
blob: f8127a926eade9a10d56d7f2c7d2158aca51eccc (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
# Copyright (c) 2012 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.

{
  'variables': {
    'hb_directory': '../third_party/externals/harfbuzz',
  },
  'targets': [
    {
      'target_name': 'harfbuzz',
      'type': 'static_library',
      'defines': [
        'HAVE_OT',
        'HAVE_ICU',
        'HAVE_ICU_BUILTIN',
        'HB_NO_MT',
      ],
      'sources': [
        '<!@(python find.py "hb-*.c*" <(hb_directory)/src)',
      ],
      'sources!': [
        '<(hb_directory)/src/hb-directwrite.cc',
        '<(hb_directory)/src/hb-ft.cc',
        '<(hb_directory)/src/hb-glib.cc',
        '<(hb_directory)/src/hb-gobject-structs.cc',
        '<(hb_directory)/src/hb-graphite2.cc',
        '<(hb_directory)/src/hb-ucdn.cc',
        '<(hb_directory)/src/hb-uniscribe.cc',
      ],
      'include_dirs': [
        '<(hb_directory)/src',
        '../third_party/harfbuzz',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          '<(hb_directory)/src',
          '../third_party/harfbuzz',
        ],
      },
      'dependencies': [ 'icu.gyp:icuuc', ],
      'cflags': [ '-w', ],
      'msvs_settings': {
        'VCCLCompilerTool': {
          'WarningLevel': '0',
          'AdditionalOptions': [ '/wd4189', ],
        },
      },
      'xcode_settings': { 'WARNING_CFLAGS': [ '-w', ], },
      'conditions': [
        [ 'skia_os == "mac"',
          {
            'defines': [ 'HAVE_CORETEXT', ],
          }, {
            'sources!': [ '<(hb_directory)/src/hb-coretext.cc', ],
          }
        ],
      ],
    },
  ],
}