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/features.gni") | |
dnicoara
2014/08/12 16:12:52
I don't think you need this anymore.
Mostyn Bramley-Moore
2014/08/12 18:18:46
Done.
| |
5 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
6 | 7 |
7 source_set("config") { | 8 source_set("config") { |
8 sources = [ | 9 sources = [ |
9 "dx_diag_node.cc", | 10 "dx_diag_node.cc", |
10 "dx_diag_node.h", | 11 "dx_diag_node.h", |
11 "gpu_blacklist.cc", | 12 "gpu_blacklist.cc", |
12 "gpu_blacklist.h", | 13 "gpu_blacklist.h", |
13 "gpu_control_list_jsons.h", | 14 "gpu_control_list_jsons.h", |
14 "gpu_control_list.cc", | 15 "gpu_control_list.cc", |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 deps += [ "//third_party/libxml" ] | 53 deps += [ "//third_party/libxml" ] |
53 libs = [ "dxguid.lib", "setupapi.lib" ] | 54 libs = [ "dxguid.lib", "setupapi.lib" ] |
54 | 55 |
55 if (is_chrome_branded && is_official_build) { | 56 if (is_chrome_branded && is_official_build) { |
56 sources += [ | 57 sources += [ |
57 "//third_party/amd/AmdCfxPxExt.h", | 58 "//third_party/amd/AmdCfxPxExt.h", |
58 "//third_party/amd/amd_videocard_info_win.cc", | 59 "//third_party/amd/amd_videocard_info_win.cc", |
59 ] | 60 ] |
60 } | 61 } |
61 } | 62 } |
62 if (is_linux) { | 63 if (is_linux && (use_x11 || use_ozone)) { |
63 deps += [ | 64 deps += [ |
64 "//build/config/linux:libpci", | 65 "//build/config/linux:libpci", |
65 ] | 66 ] |
66 } | 67 } |
67 if (is_linux && use_x11) { | 68 if (is_linux && use_x11) { |
68 configs += [ | 69 configs += [ |
69 "//build/config/linux:x11", | 70 "//build/config/linux:x11", |
70 "//build/config/linux:xext", | 71 "//build/config/linux:xext", |
71 ] | 72 ] |
72 deps += [ | 73 deps += [ |
73 "//third_party/libXNVCtrl", | 74 "//third_party/libXNVCtrl", |
74 ] | 75 ] |
75 } else { | 76 } else { |
76 sources -= [ "gpu_info_collector_x11.cc" ] | 77 sources -= [ "gpu_info_collector_x11.cc" ] |
77 } | 78 } |
78 if (!use_ozone) { | 79 if (!use_ozone) { |
79 sources -= [ "gpu_info_collector_ozone.cc" ] | 80 sources -= [ "gpu_info_collector_ozone.cc" ] |
80 } | 81 } |
81 } | 82 } |
82 | 83 |
OLD | NEW |