| 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", | |
| 34 "gpu_info_collector_win.cc", | 33 "gpu_info_collector_win.cc", |
| 35 "gpu_info_collector_x11.cc", | 34 "gpu_info_collector_x11.cc", |
| 36 "gpu_info_collector.cc", | 35 "gpu_info_collector.cc", |
| 37 "gpu_info_collector.h", | 36 "gpu_info_collector.h", |
| 38 "gpu_performance_stats.h", | 37 "gpu_performance_stats.h", |
| 39 "gpu_test_config.cc", | 38 "gpu_test_config.cc", |
| 40 "gpu_test_config.h", | 39 "gpu_test_config.h", |
| 41 "gpu_test_expectations_parser.cc", | 40 "gpu_test_expectations_parser.cc", |
| 42 "gpu_test_expectations_parser.h", | 41 "gpu_test_expectations_parser.h", |
| 43 "gpu_util.cc", | 42 "gpu_util.cc", |
| (...skipping 25 matching lines...) Expand all Loading... |
| 69 "//third_party/amd/amd_videocard_info_win.cc", | 68 "//third_party/amd/amd_videocard_info_win.cc", |
| 70 ] | 69 ] |
| 71 } | 70 } |
| 72 | 71 |
| 73 # TODO(jschuh): size_t to int. | 72 # TODO(jschuh): size_t to int. |
| 74 cflags = [ "/wd4267" ] | 73 cflags = [ "/wd4267" ] |
| 75 } | 74 } |
| 76 if (use_libpci) { | 75 if (use_libpci) { |
| 77 defines += [ "USE_LIBPCI=1" ] | 76 defines += [ "USE_LIBPCI=1" ] |
| 78 } | 77 } |
| 79 if (is_linux && use_libpci && (use_x11 || use_ozone)) { | 78 if (is_linux && use_libpci && use_x11) { |
| 80 deps += [ "//build/config/linux:libpci" ] | 79 deps += [ "//build/config/linux:libpci" ] |
| 81 } | 80 } |
| 82 if (is_linux && use_x11) { | 81 if (is_linux && use_x11) { |
| 83 configs += [ | 82 configs += [ |
| 84 "//build/config/linux:x11", | 83 "//build/config/linux:x11", |
| 85 "//build/config/linux:xext", | 84 "//build/config/linux:xext", |
| 86 ] | 85 ] |
| 87 deps += [ "//third_party/libXNVCtrl" ] | 86 deps += [ "//third_party/libXNVCtrl" ] |
| 88 } else { | 87 } else { |
| 89 sources -= [ "gpu_info_collector_x11.cc" ] | 88 sources -= [ "gpu_info_collector_x11.cc" ] |
| 90 } | 89 } |
| 91 if (!use_ozone) { | |
| 92 sources -= [ "gpu_info_collector_ozone.cc" ] | |
| 93 } | |
| 94 } | 90 } |
| OLD | NEW |