summaryrefslogtreecommitdiffstats
path: root/third_party/harfbuzz-ng/harfbuzz.gyp
blob: 58bcbd4775103fa81ec7afb23c31dd80251592fe (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# 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': {
    'use_system_harfbuzz%': 0,
  },
  'includes': [
    '../../build/win_precompile.gypi',
  ],
  'conditions': [
    ['use_system_harfbuzz==0', {
      'targets': [
        {
          'target_name': 'harfbuzz-ng',
          'type': 'static_library',
          'defines': [
            'HAVE_OT',
            'HAVE_ICU',
            'HB_NO_MT',
          ],
          'sources': [
            'src/hb-atomic-private.hh',
            'src/hb-blob.cc',
            'src/hb-blob.h',
            'src/hb-buffer-private.hh',
            'src/hb-buffer.cc',
            'src/hb-buffer.h',
            'src/hb-cache-private.hh',
            'src/hb-common.cc',
            'src/hb-common.h',
            'src/hb-fallback-shape.cc',
            'src/hb-font-private.hh',
            'src/hb-font.cc',
            'src/hb-font.h',
            'src/hb-icu.cc',
            'src/hb-icu.h',
            'src/hb-mutex-private.hh',
            'src/hb-object-private.hh',
            'src/hb-open-file-private.hh',
            'src/hb-open-type-private.hh',
            'src/hb-ot-head-table.hh',
            'src/hb-ot-hhea-table.hh',
            'src/hb-ot-hmtx-table.hh',
            'src/hb-ot-layout-common-private.hh',
            'src/hb-ot-layout-gdef-table.hh',
            'src/hb-ot-layout-gpos-table.hh',
            'src/hb-ot-layout-gsub-table.hh',
            'src/hb-ot-layout-gsubgpos-private.hh',
            'src/hb-ot-layout-private.hh',
            'src/hb-ot-layout.cc',
            'src/hb-ot-layout.h',
            'src/hb-ot-map-private.hh',
            'src/hb-ot-map.cc',
            'src/hb-ot-maxp-table.hh',
            'src/hb-ot-name-table.hh',
            'src/hb-ot-shape-complex-arabic-fallback.hh',
            'src/hb-ot-shape-complex-arabic-table.hh',
            'src/hb-ot-shape-complex-arabic.cc',
            'src/hb-ot-shape-complex-indic-machine.hh',
            'src/hb-ot-shape-complex-indic-private.hh',
            'src/hb-ot-shape-complex-indic-table.hh',
            'src/hb-ot-shape-complex-indic.cc',
            'src/hb-ot-shape-complex-misc.cc',
            'src/hb-ot-shape-complex-private.hh',
            'src/hb-ot-shape-fallback-private.hh',
            'src/hb-ot-shape-fallback.cc',
            'src/hb-ot-shape-normalize-private.hh',
            'src/hb-ot-shape-normalize.cc',
            'src/hb-ot-shape-private.hh',
            'src/hb-ot-shape.cc',
            'src/hb-ot-tag.cc',
            'src/hb-ot-tag.h',
            'src/hb-ot.h',
            'src/hb-private.hh',
            'src/hb-set-private.hh',
            'src/hb-set.cc',
            'src/hb-set.h',
            'src/hb-shape-plan-private.hh',
            'src/hb-shape-plan.cc',
            'src/hb-shape-plan.h',
            'src/hb-shape.cc',
            'src/hb-shape.h',
            'src/hb-shaper-impl-private.hh',
            'src/hb-shaper-list.hh',
            'src/hb-shaper-private.hh',
            'src/hb-shaper.cc',
            'src/hb-tt-font.cc',
            'src/hb-unicode-private.hh',
            'src/hb-unicode.cc',
            'src/hb-unicode.h',
            'src/hb-utf-private.hh',
            'src/hb-version.h',
            'src/hb-warning.cc',
            'src/hb.h',
          ],
          'include_dirs': [
            'src',
          ],
          'direct_dependent_settings': {
            'include_dirs': [
              'src',
            ],
          },
          'dependencies': [
            '../../third_party/icu/icu.gyp:icuuc',
          ],
          'conditions': [
            ['clang==1', {
              'xcode_settings': {
                'WARNING_CFLAGS': [
                  '-Wno-unused-value',
                ],
              },
              'cflags': [
                '-Wno-unused-value',
              ]
            }],
          ],
        },
      ],
    }, { # use_system_harfbuzz == 1
      'targets': [
        {
          'target_name': 'harfbuzz-ng',
          'type': 'none',
          'cflags': [
            '<!@(pkg-config --cflags harfbuzz)',
          ],
          'direct_dependent_settings': {
            'cflags': [
              '<!@(pkg-config --cflags harfbuzz)',
            ],
          },
          'link_settings': {
            'ldflags': [
              '<!@(pkg-config --libs-only-L --libs-only-other harfbuzz)',
            ],
            'libraries': [
              '<!@(pkg-config --libs-only-l harfbuzz)',
            ],
          },
        },
      ],
    }],
  ],
}