| 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 import("//build/config/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 if (is_linux || is_chromecast) { | 58 if (is_linux || is_chromecast) { |
| 59 # Needed for content_shell on Linux and Chromecast, since fontconfig require
s FT_Get_BDF_Property. | 59 # Needed for content_shell on Linux and Chromecast, since fontconfig require
s FT_Get_BDF_Property. |
| 60 sources += [ "src/src/base/ftbdf.c" ] | 60 sources += [ "src/src/base/ftbdf.c" ] |
| 61 } | 61 } |
| 62 | 62 |
| 63 defines = [ | 63 defines = [ |
| 64 "FT2_BUILD_LIBRARY", | 64 "FT2_BUILD_LIBRARY", |
| 65 "DARWIN_NO_CARBON", | 65 "DARWIN_NO_CARBON", |
| 66 | 66 |
| 67 # Long directory name to avoid accidentally using wrong headers. | 67 # Long directory name to avoid accidentally using wrong headers. |
| 68 "FT_CONFIG_MODULES_H=<freetype-android-config/ftmodule.h>", | 68 "FT_CONFIG_MODULES_H=<freetype-custom-config/ftmodule.h>", |
| 69 "FT_CONFIG_OPTIONS_H=<freetype-android-config/ftoption.h>", | 69 "FT_CONFIG_OPTIONS_H=<freetype-custom-config/ftoption.h>", |
| 70 ] | 70 ] |
| 71 | 71 |
| 72 public_configs = [ ":freetype_config" ] | 72 public_configs = [ ":freetype_config" ] |
| 73 configs -= [ "//build/config/compiler:chromium_code" ] | 73 configs -= [ "//build/config/compiler:chromium_code" ] |
| 74 configs += [ | 74 configs += [ |
| 75 "//build/config/compiler:no_chromium_code", | 75 "//build/config/compiler:no_chromium_code", |
| 76 ":freetype-warnings", | 76 ":freetype-warnings", |
| 77 ":freetype-visibility" | 77 ":freetype-visibility", |
| 78 ] | 78 ] |
| 79 | 79 |
| 80 deps = [ | 80 deps = [ |
| 81 "//third_party/libpng", | 81 "//third_party/libpng", |
| 82 "//third_party/zlib", | 82 "//third_party/zlib", |
| 83 ] | 83 ] |
| 84 } | 84 } |
| OLD | NEW |