OLD | NEW |
| (Empty) |
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/ftmm.c', | |
38 '<(ft2_dir)/src/base/ftpfr.c', | |
39 '<(ft2_dir)/src/base/ftstroke.c', | |
40 '<(ft2_dir)/src/base/ftsynth.c', | |
41 '<(ft2_dir)/src/base/fttype1.c', | |
42 '<(ft2_dir)/src/base/ftwinfnt.c', | |
43 '<(ft2_dir)/src/base/ftxf86.c', | |
44 | |
45 '<(ft2_dir)/src/bdf/bdf.c', | |
46 '<(ft2_dir)/src/cff/cff.c', | |
47 '<(ft2_dir)/src/cid/type1cid.c', | |
48 '<(ft2_dir)/src/pcf/pcf.c', | |
49 '<(ft2_dir)/src/pfr/pfr.c', | |
50 '<(ft2_dir)/src/sfnt/sfnt.c', | |
51 '<(ft2_dir)/src/truetype/truetype.c', | |
52 '<(ft2_dir)/src/type1/type1.c', | |
53 '<(ft2_dir)/src/type42/type42.c', | |
54 '<(ft2_dir)/src/winfonts/winfnt.c', | |
55 | |
56 '<(ft2_dir)/src/psaux/psaux.c', | |
57 '<(ft2_dir)/src/psnames/psnames.c', | |
58 '<(ft2_dir)/src/pshinter/pshinter.c', | |
59 | |
60 '<(ft2_dir)/src/raster/raster.c', | |
61 '<(ft2_dir)/src/smooth/smooth.c', | |
62 | |
63 '<(ft2_dir)/src/autofit/autofit.c', | |
64 '<(ft2_dir)/src/gzip/ftgzip.c', | |
65 '<(ft2_dir)/src/lzw/ftlzw.c', | |
66 ], | |
67 'defines': [ | |
68 'FT_CONFIG_OPTION_SYSTEM_ZLIB', | |
69 'FT2_BUILD_LIBRARY', | |
70 'FT_CONFIG_CONFIG_H=<ftconfig.h>', # See comments in README.chromium. | |
71 'FT_CONFIG_MODULES_H=<ftmodule.h>', # See comments in README.chromium. | |
72 ], | |
73 'include_dirs': [ | |
74 'include', | |
75 '<(ft2_dir)/include', | |
76 ], | |
77 'direct_dependent_settings': { | |
78 'include_dirs': [ | |
79 'include', | |
80 '<(ft2_dir)/include', | |
81 ], | |
82 }, | |
83 'link_settings': { | |
84 'libraries': [ | |
85 '-lz', | |
86 ], | |
87 }, | |
88 }, | |
89 ], # targets | |
90 } | |
OLD | NEW |