| 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 27 matching lines...) Expand all Loading... |
| 38 "gpu_performance_stats.h", | 38 "gpu_performance_stats.h", |
| 39 "gpu_test_config.cc", | 39 "gpu_test_config.cc", |
| 40 "gpu_test_config.h", | 40 "gpu_test_config.h", |
| 41 "gpu_test_expectations_parser.cc", | 41 "gpu_test_expectations_parser.cc", |
| 42 "gpu_test_expectations_parser.h", | 42 "gpu_test_expectations_parser.h", |
| 43 "gpu_util.cc", | 43 "gpu_util.cc", |
| 44 "gpu_util.h", | 44 "gpu_util.h", |
| 45 "software_rendering_list_json.cc", | 45 "software_rendering_list_json.cc", |
| 46 ] | 46 ] |
| 47 | 47 |
| 48 # TODO(jschuh): size_t to int. | 48 configs += [ |
| 49 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 49 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 50 | 50 "//build/config/compiler:no_size_t_to_int_warning", |
| 51 defines = [ "GPU_IMPLEMENTATION" ] | 51 "//gpu:gpu_implementation", |
| 52 ] |
| 52 | 53 |
| 53 deps = [ | 54 deps = [ |
| 54 "//base", | 55 "//base", |
| 55 "//third_party/re2", | 56 "//third_party/re2", |
| 56 "//ui/gl", | 57 "//ui/gl", |
| 57 ] | 58 ] |
| 58 | 59 |
| 59 # Prefer mesa GL headers to system headers, which cause problems on Win. | 60 # Prefer mesa GL headers to system headers, which cause problems on Win. |
| 60 include_dirs = [ "//third_party/mesa/src/include" ] | 61 include_dirs = [ "//third_party/mesa/src/include" ] |
| 61 | 62 |
| 62 if (is_win) { | 63 if (is_win) { |
| 63 deps += [ "//third_party/libxml" ] | 64 deps += [ "//third_party/libxml" ] |
| 64 libs = [ | 65 libs = [ |
| 65 "dxguid.lib", | 66 "dxguid.lib", |
| 66 "setupapi.lib", | 67 "setupapi.lib", |
| 67 ] | 68 ] |
| 68 | 69 |
| 69 if (is_chrome_branded && is_official_build) { | 70 if (is_chrome_branded && is_official_build) { |
| 70 sources += [ | 71 sources += [ |
| 71 "//third_party/amd/AmdCfxPxExt.h", | 72 "//third_party/amd/AmdCfxPxExt.h", |
| 72 "//third_party/amd/amd_videocard_info_win.cc", | 73 "//third_party/amd/amd_videocard_info_win.cc", |
| 73 ] | 74 ] |
| 74 } | 75 } |
| 75 } | 76 } |
| 76 if (use_libpci) { | 77 if (use_libpci) { |
| 77 defines += [ "USE_LIBPCI=1" ] | 78 defines = [ "USE_LIBPCI=1" ] |
| 78 } | 79 } |
| 79 if (is_linux && use_libpci && (use_x11 || use_ozone)) { | 80 if (is_linux && use_libpci && (use_x11 || use_ozone)) { |
| 80 deps += [ "//build/config/linux:libpci" ] | 81 deps += [ "//build/config/linux:libpci" ] |
| 81 } | 82 } |
| 82 if (is_linux && use_x11) { | 83 if (is_linux && use_x11) { |
| 83 configs += [ | 84 configs += [ |
| 84 "//build/config/linux:x11", | 85 "//build/config/linux:x11", |
| 85 "//build/config/linux:xext", | 86 "//build/config/linux:xext", |
| 86 ] | 87 ] |
| 87 deps += [ | 88 deps += [ |
| 88 "//third_party/libXNVCtrl", | 89 "//third_party/libXNVCtrl", |
| 89 "//ui/gfx/x", | 90 "//ui/gfx/x", |
| 90 ] | 91 ] |
| 91 } else { | 92 } else { |
| 92 sources -= [ "gpu_info_collector_x11.cc" ] | 93 sources -= [ "gpu_info_collector_x11.cc" ] |
| 93 } | 94 } |
| 94 if (!use_ozone) { | 95 if (!use_ozone) { |
| 95 sources -= [ "gpu_info_collector_ozone.cc" ] | 96 sources -= [ "gpu_info_collector_ozone.cc" ] |
| 96 } | 97 } |
| 97 } | 98 } |
| OLD | NEW |