OLD | NEW |
| (Empty) |
1 # Copyright (c) 2011 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 'conditions': [ | |
10 [ 'OS=="android" or chromecast==1', { | |
11 'targets': [ | |
12 { | |
13 'target_name': 'ft2', | |
14 'type': 'static_library', | |
15 'sources': [ | |
16 # The following files are not sorted alphabetically, but in the | |
17 # same order as in Android.mk to ease maintenance. | |
18 '<(ft2_dir)/src/base/ftbbox.c', | |
19 '<(ft2_dir)/src/base/ftbitmap.c', | |
20 '<(ft2_dir)/src/base/ftfntfmt.c', | |
21 '<(ft2_dir)/src/base/ftfstype.c', | |
22 '<(ft2_dir)/src/base/ftglyph.c', | |
23 '<(ft2_dir)/src/base/ftlcdfil.c', | |
24 '<(ft2_dir)/src/base/ftstroke.c', | |
25 '<(ft2_dir)/src/base/fttype1.c', | |
26 '<(ft2_dir)/src/base/ftbase.c', | |
27 '<(ft2_dir)/src/base/ftsystem.c', | |
28 '<(ft2_dir)/src/base/ftinit.c', | |
29 '<(ft2_dir)/src/base/ftgasp.c', | |
30 '<(ft2_dir)/src/base/ftmm.c', | |
31 '<(ft2_dir)/src/gzip/ftgzip.c', | |
32 '<(ft2_dir)/src/raster/raster.c', | |
33 '<(ft2_dir)/src/sfnt/sfnt.c', | |
34 '<(ft2_dir)/src/smooth/smooth.c', | |
35 '<(ft2_dir)/src/autofit/autofit.c', | |
36 '<(ft2_dir)/src/truetype/truetype.c', | |
37 '<(ft2_dir)/src/cff/cff.c', | |
38 '<(ft2_dir)/src/psnames/psnames.c', | |
39 '<(ft2_dir)/src/pshinter/pshinter.c', | |
40 ], | |
41 'dependencies': [ | |
42 '../libpng/libpng.gyp:libpng', | |
43 '../zlib/zlib.gyp:zlib', | |
44 ], | |
45 'include_dirs': [ | |
46 'include', | |
47 '<(ft2_dir)/include', | |
48 ], | |
49 'defines': [ | |
50 'FT2_BUILD_LIBRARY', | |
51 'DARWIN_NO_CARBON', | |
52 # Long directory name to avoid accidentally using wrong headers. | |
53 'FT_CONFIG_MODULES_H=<freetype-android-config/ftmodule.h>', | |
54 'FT_CONFIG_OPTIONS_H=<freetype-android-config/ftoption.h>', | |
55 ], | |
56 'direct_dependent_settings': { | |
57 'include_dirs': [ | |
58 'include', | |
59 '<(ft2_dir)/include', | |
60 ], | |
61 }, | |
62 'conditions': [ | |
63 ['OS=="android"', { | |
64 'toolsets': ['target'], | |
65 }, 'chromecast==1', { | |
66 'sources': [ '<(ft2_dir)/src/base/ftbdf.c', ], | |
67 }] | |
68 ], | |
69 }, | |
70 ], | |
71 }], | |
72 ], | |
73 } | |
OLD | NEW |