Delete old ScreenOrientationDelegte
[chromium-blink-merge.git] / third_party / freetype2 / BUILD.gn
blobfe3d92154fa41862c2b9e90f152ffd903a04bf30
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 = [
9     "include",
10     "src/include",
11   ]
14 shared_library("freetype2") {
15   output_name = "freetype"
16   output_extension = "so.6"
18   sources = [
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",
40     "src/src/bdf/bdf.c",
41     "src/src/cff/cff.c",
42     "src/src/cid/type1cid.c",
43     "src/src/gzip/ftgzip.c",
44     "src/src/lzw/ftlzw.c",
45     "src/src/pcf/pcf.c",
46     "src/src/pfr/pfr.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",
57   ]
59   defines = [
60     "FT_CONFIG_OPTION_SYSTEM_ZLIB",
61     "FT2_BUILD_LIBRARY",
62     "FT_CONFIG_CONFIG_H=<ftconfig.h>",  # See comments in README.chromium.
63     "FT_CONFIG_MODULES_H=<ftmodule.h>",  # See comments in README.chromium.
64   ]
66   configs -= [ "//build/config/compiler:chromium_code" ]
67   configs += [ "//build/config/compiler:no_chromium_code" ]
68   configs += [ ":freetype2_config" ]
70   public_configs = [ ":freetype2_config" ]
72   libs = [ "z" ]