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

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

Issue 1909273002: 🐳 Move linux pkg_config() calls into separate BUILD.gn files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments & visibility Created 4 years, 8 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
« no previous file with comments | « build/config/posix/BUILD.gn ('k') | chrome/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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") ],
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « build/config/posix/BUILD.gn ('k') | chrome/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698