OLD | NEW |
---|---|
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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/features.gni") | 5 import("//build/config/features.gni") |
6 | 6 |
7 declare_args() { | |
8 # Blink needs a recent and properly build-configured FreeType version to | |
9 # support OpenType variations, color emoji and avoid security bugs. By default | |
10 # We ship and link such a version as part of Chrome. For distributions that | |
11 # prefer to keep linking to the version the system, FreeType must be newer | |
12 # than version 2.7.1 and have color bitmap support compiled in. WARNING: | |
13 # System FreeType configurations other than as described WILL INTRODUCE TEXT | |
14 # RENDERING AND SECURITY REGRESSIONS. | |
15 use_system_freetype = false | |
bungeman-chromium
2017/05/05 20:59:54
Should this (or its negation) be used in skia/BUIL
| |
16 } | |
17 | |
7 group("freetype") { | 18 group("freetype") { |
8 if (is_linux && !is_chromecast) { | 19 if (is_chromeos || use_system_freetype) { |
Dirk Pranke
2017/05/05 16:37:18
Nit: is_chromeos does not mean this is an actual c
vapier
2017/05/05 17:50:51
we should just update the Chrome OS ebuild to pass
| |
9 public_configs = [ "//build/linux:freetype_from_pkgconfig" ] | 20 public_configs = [ "//build/linux:freetype_from_pkgconfig" ] |
10 } else { | 21 } else { |
11 public_deps = [ | 22 public_deps = [ |
12 "//third_party/freetype", | 23 "//third_party/freetype", |
13 ] | 24 ] |
14 } | 25 } |
15 } | 26 } |
OLD | NEW |