Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: build/linux/BUILD.gn

Issue 1627533002: [Chromecast] Depend on Chromium's freetype-android (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Add clarification of using freetype-android Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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") ],
11 "scope", 11 "scope",
12 [ "system.gyp" ]) 12 [ "system.gyp" ])
13 13
14 # Chromecast platform does not provide fontconfig
14 use_system_fontconfig = !is_chromecast 15 use_system_fontconfig = !is_chromecast
15 16
16 # If brlapi isn't needed, don't require it to be installed. 17 # If brlapi isn't needed, don't require it to be installed.
17 if (use_brlapi) { 18 if (use_brlapi) {
18 config("brlapi_config") { 19 config("brlapi_config") {
19 defines = [ "USE_BRLAPI" ] 20 defines = [ "USE_BRLAPI" ]
20 } 21 }
21 22
22 # TODO(GYP) linux_link_brlapi support. Is this needed? 23 # TODO(GYP) linux_link_brlapi support. Is this needed?
23 generate_library_loader("libbrlapi") { 24 generate_library_loader("libbrlapi") {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 109
109 group("fontconfig") { 110 group("fontconfig") {
110 if (use_system_fontconfig) { 111 if (use_system_fontconfig) {
111 public_configs = [ "//build/config/linux:fontconfig" ] 112 public_configs = [ "//build/config/linux:fontconfig" ]
112 } else { 113 } else {
113 public_deps = [ 114 public_deps = [
114 "//third_party/fontconfig", 115 "//third_party/fontconfig",
115 ] 116 ]
116 } 117 }
117 } 118 }
119
120 group("freetype2") {
121 if (is_chromecast) {
122 # Chromecast platform doesn't provide freetype, so use Chromium's.
123 # The version in freetype-android is unmodified from freetype2 upstream.
124 public_deps = [
125 "//third_party/freetype-android:freetype",
126 ]
127 } else {
128 public_configs = [ "//build/config/linux:freetype2" ]
129 }
130 }
OLDNEW
« no previous file with comments | « build/config/linux/BUILD.gn ('k') | build/linux/system.gyp » ('j') | content/shell/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698