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/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//content/content.gni") | 6 import("//content/content.gni") |
7 import("//media/media_options.gni") | 7 import("//media/media_options.gni") |
8 | 8 |
9 # See //content/BUILD.gn for how this works. | 9 # See //content/BUILD.gn for how this works. |
10 group("gpu") { | 10 group("gpu") { |
11 visibility = [ "//content/*" ] | 11 visibility = [ "//content/*" ] # This is an internal content API. |
12 | 12 |
13 if (is_component_build) { | 13 if (is_component_build) { |
14 public_deps = [ | 14 public_deps = [ |
15 "//content", | 15 "//content", |
16 ] | 16 ] |
17 } else { | 17 } else { |
18 public_deps = [ | 18 public_deps = [ |
19 ":gpu_sources", | 19 ":gpu_sources", |
20 ] | 20 ] |
21 } | 21 } |
22 } | 22 } |
23 | 23 |
24 source_set("gpu_sources") { | 24 source_set("gpu_sources") { |
| 25 # This is an internal content API. Code outside of the content "component" |
| 26 # (like content/test and content/shell) should depend on ":gpu" above. |
25 visibility = [ "//content/*" ] | 27 visibility = [ "//content/*" ] |
26 | 28 |
27 sources = [ | 29 sources = [ |
28 "gpu_child_thread.cc", | 30 "gpu_child_thread.cc", |
29 "gpu_child_thread.h", | 31 "gpu_child_thread.h", |
30 "gpu_main.cc", | 32 "gpu_main.cc", |
31 "gpu_process.cc", | 33 "gpu_process.cc", |
32 "gpu_process.h", | 34 "gpu_process.h", |
33 "gpu_process_control_impl.cc", | 35 "gpu_process_control_impl.cc", |
34 "gpu_process_control_impl.h", | 36 "gpu_process_control_impl.h", |
35 "gpu_watchdog_thread.cc", | 37 "gpu_watchdog_thread.cc", |
36 "gpu_watchdog_thread.h", | 38 "gpu_watchdog_thread.h", |
37 "in_process_gpu_thread.cc", | 39 "in_process_gpu_thread.cc", |
38 "in_process_gpu_thread.h", | 40 "in_process_gpu_thread.h", |
39 ] | 41 ] |
40 | 42 |
41 configs += [ "//content:content_implementation" ] | 43 configs += [ "//content:content_implementation" ] |
42 | 44 |
43 deps = [ | 45 deps = [ |
44 "//base", | 46 "//base", |
| 47 "//base/third_party/dynamic_annotations", |
| 48 "//components/tracing", |
45 "//content:export", | 49 "//content:export", |
| 50 "//content/common", |
46 "//content/public/child:child_sources", | 51 "//content/public/child:child_sources", |
47 "//content/public/common:common_sources", | 52 "//content/public/common:common_sources", |
48 "//gpu:gpu", | 53 "//gpu:gpu", |
49 "//gpu/ipc/common:command_buffer_traits", | 54 "//gpu/ipc/common:command_buffer_traits", |
50 "//ipc", | 55 "//ipc", |
| 56 "//media/mojo/services:application_factory", |
51 "//mojo/shell/public/interfaces", | 57 "//mojo/shell/public/interfaces", |
52 "//skia", | 58 "//skia", |
| 59 "//ui/events/ipc", |
| 60 "//ui/gfx/ipc", |
53 "//ui/gl", | 61 "//ui/gl", |
54 ] | 62 ] |
55 | 63 |
56 public_deps = [ | |
57 "//content/common:mojo_bindings", | |
58 ] | |
59 | |
60 if (mojo_media_host == "gpu") { | 64 if (mojo_media_host == "gpu") { |
61 deps += [ "//media/mojo/services:application_factory" ] | 65 deps += [ "//media/mojo/services:application_factory" ] |
62 } | 66 } |
63 | 67 |
64 if (is_win) { | 68 if (is_win) { |
65 configs += [ | 69 configs += [ |
66 "//third_party/khronos:khronos_headers", | 70 "//third_party/khronos:khronos_headers", |
67 "//third_party/wtl:wtl_includes", | 71 "//third_party/wtl:wtl_includes", |
68 ] | 72 ] |
69 libs = [ "setupapi.lib" ] | 73 libs = [ "setupapi.lib" ] |
70 deps += [ | 74 deps += [ |
| 75 "//sandbox", |
71 "//third_party/angle:libEGL", | 76 "//third_party/angle:libEGL", |
72 "//third_party/angle:libGLESv2", | 77 "//third_party/angle:libGLESv2", |
73 ] | 78 ] |
74 } | 79 } |
75 | 80 |
76 if (is_chromeos && current_cpu != "arm") { | 81 if (is_chromeos && current_cpu != "arm") { |
77 configs += [ "//third_party/libva:libva_config" ] | 82 configs += [ "//third_party/libva:libva_config" ] |
78 } | 83 } |
79 | 84 |
80 if (use_x11) { | 85 if (use_x11) { |
81 deps += [ "//ui/events/platform/x11" ] | 86 deps += [ "//ui/events/platform/x11" ] |
82 } | 87 } |
83 | 88 |
| 89 if (use_ozone) { |
| 90 deps += [ "//ui/ozone" ] |
| 91 } |
| 92 |
84 if (enable_vulkan) { | 93 if (enable_vulkan) { |
85 deps += [ "//gpu/vulkan" ] | 94 deps += [ "//gpu/vulkan" ] |
86 } | 95 } |
87 } | 96 } |
OLD | NEW |