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
3 # found in the LICENSE file.
5 assert(is_linux, "This file should only be depended on from Linux.")
7 config("freetype2_config") {
14 shared_library("freetype2") {
15 output_name = "freetype"
16 output_extension = "so.6"
19 "src/src/autofit/autofit.c",
20 "src/src/base/ftbase.c",
21 "src/src/base/ftbbox.c",
22 "src/src/base/ftbdf.c",
23 "src/src/base/ftbitmap.c",
24 "src/src/base/ftcid.c",
25 "src/src/base/ftdebug.c",
26 "src/src/base/ftfstype.c",
27 "src/src/base/ftgasp.c",
28 "src/src/base/ftglyph.c",
29 "src/src/base/ftgxval.c",
30 "src/src/base/ftinit.c",
31 "src/src/base/ftlcdfil.c",
32 "src/src/base/ftmm.c",
33 "src/src/base/ftpfr.c",
34 "src/src/base/ftstroke.c",
35 "src/src/base/ftsynth.c",
36 "src/src/base/ftsystem.c",
37 "src/src/base/fttype1.c",
38 "src/src/base/ftwinfnt.c",
39 "src/src/base/ftxf86.c",
42 "src/src/cid/type1cid.c",
43 "src/src/gzip/ftgzip.c",
44 "src/src/lzw/ftlzw.c",
47 "src/src/psaux/psaux.c",
48 "src/src/pshinter/pshinter.c",
49 "src/src/psnames/psnames.c",
50 "src/src/raster/raster.c",
51 "src/src/sfnt/sfnt.c",
52 "src/src/smooth/smooth.c",
53 "src/src/truetype/truetype.c",
54 "src/src/type1/type1.c",
55 "src/src/type42/type42.c",
56 "src/src/winfonts/winfnt.c",
60 "FT_CONFIG_OPTION_SYSTEM_ZLIB",
62 "FT_CONFIG_CONFIG_H=<ftconfig.h>", # See comments in README.chromium.
63 "FT_CONFIG_MODULES_H=<ftmodule.h>", # See comments in README.chromium.
66 configs -= [ "//build/config/compiler:chromium_code" ]
67 configs += [ "//build/config/compiler:no_chromium_code" ]
68 configs += [ ":freetype2_config" ]
70 public_configs = [ ":freetype2_config" ]