[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / gpu / config / BUILD.gn
blob6355197e359ac0401e85d5b2f229e3a8501bed2c
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")
7 source_set("config") {
8   sources = [
9     "dx_diag_node.cc",
10     "dx_diag_node.h",
11     "gpu_blacklist.cc",
12     "gpu_blacklist.h",
13     "gpu_control_list_jsons.h",
14     "gpu_control_list.cc",
15     "gpu_control_list.h",
16     "gpu_driver_bug_list_json.cc",
17     "gpu_driver_bug_list.cc",
18     "gpu_driver_bug_list.h",
19     "gpu_driver_bug_workaround_type.h",
20     "gpu_dx_diagnostics_win.cc",
21     "gpu_feature_type.h",
22     "gpu_info.cc",
23     "gpu_info.h",
24     "gpu_info_collector_android.cc",
25     "gpu_info_collector_mac.mm",
26     "gpu_info_collector_ozone.cc",
27     "gpu_info_collector_win.cc",
28     "gpu_info_collector_x11.cc",
29     "gpu_info_collector.cc",
30     "gpu_info_collector.h",
31     "gpu_performance_stats.h",
32     "gpu_test_config.cc",
33     "gpu_test_config.h",
34     "gpu_test_expectations_parser.cc",
35     "gpu_test_expectations_parser.h",
36     "gpu_util.cc",
37     "gpu_util.h",
38     "software_rendering_list_json.cc",
39   ]
41   defines = [ "GPU_IMPLEMENTATION" ]
43   deps = [
44     "//base",
45     "//third_party/re2",
46     "//ui/gl",
47   ]
49   if (is_win) {
50     deps += [ "//third_party/libxml" ]
51     libs = [ "dxguid.lib", "setupapi.lib" ]
53     if (is_chrome_branded) {
54       sources += [
55         "//third_party/amd/AmdCfxPxExt.h",
56         "//third_party/amd/amd_videocard_info_win.cc",
57       ]
58     }
59   }
60   if (is_linux && use_x11) {
61     configs += [
62       "//build/config/linux:x11",
63       "//build/config/linux:xext",
64     ]
65     deps += [
66       "//build/config/linux:libpci",
67       "//third_party/libXNVCtrl",
68     ]
69   } else {
70     sources -= [ "gpu_info_collector_x11.cc" ]
71   }
72   if (!use_ozone) {
73     sources -= [ "gpu_info_collector_ozone.cc" ]
74   }