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 import("//tools/generate_library_loader/generate_library_loader.gni") | 7 import("//tools/generate_library_loader/generate_library_loader.gni") |
8 | 8 |
9 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
10 [ rebase_path("system.gyp") ], | 10 [ rebase_path("system.gyp") ], |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 if (is_chromecast) { | 108 if (is_chromecast) { |
109 # Chromecast platform does not provide fontconfig | 109 # Chromecast platform does not provide fontconfig |
110 public_deps = [ | 110 public_deps = [ |
111 "//third_party/fontconfig", | 111 "//third_party/fontconfig", |
112 ] | 112 ] |
113 } else { | 113 } else { |
114 public_configs = [ "//build/config/linux:fontconfig" ] | 114 public_configs = [ "//build/config/linux:fontconfig" ] |
115 } | 115 } |
116 } | 116 } |
117 | 117 |
| 118 if (!is_chromecast) { |
| 119 pkg_config("freetype2_config") { |
| 120 visibility = [ ":freetype2" ] |
| 121 packages = [ "freetype2" ] |
| 122 } |
| 123 } |
| 124 |
118 group("freetype2") { | 125 group("freetype2") { |
119 if (is_chromecast) { | 126 if (is_chromecast) { |
120 # Chromecast platform doesn't provide freetype, so use Chromium's. | 127 # Chromecast platform doesn't provide freetype, so use Chromium's. |
121 # The version in freetype-android is unmodified from freetype2 upstream. | 128 # The version in freetype-android is unmodified from freetype2 upstream. |
122 public_deps = [ | 129 public_deps = [ |
123 "//third_party/freetype-android:freetype", | 130 "//third_party/freetype-android:freetype", |
124 ] | 131 ] |
125 } else { | 132 } else { |
126 public_configs = [ "//build/config/linux:freetype2" ] | 133 public_configs = [ ":freetype2_config" ] |
127 } | 134 } |
128 } | 135 } |
OLD | NEW |