OLD | NEW |
---|---|
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/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 source_set("config") { | 7 source_set("config") { |
8 sources = [ | 8 sources = [ |
9 "dx_diag_node.cc", | 9 "dx_diag_node.cc", |
10 "dx_diag_node.h", | 10 "dx_diag_node.h", |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 deps += [ "//third_party/libxml" ] | 55 deps += [ "//third_party/libxml" ] |
56 libs = [ "dxguid.lib", "setupapi.lib" ] | 56 libs = [ "dxguid.lib", "setupapi.lib" ] |
57 | 57 |
58 if (is_chrome_branded && is_official_build) { | 58 if (is_chrome_branded && is_official_build) { |
59 sources += [ | 59 sources += [ |
60 "//third_party/amd/AmdCfxPxExt.h", | 60 "//third_party/amd/AmdCfxPxExt.h", |
61 "//third_party/amd/amd_videocard_info_win.cc", | 61 "//third_party/amd/amd_videocard_info_win.cc", |
62 ] | 62 ] |
63 } | 63 } |
64 } | 64 } |
65 if (is_linux && (use_x11 || use_ozone)) { | 65 if(use_libpci) { |
brettw
2014/10/30 17:00:50
space before (
| |
66 defines += [ "USE_LIBPCI=1" ] | |
67 } | |
68 if (is_linux && use_libpci && (use_x11 || use_ozone)) { | |
66 deps += [ | 69 deps += [ |
67 "//build/config/linux:libpci", | 70 "//build/config/linux:libpci", |
68 ] | 71 ] |
69 } | 72 } |
70 if (is_linux && use_x11) { | 73 if (is_linux && use_x11) { |
71 configs += [ | 74 configs += [ |
72 "//build/config/linux:x11", | 75 "//build/config/linux:x11", |
73 "//build/config/linux:xext", | 76 "//build/config/linux:xext", |
74 ] | 77 ] |
75 deps += [ | 78 deps += [ |
76 "//third_party/libXNVCtrl", | 79 "//third_party/libXNVCtrl", |
77 ] | 80 ] |
78 } else { | 81 } else { |
79 sources -= [ "gpu_info_collector_x11.cc" ] | 82 sources -= [ "gpu_info_collector_x11.cc" ] |
80 } | 83 } |
81 if (!use_ozone) { | 84 if (!use_ozone) { |
82 sources -= [ "gpu_info_collector_ozone.cc" ] | 85 sources -= [ "gpu_info_collector_ozone.cc" ] |
83 } | 86 } |
84 } | 87 } |
85 | 88 |
OLD | NEW |