summaryrefslogtreecommitdiff
path: root/freetype.gyp
blob: 22e22a94fc564404b1b0fb34559544a5bec2c9b4 (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
# 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.

{
  'conditions': [
    [ 'OS == "android"', {
      'targets': [
        {
          'target_name': 'ft2',
          'type': 'static_library',
          'toolsets': ['target'],
          'sources': [
            # The following files are not sorted alphabetically, but in the
            # same order as in Android.mk to ease maintenance.
            'src/base/ftbbox.c',
            'src/base/ftbitmap.c',
            'src/base/ftfstype.c',
            'src/base/ftglyph.c',
            'src/base/ftlcdfil.c',
            'src/base/ftstroke.c',
            'src/base/fttype1.c',
            'src/base/ftxf86.c',
            'src/base/ftbase.c',
            'src/base/ftsystem.c',
            'src/base/ftinit.c',
            'src/base/ftgasp.c',
            'src/raster/raster.c',
            'src/sfnt/sfnt.c',
            'src/smooth/smooth.c',
            'src/autofit/autofit.c',
            'src/truetype/truetype.c',
            'src/cff/cff.c',
            'src/psnames/psnames.c',
            'src/pshinter/pshinter.c',
          ],
          'dependencies': [
            '../libpng/libpng.gyp:libpng',
            '../zlib/zlib.gyp:zlib',
          ],
          'include_dirs': [
            'build',
            'include',
          ],
          'defines': [
            'FT2_BUILD_LIBRARY',
            'DARWIN_NO_CARBON',
          ],
          'direct_dependent_settings': {
            'include_dirs': [
              '../../third_party/freetype/include',
            ],
          },
        },
      ],
    }],
  ],
}