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

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

Issue 2725873007: gpu/config: Use angle::GetSystemInfo on Linux (Closed)
Patch Set: "Fix" gn check Created 3 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 | « no previous file | gpu/config/DEPS » ('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 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/chromecast_build.gni") 6 import("//build/config/chromecast_build.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 8
9 declare_args() {
10 # Use the PCI lib to collect GPU information on Linux.
11 use_libpci = is_linux && (!is_chromecast || is_cast_desktop_build) &&
12 (use_x11 || use_ozone)
13 }
14
15 group("config") { 9 group("config") {
16 if (is_component_build) { 10 if (is_component_build) {
17 public_deps = [ 11 public_deps = [
18 "//gpu", 12 "//gpu",
19 ] 13 ]
20 } else { 14 } else {
21 public_deps = [ 15 public_deps = [
22 ":config_sources", 16 ":config_sources",
23 ] 17 ]
24 } 18 }
(...skipping 23 matching lines...) Expand all
48 "gpu_feature_info.h", 42 "gpu_feature_info.h",
49 "gpu_feature_type.h", 43 "gpu_feature_type.h",
50 "gpu_finch_features.cc", 44 "gpu_finch_features.cc",
51 "gpu_finch_features.h", 45 "gpu_finch_features.h",
52 "gpu_info.cc", 46 "gpu_info.cc",
53 "gpu_info.h", 47 "gpu_info.h",
54 "gpu_info_collector.cc", 48 "gpu_info_collector.cc",
55 "gpu_info_collector.h", 49 "gpu_info_collector.h",
56 "gpu_info_collector_android.cc", 50 "gpu_info_collector_android.cc",
57 "gpu_info_collector_linux.cc", 51 "gpu_info_collector_linux.cc",
58 "gpu_info_collector_linux.h",
59 "gpu_info_collector_mac.mm", 52 "gpu_info_collector_mac.mm",
60 "gpu_info_collector_ozone.cc",
61 "gpu_info_collector_win.cc", 53 "gpu_info_collector_win.cc",
62 "gpu_info_collector_x11.cc",
63 "gpu_switches.cc", 54 "gpu_switches.cc",
64 "gpu_switches.h", 55 "gpu_switches.h",
65 "gpu_test_config.cc", 56 "gpu_test_config.cc",
66 "gpu_test_config.h", 57 "gpu_test_config.h",
67 "gpu_test_expectations_parser.cc", 58 "gpu_test_expectations_parser.cc",
68 "gpu_test_expectations_parser.h", 59 "gpu_test_expectations_parser.h",
69 "gpu_util.cc", 60 "gpu_util.cc",
70 "gpu_util.h", 61 "gpu_util.h",
71 "software_rendering_list_json.cc", 62 "software_rendering_list_json.cc",
72 ] 63 ]
(...skipping 21 matching lines...) Expand all
94 "setupapi.lib", 85 "setupapi.lib",
95 ] 86 ]
96 87
97 if (is_chrome_branded && is_official_build) { 88 if (is_chrome_branded && is_official_build) {
98 sources += [ 89 sources += [
99 "//third_party/amd/AmdCfxPxExt.h", 90 "//third_party/amd/AmdCfxPxExt.h",
100 "//third_party/amd/amd_videocard_info_win.cc", 91 "//third_party/amd/amd_videocard_info_win.cc",
101 ] 92 ]
102 } 93 }
103 } 94 }
95 if (is_linux) {
96 deps += [ "//third_party/angle:angle_gpu_info_util" ]
97 }
104 if (is_mac) { 98 if (is_mac) {
105 libs = [ 99 libs = [
106 "IOKit.framework", 100 "IOKit.framework",
107 "CoreFoundation.framework", 101 "CoreFoundation.framework",
108 ] 102 ]
109 } 103 }
110 if (use_libpci) {
111 defines = [ "USE_LIBPCI=1" ]
112 deps += [ "//build/linux/libpci" ]
113 }
114 if (is_linux && use_x11) {
115 configs += [
116 "//build/config/linux:x11",
117 "//build/config/linux:xext",
118 ]
119 deps += [
120 "//third_party/libXNVCtrl",
121 "//ui/gfx/x",
122 ]
123 } else {
124 sources -= [ "gpu_info_collector_x11.cc" ]
125 }
126 if (!use_ozone) {
127 sources -= [ "gpu_info_collector_ozone.cc" ]
128 }
129 } 104 }
OLDNEW
« no previous file with comments | « no previous file | gpu/config/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698