1# Copyright (c) 2012 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.
4
5{
6  'dependencies': [
7    '../third_party/re2/re2.gyp:re2',
8    '../base/base.gyp:base',
9    '../ui/gl/gl.gyp:gl',
10  ],
11  'include_dirs': [
12    '..',
13  ],
14  'sources': [
15    'config/dx_diag_node.cc',
16    'config/dx_diag_node.h',
17    'config/gpu_blacklist.cc',
18    'config/gpu_blacklist.h',
19    'config/gpu_control_list_jsons.h',
20    'config/gpu_control_list.cc',
21    'config/gpu_control_list.h',
22    'config/gpu_driver_bug_list_json.cc',
23    'config/gpu_driver_bug_list.cc',
24    'config/gpu_driver_bug_list.h',
25    'config/gpu_driver_bug_workaround_type.h',
26    'config/gpu_dx_diagnostics_win.cc',
27    'config/gpu_feature_type.h',
28    'config/gpu_info.cc',
29    'config/gpu_info.h',
30    'config/gpu_info_collector_android.cc',
31    'config/gpu_info_collector_linux.cc',
32    'config/gpu_info_collector_linux.h',
33    'config/gpu_info_collector_mac.mm',
34    'config/gpu_info_collector_ozone.cc',
35    'config/gpu_info_collector_win.cc',
36    'config/gpu_info_collector_x11.cc',
37    'config/gpu_info_collector.cc',
38    'config/gpu_info_collector.h',
39    'config/gpu_performance_stats.h',
40    'config/gpu_test_config.cc',
41    'config/gpu_test_config.h',
42    'config/gpu_test_expectations_parser.cc',
43    'config/gpu_test_expectations_parser.h',
44    'config/gpu_util.cc',
45    'config/gpu_util.h',
46    'config/software_rendering_list_json.cc',
47  ],
48  'conditions': [
49    ['OS=="win"', {
50      'dependencies': [
51        '../third_party/libxml/libxml.gyp:libxml',
52      ],
53      'link_settings': {
54        'libraries': [
55          '-ldxguid.lib',
56          '-lsetupapi.lib',
57        ],
58      },
59      # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
60      'msvs_disabled_warnings': [ 4267, ],
61    }],
62    ['OS=="win" and branding=="Chrome" and buildtype=="Official"', {
63      'sources': [
64        '../third_party/amd/AmdCfxPxExt.h',
65        '../third_party/amd/amd_videocard_info_win.cc',
66      ],
67    }],
68    ['OS=="linux" and (use_x11==1 or use_ozone==1)', {
69      'dependencies': [
70        '../build/linux/system.gyp:libpci',
71      ],
72    }],
73    ['OS=="linux" and use_x11==1', {
74      'dependencies': [
75        '../build/linux/system.gyp:x11',
76        '../build/linux/system.gyp:xext',
77        '../third_party/libXNVCtrl/libXNVCtrl.gyp:libXNVCtrl',
78      ],
79    }],
80  ],
81}
82