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") {
8 include_dirs = [ "include", "src/include" ]
11 shared_library("freetype2") {
12 output_name = "freetype"
13 output_extension = "so.6"
16 "src/src/autofit/autofit.c",
17 "src/src/base/ftbase.c",
18 "src/src/base/ftbbox.c",
19 "src/src/base/ftbdf.c",
20 "src/src/base/ftbitmap.c",
21 "src/src/base/ftcid.c",
22 "src/src/base/ftdebug.c",
23 "src/src/base/ftfstype.c",
24 "src/src/base/ftgasp.c",
25 "src/src/base/ftglyph.c",
26 "src/src/base/ftgxval.c",
27 "src/src/base/ftinit.c",
28 "src/src/base/ftlcdfil.c",
29 "src/src/base/ftpfr.c",
30 "src/src/base/ftstroke.c",
31 "src/src/base/ftsynth.c",
32 "src/src/base/ftsystem.c",
33 "src/src/base/fttype1.c",
34 "src/src/base/ftwinfnt.c",
35 "src/src/base/ftxf86.c",
38 "src/src/cid/type1cid.c",
39 "src/src/gzip/ftgzip.c",
40 "src/src/lzw/ftlzw.c",
43 "src/src/psaux/psaux.c",
44 "src/src/pshinter/pshinter.c",
45 "src/src/psnames/psnames.c",
46 "src/src/raster/raster.c",
47 "src/src/sfnt/sfnt.c",
48 "src/src/smooth/smooth.c",
49 "src/src/truetype/truetype.c",
50 "src/src/type1/type1.c",
51 "src/src/type42/type42.c",
52 "src/src/winfonts/winfnt.c",
56 "FT_CONFIG_OPTION_SYSTEM_ZLIB",
59 # TODO: crbug.com/358764 - we shouldn't need to escape these defines.
60 "'FT_CONFIG_CONFIG_H=<ftconfig.h>'", # See comments in README.chromium.
61 "'FT_CONFIG_MODULES_H=<ftmodule.h>'", # See comments in README.chromium.
62 "'FT_CONFIG_OPTIONS_H=<ftoption.h>'", # See comments in README.chromium.
65 configs -= [ "//build/config/compiler:chromium_code" ]
66 configs += [ "//build/config/compiler:no_chromium_code" ]
67 configs += [ ":freetype2_config" ]
69 direct_dependent_configs = [ ":freetype2_config" ]