Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / third_party / freetype-android / BUILD.gn
blobe8b3aa80957ac4693593ef8e50eff438be543bb4
1 # Copyright 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_android, "This library is only used on Android")
7 config("freetype_config") {
8   include_dirs = [
9     "include",
10     "src/include",
11   ]
14 source_set("freetype") {
15   sources = [
16     # The following files are not sorted alphabetically, but in the
17     # same order as in Android.mk to ease maintenance.
18     "src/src/base/ftbbox.c",
19     "src/src/base/ftbitmap.c",
20     "src/src/base/ftfntfmt.c",
21     "src/src/base/ftfstype.c",
22     "src/src/base/ftglyph.c",
23     "src/src/base/ftlcdfil.c",
24     "src/src/base/ftstroke.c",
25     "src/src/base/fttype1.c",
26     "src/src/base/ftbase.c",
27     "src/src/base/ftsystem.c",
28     "src/src/base/ftinit.c",
29     "src/src/base/ftgasp.c",
30     "src/src/base/ftmm.c",
31     "src/src/gzip/ftgzip.c",
32     "src/src/raster/raster.c",
33     "src/src/sfnt/sfnt.c",
34     "src/src/smooth/smooth.c",
35     "src/src/autofit/autofit.c",
36     "src/src/truetype/truetype.c",
37     "src/src/cff/cff.c",
38     "src/src/psnames/psnames.c",
39     "src/src/pshinter/pshinter.c",
40   ]
42   defines = [
43     "FT2_BUILD_LIBRARY",
44     "DARWIN_NO_CARBON",
45     # Long directory name to avoid accidentally using wrong headers.
46     "FT_CONFIG_MODULES_H=<freetype-android-config/ftmodule.h>",
47     "FT_CONFIG_OPTIONS_H=<freetype-android-config/ftoption.h>",
48   ]
50   public_configs = [ ":freetype_config" ]
52   deps = [
53     "//third_party/libpng",
54     "//third_party/zlib",
55   ]