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) { |
11 public_deps = [ | 11 public_deps = [ |
12 "//gpu", | 12 "//gpu", |
13 ] | 13 ] |
14 } else { | 14 } else { |
15 public_deps = [ | 15 public_deps = [ |
16 ":config_sources", | 16 ":config_sources", |
17 ] | 17 ] |
18 } | 18 } |
19 } | 19 } |
20 | 20 |
21 source_set("crash_keys") { | |
Nico
2017/03/23 12:43:45
add a comment that this is linked into both chrome
sadrul
2017/03/23 14:45:22
Done.
| |
22 sources = [ | |
23 "gpu_crash_keys.cc", | |
24 "gpu_crash_keys.h", | |
25 ] | |
26 } | |
27 | |
21 source_set("config_sources") { | 28 source_set("config_sources") { |
22 # External code should depend on this via //gpu/config above rather than | 29 # External code should depend on this via //gpu/config above rather than |
23 # depending on this directly or the component build will break. | 30 # depending on this directly or the component build will break. |
24 visibility = [ "//gpu/*" ] | 31 visibility = [ "//gpu/*" ] |
25 | 32 |
26 sources = [ | 33 sources = [ |
27 "dx_diag_node.cc", | 34 "dx_diag_node.cc", |
28 "dx_diag_node.h", | 35 "dx_diag_node.h", |
29 "gpu_blacklist.cc", | 36 "gpu_blacklist.cc", |
30 "gpu_blacklist.h", | 37 "gpu_blacklist.h", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 "software_rendering_list_json.cc", | 69 "software_rendering_list_json.cc", |
63 ] | 70 ] |
64 | 71 |
65 configs += [ | 72 configs += [ |
66 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 73 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
67 "//build/config/compiler:no_size_t_to_int_warning", | 74 "//build/config/compiler:no_size_t_to_int_warning", |
68 "//gpu:gpu_implementation", | 75 "//gpu:gpu_implementation", |
69 ] | 76 ] |
70 | 77 |
71 deps = [ | 78 deps = [ |
79 ":crash_keys", | |
72 "//base", | 80 "//base", |
73 "//third_party/re2", | 81 "//third_party/re2", |
74 "//ui/gl", | 82 "//ui/gl", |
75 "//ui/gl/init", | 83 "//ui/gl/init", |
76 ] | 84 ] |
77 | 85 |
78 # Prefer mesa GL headers to system headers, which cause problems on Win. | 86 # Prefer mesa GL headers to system headers, which cause problems on Win. |
79 include_dirs = [ "//third_party/mesa/src/include" ] | 87 include_dirs = [ "//third_party/mesa/src/include" ] |
80 | 88 |
81 if (is_win) { | 89 if (is_win) { |
(...skipping 13 matching lines...) Expand all Loading... | |
95 if (is_linux) { | 103 if (is_linux) { |
96 deps += [ "//third_party/angle:angle_gpu_info_util" ] | 104 deps += [ "//third_party/angle:angle_gpu_info_util" ] |
97 } | 105 } |
98 if (is_mac) { | 106 if (is_mac) { |
99 libs = [ | 107 libs = [ |
100 "IOKit.framework", | 108 "IOKit.framework", |
101 "CoreFoundation.framework", | 109 "CoreFoundation.framework", |
102 ] | 110 ] |
103 } | 111 } |
104 } | 112 } |
OLD | NEW |