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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 | 8 |
9 group("config") { | 9 group("config") { |
10 if (is_component_build) { | 10 if (is_component_build) { |
(...skipping 10 matching lines...) Expand all Loading... |
21 # This needs to be a small target, because it links into both chrome.exe and | 21 # This needs to be a small target, because it links into both chrome.exe and |
22 # chrome.dll targets. If this target grows, that will lead to a size regression. | 22 # chrome.dll targets. If this target grows, that will lead to a size regression. |
23 # See https://crbug.com/703622 | 23 # See https://crbug.com/703622 |
24 source_set("crash_keys") { | 24 source_set("crash_keys") { |
25 sources = [ | 25 sources = [ |
26 "gpu_crash_keys.cc", | 26 "gpu_crash_keys.cc", |
27 "gpu_crash_keys.h", | 27 "gpu_crash_keys.h", |
28 ] | 28 ] |
29 } | 29 } |
30 | 30 |
| 31 process_json_outputs = [ |
| 32 "$target_gen_dir/gpu_driver_bug_list_arrays_and_structs_autogen.h", |
| 33 "$target_gen_dir/gpu_driver_bug_list_autogen.cc", |
| 34 "$target_gen_dir/gpu_driver_bug_list_autogen.h", |
| 35 "$target_gen_dir/gpu_driver_bug_list_exceptions_autogen.h", |
| 36 "$target_gen_dir/software_rendering_list_arrays_and_structs_autogen.h", |
| 37 "$target_gen_dir/software_rendering_list_autogen.cc", |
| 38 "$target_gen_dir/software_rendering_list_autogen.h", |
| 39 "$target_gen_dir/software_rendering_list_exceptions_autogen.h", |
| 40 ] |
| 41 |
| 42 action("process_json") { |
| 43 script = "process_json.py" |
| 44 |
| 45 inputs = [ |
| 46 "gpu_driver_bug_list.json", |
| 47 "gpu_driver_bug_workaround_type.h", |
| 48 "gpu_feature_type.h", |
| 49 "software_rendering_list.json", |
| 50 ] |
| 51 |
| 52 outputs = process_json_outputs |
| 53 |
| 54 args = [ |
| 55 "--output-dir", |
| 56 rebase_path("$target_gen_dir", root_build_dir), |
| 57 "--skip-testing-data", |
| 58 ] |
| 59 } |
| 60 |
31 source_set("config_sources") { | 61 source_set("config_sources") { |
32 # External code should depend on this via //gpu/config above rather than | 62 # External code should depend on this via //gpu/config above rather than |
33 # depending on this directly or the component build will break. | 63 # depending on this directly or the component build will break. |
34 visibility = [ "//gpu/*" ] | 64 visibility = [ "//gpu/*" ] |
35 | 65 |
36 sources = [ | 66 sources = [ |
37 "dx_diag_node.cc", | 67 "dx_diag_node.cc", |
38 "dx_diag_node.h", | 68 "dx_diag_node.h", |
39 "gpu_blacklist.cc", | 69 "gpu_blacklist.cc", |
40 "gpu_blacklist.h", | 70 "gpu_blacklist.h", |
41 "gpu_control_list.cc", | 71 "gpu_control_list.cc", |
42 "gpu_control_list.h", | 72 "gpu_control_list.h", |
43 "gpu_driver_bug_list.cc", | 73 "gpu_driver_bug_list.cc", |
44 "gpu_driver_bug_list.h", | 74 "gpu_driver_bug_list.h", |
45 "gpu_driver_bug_list_arrays_and_structs_autogen.h", | |
46 "gpu_driver_bug_list_autogen.cc", | |
47 "gpu_driver_bug_list_autogen.h", | |
48 "gpu_driver_bug_list_exceptions_autogen.h", | |
49 "gpu_driver_bug_workaround_type.h", | 75 "gpu_driver_bug_workaround_type.h", |
50 "gpu_driver_bug_workarounds.cc", | 76 "gpu_driver_bug_workarounds.cc", |
51 "gpu_driver_bug_workarounds.h", | 77 "gpu_driver_bug_workarounds.h", |
52 "gpu_dx_diagnostics_win.cc", | 78 "gpu_dx_diagnostics_win.cc", |
53 "gpu_feature_info.cc", | 79 "gpu_feature_info.cc", |
54 "gpu_feature_info.h", | 80 "gpu_feature_info.h", |
55 "gpu_feature_type.h", | 81 "gpu_feature_type.h", |
56 "gpu_finch_features.cc", | 82 "gpu_finch_features.cc", |
57 "gpu_finch_features.h", | 83 "gpu_finch_features.h", |
58 "gpu_info.cc", | 84 "gpu_info.cc", |
59 "gpu_info.h", | 85 "gpu_info.h", |
60 "gpu_info_collector.cc", | 86 "gpu_info_collector.cc", |
61 "gpu_info_collector.h", | 87 "gpu_info_collector.h", |
62 "gpu_info_collector_android.cc", | 88 "gpu_info_collector_android.cc", |
63 "gpu_info_collector_linux.cc", | 89 "gpu_info_collector_linux.cc", |
64 "gpu_info_collector_mac.mm", | 90 "gpu_info_collector_mac.mm", |
65 "gpu_info_collector_win.cc", | 91 "gpu_info_collector_win.cc", |
66 "gpu_switches.cc", | 92 "gpu_switches.cc", |
67 "gpu_switches.h", | 93 "gpu_switches.h", |
68 "gpu_test_config.cc", | 94 "gpu_test_config.cc", |
69 "gpu_test_config.h", | 95 "gpu_test_config.h", |
70 "gpu_test_expectations_parser.cc", | 96 "gpu_test_expectations_parser.cc", |
71 "gpu_test_expectations_parser.h", | 97 "gpu_test_expectations_parser.h", |
72 "gpu_util.cc", | 98 "gpu_util.cc", |
73 "gpu_util.h", | 99 "gpu_util.h", |
74 "software_rendering_list_arrays_and_structs_autogen.h", | |
75 "software_rendering_list_autogen.cc", | |
76 "software_rendering_list_autogen.h", | |
77 "software_rendering_list_exceptions_autogen.h", | |
78 ] | 100 ] |
79 | 101 |
| 102 sources += process_json_outputs |
| 103 |
80 configs += [ | 104 configs += [ |
81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 105 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
82 "//build/config/compiler:no_size_t_to_int_warning", | 106 "//build/config/compiler:no_size_t_to_int_warning", |
83 "//gpu:gpu_implementation", | 107 "//gpu:gpu_implementation", |
84 ] | 108 ] |
85 | 109 |
86 deps = [ | 110 deps = [ |
87 ":crash_keys", | 111 ":crash_keys", |
| 112 ":process_json", |
88 "//base", | 113 "//base", |
89 "//third_party/re2", | 114 "//third_party/re2", |
90 "//ui/gl", | 115 "//ui/gl", |
91 "//ui/gl/init", | 116 "//ui/gl/init", |
92 ] | 117 ] |
93 | 118 |
94 # Prefer mesa GL headers to system headers, which cause problems on Win. | 119 # Prefer mesa GL headers to system headers, which cause problems on Win. |
95 include_dirs = [ "//third_party/mesa/src/include" ] | 120 include_dirs = [ "//third_party/mesa/src/include" ] |
96 | 121 |
97 if (is_win) { | 122 if (is_win) { |
98 libs = [ | 123 libs = [ |
99 "dxguid.lib", | 124 "dxguid.lib", |
100 "setupapi.lib", | 125 "setupapi.lib", |
101 ] | 126 ] |
102 | 127 |
103 if (is_chrome_branded && is_official_build) { | 128 if (is_chrome_branded && is_official_build) { |
104 sources += [ | 129 sources += [ |
105 "//third_party/amd/AmdCfxPxExt.h", | 130 "//third_party/amd/AmdCfxPxExt.h", |
106 "//third_party/amd/amd_videocard_info_win.cc", | 131 "//third_party/amd/amd_videocard_info_win.cc", |
107 ] | 132 ] |
108 } | 133 } |
109 } | 134 } |
110 if (is_linux || is_mac) { | 135 if (is_linux || is_mac) { |
111 deps += [ "//third_party/angle:angle_gpu_info_util" ] | 136 deps += [ "//third_party/angle:angle_gpu_info_util" ] |
112 } | 137 } |
113 } | 138 } |
OLD | NEW |