| OLD | NEW |
| 1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2015 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 import("//build/config/linux/pkg_config.gni") | 6 import("//build/config/linux/pkg_config.gni") |
| 7 | 7 |
| 8 # If brlapi isn't needed, don't require it to be installed. | 8 # If brlapi isn't needed, don't require it to be installed. |
| 9 if (use_brlapi) { | 9 if (use_brlapi) { |
| 10 deps = [ | 10 deps = [ |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 if (is_chromecast) { | 47 if (is_chromecast) { |
| 48 # Chromecast platform does not provide fontconfig | 48 # Chromecast platform does not provide fontconfig |
| 49 public_deps = [ | 49 public_deps = [ |
| 50 "//third_party/fontconfig", | 50 "//third_party/fontconfig", |
| 51 ] | 51 ] |
| 52 } else { | 52 } else { |
| 53 public_configs = [ "//build/config/linux:fontconfig" ] | 53 public_configs = [ "//build/config/linux:fontconfig" ] |
| 54 } | 54 } |
| 55 } | 55 } |
| 56 | 56 |
| 57 if (!is_chromecast) { | |
| 58 pkg_config("freetype2_config") { | |
| 59 visibility = [ ":freetype2" ] | |
| 60 packages = [ "freetype2" ] | |
| 61 } | |
| 62 } | |
| 63 | |
| 64 group("freetype2") { | 57 group("freetype2") { |
| 65 if (is_chromecast) { | 58 if (is_chromecast) { |
| 66 # Chromecast platform doesn't provide freetype, so use Chromium's. | 59 # Chromecast platform doesn't provide freetype, so use Chromium's. |
| 67 # The version in freetype-android is unmodified from freetype2 upstream. | 60 # The version in freetype-android is unmodified from freetype2 upstream. |
| 68 public_deps = [ | 61 public_deps = [ |
| 69 "//third_party/freetype-android:freetype", | 62 "//third_party/freetype-android:freetype", |
| 70 ] | 63 ] |
| 71 } else { | 64 } else { |
| 72 public_configs = [ ":freetype2_config" ] | 65 public_deps = [ |
| 66 "//third_party/freetype2", |
| 67 ] |
| 73 } | 68 } |
| 74 } | 69 } |
| OLD | NEW |