OLD | NEW |
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 assert(is_linux, "This file should only be depended on from Linux.") | 5 assert(is_linux, "This file should only be depended on from Linux.") |
6 | 6 |
7 config("freetype2_config") { | 7 config("freetype2_config") { |
8 include_dirs = [ | 8 include_dirs = [ |
9 "include", | 9 "include", |
10 "src/include", | 10 "src/include", |
11 ] | 11 ] |
12 } | 12 } |
13 | 13 |
14 shared_library("freetype2") { | 14 shared_library("freetype2") { |
15 output_name = "freetype" | 15 output_name = "freetype" |
16 output_extension = "so.6" | 16 output_extension = "so.6" |
17 | 17 |
18 sources = [ | 18 sources = [ |
19 "src/src/autofit/autofit.c", | 19 "src/src/autofit/autofit.c", |
20 "src/src/base/ftbase.c", | 20 "src/src/base/ftbase.c", |
21 "src/src/base/ftbbox.c", | 21 "src/src/base/ftbbox.c", |
22 "src/src/base/ftbdf.c", | 22 "src/src/base/ftbdf.c", |
23 "src/src/base/ftbitmap.c", | 23 "src/src/base/ftbitmap.c", |
24 "src/src/base/ftcid.c", | 24 "src/src/base/ftcid.c", |
25 "src/src/base/ftdebug.c", | 25 "src/src/base/ftdebug.c", |
| 26 "src/src/base/ftfntfmt.c", |
26 "src/src/base/ftfstype.c", | 27 "src/src/base/ftfstype.c", |
27 "src/src/base/ftgasp.c", | 28 "src/src/base/ftgasp.c", |
28 "src/src/base/ftglyph.c", | 29 "src/src/base/ftglyph.c", |
29 "src/src/base/ftgxval.c", | 30 "src/src/base/ftgxval.c", |
30 "src/src/base/ftinit.c", | 31 "src/src/base/ftinit.c", |
31 "src/src/base/ftlcdfil.c", | 32 "src/src/base/ftlcdfil.c", |
32 "src/src/base/ftmm.c", | 33 "src/src/base/ftmm.c", |
33 "src/src/base/ftpfr.c", | |
34 "src/src/base/ftstroke.c", | 34 "src/src/base/ftstroke.c", |
35 "src/src/base/ftsynth.c", | 35 "src/src/base/ftsynth.c", |
36 "src/src/base/ftsystem.c", | 36 "src/src/base/ftsystem.c", |
37 "src/src/base/fttype1.c", | 37 "src/src/base/fttype1.c", |
38 "src/src/base/ftwinfnt.c", | |
39 "src/src/base/ftxf86.c", | |
40 "src/src/bdf/bdf.c", | 38 "src/src/bdf/bdf.c", |
41 "src/src/cff/cff.c", | 39 "src/src/cff/cff.c", |
42 "src/src/cid/type1cid.c", | |
43 "src/src/gzip/ftgzip.c", | 40 "src/src/gzip/ftgzip.c", |
44 "src/src/lzw/ftlzw.c", | 41 "src/src/lzw/ftlzw.c", |
45 "src/src/pcf/pcf.c", | |
46 "src/src/pfr/pfr.c", | |
47 "src/src/psaux/psaux.c", | 42 "src/src/psaux/psaux.c", |
48 "src/src/pshinter/pshinter.c", | 43 "src/src/pshinter/pshinter.c", |
49 "src/src/psnames/psnames.c", | 44 "src/src/psnames/psnames.c", |
50 "src/src/raster/raster.c", | 45 "src/src/raster/raster.c", |
51 "src/src/sfnt/sfnt.c", | 46 "src/src/sfnt/sfnt.c", |
52 "src/src/smooth/smooth.c", | 47 "src/src/smooth/smooth.c", |
53 "src/src/truetype/truetype.c", | 48 "src/src/truetype/truetype.c", |
54 "src/src/type1/type1.c", | 49 "src/src/type1/type1.c", |
55 "src/src/type42/type42.c", | |
56 "src/src/winfonts/winfnt.c", | |
57 ] | 50 ] |
58 | 51 |
59 defines = [ | 52 defines = [ |
60 "FT_CONFIG_OPTION_SYSTEM_ZLIB", | 53 "FT_CONFIG_OPTION_SYSTEM_ZLIB", |
| 54 |
| 55 # TODO: Enable this option and figure out a way to address the cyclic |
| 56 # dependency with HarfBuzz. crbug.com/617168 |
| 57 # "FT_CONFIG_OPTION_USE_HARFBUZZ", |
61 "FT2_BUILD_LIBRARY", | 58 "FT2_BUILD_LIBRARY", |
62 "FT_CONFIG_CONFIG_H=<ftconfig.h>", # See comments in README.chromium. | 59 "FT_CONFIG_CONFIG_H=<ftconfig.h>", # See comments in README.chromium. |
63 "FT_CONFIG_MODULES_H=<ftmodule.h>", # See comments in README.chromium. | 60 "FT_CONFIG_MODULES_H=<ftmodule.h>", # See comments in README.chromium. |
64 ] | 61 ] |
65 | 62 |
66 configs -= [ "//build/config/compiler:chromium_code" ] | 63 configs -= [ "//build/config/compiler:chromium_code" ] |
67 configs += [ "//build/config/compiler:no_chromium_code" ] | 64 configs += [ "//build/config/compiler:no_chromium_code" ] |
68 configs += [ ":freetype2_config" ] | 65 configs += [ ":freetype2_config" ] |
69 | 66 |
70 public_configs = [ ":freetype2_config" ] | 67 public_configs = [ ":freetype2_config" ] |
71 | 68 |
72 libs = [ "z" ] | |
73 | |
74 deps = [ | 69 deps = [ |
75 "//build/config/sanitizers:deps", | 70 "//build/config/sanitizers:deps", |
| 71 "//third_party/libpng", |
76 "//third_party/zlib", | 72 "//third_party/zlib", |
77 ] | 73 ] |
78 } | 74 } |
OLD | NEW |