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/chrome_build.gni")
6 import("//build/config/ui.gni")
9 # Use the PCI lib to collect GPU information on Linux.
14 if (is_component_build) {
25 source_set("config_sources") {
26 visibility = [ "//gpu/*" ]
33 "gpu_control_list.cc",
35 "gpu_control_list_jsons.h",
36 "gpu_driver_bug_list.cc",
37 "gpu_driver_bug_list.h",
38 "gpu_driver_bug_list_json.cc",
39 "gpu_driver_bug_workaround_type.h",
40 "gpu_dx_diagnostics_win.cc",
44 "gpu_info_collector.cc",
45 "gpu_info_collector.h",
46 "gpu_info_collector_android.cc",
47 "gpu_info_collector_linux.cc",
48 "gpu_info_collector_linux.h",
49 "gpu_info_collector_mac.mm",
50 "gpu_info_collector_ozone.cc",
51 "gpu_info_collector_win.cc",
52 "gpu_info_collector_x11.cc",
57 "gpu_test_expectations_parser.cc",
58 "gpu_test_expectations_parser.h",
61 "software_rendering_list_json.cc",
65 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
66 "//build/config/compiler:no_size_t_to_int_warning",
67 "//gpu:gpu_implementation",
76 # Prefer mesa GL headers to system headers, which cause problems on Win.
77 include_dirs = [ "//third_party/mesa/src/include" ]
80 deps += [ "//third_party/libxml" ]
86 if (is_chrome_branded && is_official_build) {
88 "//third_party/amd/AmdCfxPxExt.h",
89 "//third_party/amd/amd_videocard_info_win.cc",
94 defines = [ "USE_LIBPCI=1" ]
96 if (is_linux && use_libpci && (use_x11 || use_ozone)) {
97 deps += [ "//build/linux:libpci" ]
99 if (is_linux && use_x11) {
101 "//build/config/linux:x11",
102 "//build/config/linux:xext",
105 "//third_party/libXNVCtrl",
109 sources -= [ "gpu_info_collector_x11.cc" ]
112 sources -= [ "gpu_info_collector_ozone.cc" ]