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
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
8 # Use the PCI lib to collect GPU information on Linux.
13 if (is_component_build) {
24 source_set("config_sources") {
25 visibility = [ "//gpu/*" ]
32 "gpu_control_list.cc",
34 "gpu_control_list_jsons.h",
35 "gpu_driver_bug_list.cc",
36 "gpu_driver_bug_list.h",
37 "gpu_driver_bug_list_json.cc",
38 "gpu_driver_bug_workaround_type.h",
39 "gpu_dx_diagnostics_win.cc",
43 "gpu_info_collector.cc",
44 "gpu_info_collector.h",
45 "gpu_info_collector_android.cc",
46 "gpu_info_collector_linux.cc",
47 "gpu_info_collector_linux.h",
48 "gpu_info_collector_mac.mm",
49 "gpu_info_collector_ozone.cc",
50 "gpu_info_collector_win.cc",
51 "gpu_info_collector_x11.cc",
54 "gpu_test_expectations_parser.cc",
55 "gpu_test_expectations_parser.h",
58 "software_rendering_list_json.cc",
62 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
63 "//build/config/compiler:no_size_t_to_int_warning",
64 "//gpu:gpu_implementation",
69 "//gpu/command_buffer/service:service_sources",
74 # Prefer mesa GL headers to system headers, which cause problems on Win.
75 include_dirs = [ "//third_party/mesa/src/include" ]
78 deps += [ "//third_party/libxml" ]
84 if (is_chrome_branded && is_official_build) {
86 "//third_party/amd/AmdCfxPxExt.h",
87 "//third_party/amd/amd_videocard_info_win.cc",
92 defines = [ "USE_LIBPCI=1" ]
94 if (is_linux && use_libpci && (use_x11 || use_ozone)) {
95 deps += [ "//build/config/linux:libpci" ]
97 if (is_linux && use_x11) {
99 "//build/config/linux:x11",
100 "//build/config/linux:xext",
103 "//third_party/libXNVCtrl",
107 sources -= [ "gpu_info_collector_x11.cc" ]
110 sources -= [ "gpu_info_collector_ozone.cc" ]