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

Side by Side Diff: gpu/config/BUILD.gn

Issue 1838493002: Fix building gpu twice in gn component build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « gpu/command_buffer/service/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # Use the PCI lib to collect GPU information on Linux. 9 # Use the PCI lib to collect GPU information on Linux.
10 use_libpci = is_linux && !is_chromecast && (use_x11 || use_ozone) 10 use_libpci = is_linux && !is_chromecast && (use_x11 || use_ozone)
11 } 11 }
12 12
13 group("config") { 13 group("config") {
14 if (is_component_build) { 14 if (is_component_build) {
15 public_deps = [ 15 public_deps = [
16 "//gpu", 16 "//gpu",
17 ] 17 ]
18 } else { 18 } else {
19 public_deps = [ 19 public_deps = [
20 ":config_sources", 20 ":config_sources",
21 ] 21 ]
22 } 22 }
23 } 23 }
24 24
25 source_set("config_sources") { 25 source_set("config_sources") {
26 visibility = [ 26 visibility = [
27 "//components/mus/gles2:*", 27 "//components/mus/gles2:*",
28 "//content/public/gpu/*",
29 "//gpu/*", 28 "//gpu/*",
30 ] 29 ]
31 30
32 sources = [ 31 sources = [
33 "dx_diag_node.cc", 32 "dx_diag_node.cc",
34 "dx_diag_node.h", 33 "dx_diag_node.h",
35 "gpu_blacklist.cc", 34 "gpu_blacklist.cc",
36 "gpu_blacklist.h", 35 "gpu_blacklist.h",
37 "gpu_control_list.cc", 36 "gpu_control_list.cc",
38 "gpu_control_list.h", 37 "gpu_control_list.h",
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 "//third_party/libXNVCtrl", 106 "//third_party/libXNVCtrl",
108 "//ui/gfx/x", 107 "//ui/gfx/x",
109 ] 108 ]
110 } else { 109 } else {
111 sources -= [ "gpu_info_collector_x11.cc" ] 110 sources -= [ "gpu_info_collector_x11.cc" ]
112 } 111 }
113 if (!use_ozone) { 112 if (!use_ozone) {
114 sources -= [ "gpu_info_collector_ozone.cc" ] 113 sources -= [ "gpu_info_collector_ozone.cc" ]
115 } 114 }
116 } 115 }
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698