OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_android, "This library is only used on Android") | 5 assert(is_android, "This library is only used on Android") |
6 | 6 |
7 config("freetype_config") { | 7 config("freetype_config") { |
8 include_dirs = [ | 8 include_dirs = [ |
9 "include", | 9 "include", |
10 "src/include", | 10 "src/include", |
11 ] | 11 ] |
12 } | 12 } |
13 | 13 |
14 source_set("freetype") { | 14 source_set("freetype") { |
15 sources = [ | 15 sources = [ |
16 # The following files are not sorted alphabetically, but in the | 16 # The following files are not sorted alphabetically, but in the |
17 # same order as in Android.mk to ease maintenance. | 17 # same order as in Android.mk to ease maintenance. |
| 18 "src/src/autofit/autofit.c", |
| 19 "src/src/base/ftbase.c", |
18 "src/src/base/ftbbox.c", | 20 "src/src/base/ftbbox.c", |
19 "src/src/base/ftbitmap.c", | 21 "src/src/base/ftbitmap.c", |
20 "src/src/base/ftfntfmt.c", | 22 "src/src/base/ftfntfmt.c", |
21 "src/src/base/ftfstype.c", | 23 "src/src/base/ftfstype.c", |
| 24 "src/src/base/ftgasp.c", |
22 "src/src/base/ftglyph.c", | 25 "src/src/base/ftglyph.c", |
| 26 "src/src/base/ftinit.c", |
23 "src/src/base/ftlcdfil.c", | 27 "src/src/base/ftlcdfil.c", |
| 28 "src/src/base/ftmm.c", |
24 "src/src/base/ftstroke.c", | 29 "src/src/base/ftstroke.c", |
| 30 "src/src/base/ftsystem.c", |
25 "src/src/base/fttype1.c", | 31 "src/src/base/fttype1.c", |
26 "src/src/base/ftbase.c", | 32 "src/src/cff/cff.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", | 33 "src/src/gzip/ftgzip.c", |
| 34 "src/src/pshinter/pshinter.c", |
| 35 "src/src/psnames/psnames.c", |
32 "src/src/raster/raster.c", | 36 "src/src/raster/raster.c", |
33 "src/src/sfnt/sfnt.c", | 37 "src/src/sfnt/sfnt.c", |
34 "src/src/smooth/smooth.c", | 38 "src/src/smooth/smooth.c", |
35 "src/src/autofit/autofit.c", | |
36 "src/src/truetype/truetype.c", | 39 "src/src/truetype/truetype.c", |
37 "src/src/cff/cff.c", | |
38 "src/src/psnames/psnames.c", | |
39 "src/src/pshinter/pshinter.c", | |
40 ] | 40 ] |
41 | 41 |
42 defines = [ | 42 defines = [ |
43 "FT2_BUILD_LIBRARY", | 43 "FT2_BUILD_LIBRARY", |
44 "DARWIN_NO_CARBON", | 44 "DARWIN_NO_CARBON", |
45 | 45 |
46 # Long directory name to avoid accidentally using wrong headers. | 46 # Long directory name to avoid accidentally using wrong headers. |
47 "FT_CONFIG_MODULES_H=<freetype-android-config/ftmodule.h>", | 47 "FT_CONFIG_MODULES_H=<freetype-android-config/ftmodule.h>", |
48 "FT_CONFIG_OPTIONS_H=<freetype-android-config/ftoption.h>", | 48 "FT_CONFIG_OPTIONS_H=<freetype-android-config/ftoption.h>", |
49 ] | 49 ] |
50 | 50 |
51 public_configs = [ ":freetype_config" ] | 51 public_configs = [ ":freetype_config" ] |
52 configs -= [ "//build/config/compiler:chromium_code" ] | 52 configs -= [ "//build/config/compiler:chromium_code" ] |
53 configs += [ "//build/config/compiler:no_chromium_code" ] | 53 configs += [ "//build/config/compiler:no_chromium_code" ] |
54 | 54 |
55 deps = [ | 55 deps = [ |
56 "//third_party/libpng", | 56 "//third_party/libpng", |
57 "//third_party/zlib", | 57 "//third_party/zlib", |
58 ] | 58 ] |
59 } | 59 } |
OLD | NEW |