- add sources.
[platform/framework/web/crosswalk.git] / src / third_party / freetype2 / freetype2.gyp
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6  'variables': {
7     'ft2_dir': 'src',
8  },
9  'targets': [
10     {
11       # We use a hard-coded shared library version in product_extension
12       # in order to match the version used on Ubuntu Precise.
13       # We also disable bzip2 and the ftpatent code to match the version
14       # that shipped on Ubuntu Lucid.
15       'target_name': 'freetype2',
16       'type': 'shared_library',
17       'product_name': 'freetype',
18       'product_extension': 'so.6',
19       'toolsets': ['target'],
20       'sources': [
21         '<(ft2_dir)/src/base/ftsystem.c',
22         '<(ft2_dir)/src/base/ftinit.c',
23         '<(ft2_dir)/src/base/ftdebug.c',
24
25         '<(ft2_dir)/src/base/ftbase.c',
26
27         '<(ft2_dir)/src/base/ftbbox.c',
28         '<(ft2_dir)/src/base/ftglyph.c',
29
30         '<(ft2_dir)/src/base/ftbdf.c',
31         '<(ft2_dir)/src/base/ftbitmap.c',
32         '<(ft2_dir)/src/base/ftcid.c',
33         '<(ft2_dir)/src/base/ftfstype.c',
34         '<(ft2_dir)/src/base/ftgasp.c',
35         '<(ft2_dir)/src/base/ftgxval.c',
36         '<(ft2_dir)/src/base/ftlcdfil.c',
37         '<(ft2_dir)/src/base/ftpfr.c',
38         '<(ft2_dir)/src/base/ftstroke.c',
39         '<(ft2_dir)/src/base/ftsynth.c',
40         '<(ft2_dir)/src/base/fttype1.c',
41         '<(ft2_dir)/src/base/ftwinfnt.c',
42         '<(ft2_dir)/src/base/ftxf86.c',
43
44         '<(ft2_dir)/src/bdf/bdf.c',
45         '<(ft2_dir)/src/cff/cff.c',
46         '<(ft2_dir)/src/cid/type1cid.c',
47         '<(ft2_dir)/src/pcf/pcf.c',
48         '<(ft2_dir)/src/pfr/pfr.c',
49         '<(ft2_dir)/src/sfnt/sfnt.c',
50         '<(ft2_dir)/src/truetype/truetype.c',
51         '<(ft2_dir)/src/type1/type1.c',
52         '<(ft2_dir)/src/type42/type42.c',
53         '<(ft2_dir)/src/winfonts/winfnt.c',
54
55         '<(ft2_dir)/src/psaux/psaux.c',
56         '<(ft2_dir)/src/psnames/psnames.c',
57         '<(ft2_dir)/src/pshinter/pshinter.c',
58
59         '<(ft2_dir)/src/raster/raster.c',
60         '<(ft2_dir)/src/smooth/smooth.c',
61
62         '<(ft2_dir)/src/autofit/autofit.c',
63         '<(ft2_dir)/src/gzip/ftgzip.c',
64         '<(ft2_dir)/src/lzw/ftlzw.c',
65       ],
66       'defines': [
67         'FT_CONFIG_OPTION_SYSTEM_ZLIB',
68         'FT2_BUILD_LIBRARY',
69         'FT_CONFIG_CONFIG_H=<ftconfig.h>',  # See comments in README.chromium.
70         'FT_CONFIG_MODULES_H=<ftmodule.h>',  # See comments in README.chromium.
71       ],
72       'include_dirs': [
73         'include',
74         '<(ft2_dir)/include',
75       ],
76       'direct_dependent_settings': {
77         'include_dirs': [
78           'include',
79           '<(ft2_dir)/include',
80         ],
81       },
82       'link_settings': {
83         'libraries': [
84           '-lz',
85         ],
86       },
87     },
88   ], # targets
89 }