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 declare_args() { | 7 declare_args() { |
8 # Use the PCI lib to collect GPU information on Linux. | 8 # Use the PCI lib to collect GPU information on Linux. |
9 use_libpci = true | 9 use_libpci = true |
10 } | 10 } |
(...skipping 12 matching lines...) Expand all Loading... |
23 "gpu_driver_bug_list.h", | 23 "gpu_driver_bug_list.h", |
24 "gpu_driver_bug_workaround_type.h", | 24 "gpu_driver_bug_workaround_type.h", |
25 "gpu_dx_diagnostics_win.cc", | 25 "gpu_dx_diagnostics_win.cc", |
26 "gpu_feature_type.h", | 26 "gpu_feature_type.h", |
27 "gpu_info.cc", | 27 "gpu_info.cc", |
28 "gpu_info.h", | 28 "gpu_info.h", |
29 "gpu_info_collector_android.cc", | 29 "gpu_info_collector_android.cc", |
30 "gpu_info_collector_linux.cc", | 30 "gpu_info_collector_linux.cc", |
31 "gpu_info_collector_linux.h", | 31 "gpu_info_collector_linux.h", |
32 "gpu_info_collector_mac.mm", | 32 "gpu_info_collector_mac.mm", |
| 33 "gpu_info_collector_ozone.cc", |
33 "gpu_info_collector_win.cc", | 34 "gpu_info_collector_win.cc", |
34 "gpu_info_collector_x11.cc", | 35 "gpu_info_collector_x11.cc", |
35 "gpu_info_collector.cc", | 36 "gpu_info_collector.cc", |
36 "gpu_info_collector.h", | 37 "gpu_info_collector.h", |
37 "gpu_performance_stats.h", | 38 "gpu_performance_stats.h", |
38 "gpu_test_config.cc", | 39 "gpu_test_config.cc", |
39 "gpu_test_config.h", | 40 "gpu_test_config.h", |
40 "gpu_test_expectations_parser.cc", | 41 "gpu_test_expectations_parser.cc", |
41 "gpu_test_expectations_parser.h", | 42 "gpu_test_expectations_parser.h", |
42 "gpu_util.cc", | 43 "gpu_util.cc", |
(...skipping 25 matching lines...) Expand all Loading... |
68 "//third_party/amd/amd_videocard_info_win.cc", | 69 "//third_party/amd/amd_videocard_info_win.cc", |
69 ] | 70 ] |
70 } | 71 } |
71 | 72 |
72 # TODO(jschuh): size_t to int. | 73 # TODO(jschuh): size_t to int. |
73 cflags = [ "/wd4267" ] | 74 cflags = [ "/wd4267" ] |
74 } | 75 } |
75 if (use_libpci) { | 76 if (use_libpci) { |
76 defines += [ "USE_LIBPCI=1" ] | 77 defines += [ "USE_LIBPCI=1" ] |
77 } | 78 } |
78 if (is_linux && use_libpci && use_x11) { | 79 if (is_linux && use_libpci && (use_x11 || use_ozone)) { |
79 deps += [ "//build/config/linux:libpci" ] | 80 deps += [ "//build/config/linux:libpci" ] |
80 } | 81 } |
81 if (is_linux && use_x11) { | 82 if (is_linux && use_x11) { |
82 configs += [ | 83 configs += [ |
83 "//build/config/linux:x11", | 84 "//build/config/linux:x11", |
84 "//build/config/linux:xext", | 85 "//build/config/linux:xext", |
85 ] | 86 ] |
86 deps += [ "//third_party/libXNVCtrl" ] | 87 deps += [ |
| 88 "//third_party/libXNVCtrl", |
| 89 "//ui/gfx/x", |
| 90 ] |
87 } else { | 91 } else { |
88 sources -= [ "gpu_info_collector_x11.cc" ] | 92 sources -= [ "gpu_info_collector_x11.cc" ] |
89 } | 93 } |
| 94 if (!use_ozone) { |
| 95 sources -= [ "gpu_info_collector_ozone.cc" ] |
| 96 } |
90 } | 97 } |
OLD | NEW |