| 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 } |
| 11 | 11 |
| 12 group("config") { | 12 source_set("config") { |
| 13 if (is_component_build) { | |
| 14 public_deps = [ | |
| 15 "//gpu", | |
| 16 ] | |
| 17 } else { | |
| 18 public_deps = [ | |
| 19 ":config_sources", | |
| 20 ] | |
| 21 } | |
| 22 } | |
| 23 | |
| 24 source_set("config_sources") { | |
| 25 visibility = [ "//gpu/*" ] | |
| 26 | |
| 27 sources = [ | 13 sources = [ |
| 28 "dx_diag_node.cc", | 14 "dx_diag_node.cc", |
| 29 "dx_diag_node.h", | 15 "dx_diag_node.h", |
| 30 "gpu_blacklist.cc", | 16 "gpu_blacklist.cc", |
| 31 "gpu_blacklist.h", | 17 "gpu_blacklist.h", |
| 32 "gpu_control_list.cc", | 18 "gpu_control_list.cc", |
| 33 "gpu_control_list.h", | 19 "gpu_control_list.h", |
| 34 "gpu_control_list_jsons.h", | 20 "gpu_control_list_jsons.h", |
| 35 "gpu_driver_bug_list.cc", | 21 "gpu_driver_bug_list.cc", |
| 36 "gpu_driver_bug_list.h", | 22 "gpu_driver_bug_list.h", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 59 ] | 45 ] |
| 60 | 46 |
| 61 configs += [ | 47 configs += [ |
| 62 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 48 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 63 "//build/config/compiler:no_size_t_to_int_warning", | 49 "//build/config/compiler:no_size_t_to_int_warning", |
| 64 "//gpu:gpu_implementation", | 50 "//gpu:gpu_implementation", |
| 65 ] | 51 ] |
| 66 | 52 |
| 67 deps = [ | 53 deps = [ |
| 68 "//base", | 54 "//base", |
| 69 "//gpu/command_buffer/service:service_sources", | 55 "//gpu/command_buffer/service", |
| 70 "//third_party/re2", | 56 "//third_party/re2", |
| 71 "//ui/gl", | 57 "//ui/gl", |
| 72 ] | 58 ] |
| 73 | 59 |
| 74 # 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. |
| 75 include_dirs = [ "//third_party/mesa/src/include" ] | 61 include_dirs = [ "//third_party/mesa/src/include" ] |
| 76 | 62 |
| 77 if (is_win) { | 63 if (is_win) { |
| 78 deps += [ "//third_party/libxml" ] | 64 deps += [ "//third_party/libxml" ] |
| 79 libs = [ | 65 libs = [ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 103 "//third_party/libXNVCtrl", | 89 "//third_party/libXNVCtrl", |
| 104 "//ui/gfx/x", | 90 "//ui/gfx/x", |
| 105 ] | 91 ] |
| 106 } else { | 92 } else { |
| 107 sources -= [ "gpu_info_collector_x11.cc" ] | 93 sources -= [ "gpu_info_collector_x11.cc" ] |
| 108 } | 94 } |
| 109 if (!use_ozone) { | 95 if (!use_ozone) { |
| 110 sources -= [ "gpu_info_collector_ozone.cc" ] | 96 sources -= [ "gpu_info_collector_ozone.cc" ] |
| 111 } | 97 } |
| 112 } | 98 } |
| OLD | NEW |