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", |
(...skipping 24 matching lines...) Expand all Loading... |
35 "src/src/autofit/autofit.c", | 35 "src/src/autofit/autofit.c", |
36 "src/src/truetype/truetype.c", | 36 "src/src/truetype/truetype.c", |
37 "src/src/cff/cff.c", | 37 "src/src/cff/cff.c", |
38 "src/src/psnames/psnames.c", | 38 "src/src/psnames/psnames.c", |
39 "src/src/pshinter/pshinter.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 # Long directory name to avoid accidentally using wrong headers. | 46 # Long directory name to avoid accidentally using wrong headers. |
46 "FT_CONFIG_MODULES_H=<freetype-android-config/ftmodule.h>", | 47 "FT_CONFIG_MODULES_H=<freetype-android-config/ftmodule.h>", |
47 "FT_CONFIG_OPTIONS_H=<freetype-android-config/ftoption.h>", | 48 "FT_CONFIG_OPTIONS_H=<freetype-android-config/ftoption.h>", |
48 ] | 49 ] |
49 | 50 |
50 public_configs = [ ":freetype_config" ] | 51 public_configs = [ ":freetype_config" ] |
51 configs -= [ "//build/config/compiler:chromium_code" ] | 52 configs -= [ "//build/config/compiler:chromium_code" ] |
52 configs += [ "//build/config/compiler:no_chromium_code" ] | 53 configs += [ "//build/config/compiler:no_chromium_code" ] |
53 | 54 |
54 deps = [ | 55 deps = [ |
55 "//third_party/libpng", | 56 "//third_party/libpng", |
56 "//third_party/zlib", | 57 "//third_party/zlib", |
57 ] | 58 ] |
58 } | 59 } |
OLD | NEW |