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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 deps = [ | 43 deps = [ |
44 "//base", | 44 "//base", |
45 "//third_party/re2", | 45 "//third_party/re2", |
46 "//ui/gl", | 46 "//ui/gl", |
47 ] | 47 ] |
48 | 48 |
49 if (is_win) { | 49 if (is_win) { |
50 deps += [ "//third_party/libxml" ] | 50 deps += [ "//third_party/libxml" ] |
51 libs = [ "dxguid.lib", "setupapi.lib" ] | 51 libs = [ "dxguid.lib", "setupapi.lib" ] |
52 | 52 |
53 if (is_chrome_branded) { | 53 if (is_chrome_branded && is_official_build) { |
54 sources += [ | 54 sources += [ |
55 "//third_party/amd/AmdCfxPxExt.h", | 55 "//third_party/amd/AmdCfxPxExt.h", |
56 "//third_party/amd/amd_videocard_info_win.cc", | 56 "//third_party/amd/amd_videocard_info_win.cc", |
57 ] | 57 ] |
58 } | 58 } |
59 } | 59 } |
60 if (is_linux && use_x11) { | 60 if (is_linux && use_x11) { |
61 configs += [ | 61 configs += [ |
62 "//build/config/linux:x11", | 62 "//build/config/linux:x11", |
63 "//build/config/linux:xext", | 63 "//build/config/linux:xext", |
64 ] | 64 ] |
65 deps += [ | 65 deps += [ |
66 "//build/config/linux:libpci", | 66 "//build/config/linux:libpci", |
67 "//third_party/libXNVCtrl", | 67 "//third_party/libXNVCtrl", |
68 ] | 68 ] |
69 } else { | 69 } else { |
70 sources -= [ "gpu_info_collector_x11.cc" ] | 70 sources -= [ "gpu_info_collector_x11.cc" ] |
71 } | 71 } |
72 if (!use_ozone) { | 72 if (!use_ozone) { |
73 sources -= [ "gpu_info_collector_ozone.cc" ] | 73 sources -= [ "gpu_info_collector_ozone.cc" ] |
74 } | 74 } |
75 } | 75 } |
76 | 76 |
OLD | NEW |