OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 group("common") { | 8 group("common") { |
9 if (is_component_build) { | 9 if (is_component_build) { |
10 public_deps = [ | 10 public_deps = [ |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 "memory_stats.h", | 80 "memory_stats.h", |
81 ] | 81 ] |
82 | 82 |
83 configs += [ | 83 configs += [ |
84 "//gpu:gpu_implementation", | 84 "//gpu:gpu_implementation", |
85 "//third_party/khronos:khronos_headers", | 85 "//third_party/khronos:khronos_headers", |
86 ] | 86 ] |
87 | 87 |
88 public_deps = [ | 88 public_deps = [ |
89 ":command_buffer_traits_sources", | 89 ":command_buffer_traits_sources", |
| 90 ":surface_handle_type", |
90 "//gpu/command_buffer/common:gles2_utils", | 91 "//gpu/command_buffer/common:gles2_utils", |
91 ] | 92 ] |
92 | 93 |
93 deps = [ | 94 deps = [ |
94 "//base", | 95 "//base", |
95 "//gpu/command_buffer/common:common_sources", | 96 "//gpu/command_buffer/common:common_sources", |
96 "//gpu/config:config_sources", | 97 "//gpu/config:config_sources", |
97 "//ipc", | 98 "//ipc", |
98 "//ui/base", | 99 "//ui/base", |
99 "//ui/events/ipc", | 100 "//ui/events/ipc", |
(...skipping 12 matching lines...) Expand all Loading... |
112 "android/surface_texture_peer.cc", | 113 "android/surface_texture_peer.cc", |
113 "android/surface_texture_peer.h", | 114 "android/surface_texture_peer.h", |
114 ] | 115 ] |
115 } | 116 } |
116 | 117 |
117 if (use_ozone) { | 118 if (use_ozone) { |
118 deps += [ "//ui/ozone" ] | 119 deps += [ "//ui/ozone" ] |
119 } | 120 } |
120 } | 121 } |
121 | 122 |
| 123 # Depend on this to use surface_handle.h without pulling in all of gpu ipc. |
| 124 source_set("surface_handle_type") { |
| 125 public = [ |
| 126 "surface_handle.h", |
| 127 ] |
| 128 |
| 129 public_deps = [ |
| 130 "//ui/gfx:native_widget_types", |
| 131 ] |
| 132 } |
| 133 |
122 mojom("interfaces") { | 134 mojom("interfaces") { |
123 sources = [ | 135 sources = [ |
124 "capabilities.mojom", | 136 "capabilities.mojom", |
125 "dx_diag_node.mojom", | 137 "dx_diag_node.mojom", |
126 "gpu_info.mojom", | 138 "gpu_info.mojom", |
127 "mailbox.mojom", | 139 "mailbox.mojom", |
128 "mailbox_holder.mojom", | 140 "mailbox_holder.mojom", |
| 141 "surface_handle.mojom", |
129 "sync_token.mojom", | 142 "sync_token.mojom", |
130 ] | 143 ] |
131 | 144 |
132 public_deps = [ | 145 public_deps = [ |
133 "//mojo/common:common_custom_types", | 146 "//mojo/common:common_custom_types", |
134 "//ui/gfx/geometry/mojo", | 147 "//ui/gfx/geometry/mojo", |
135 ] | 148 ] |
136 } | 149 } |
137 | 150 |
138 mojom("test_interfaces") { | 151 mojom("test_interfaces") { |
139 testonly = true | 152 testonly = true |
140 sources = [ | 153 sources = [ |
141 "traits_test_service.mojom", | 154 "traits_test_service.mojom", |
142 ] | 155 ] |
143 | 156 |
144 public_deps = [ | 157 public_deps = [ |
145 ":interfaces", | 158 ":interfaces", |
146 ] | 159 ] |
147 } | 160 } |
148 | 161 |
149 source_set("struct_traits") { | 162 source_set("struct_traits") { |
150 sources = [ | 163 sources = [ |
151 "mailbox_holder_struct_traits.h", | 164 "mailbox_holder_struct_traits.h", |
152 "mailbox_struct_traits.h", | 165 "mailbox_struct_traits.h", |
| 166 "surface_handle_struct_traits.h", |
153 "sync_token_struct_traits.h", | 167 "sync_token_struct_traits.h", |
154 ] | 168 ] |
155 deps = [ | 169 deps = [ |
156 ":interfaces_shared_cpp_sources", | 170 ":interfaces_shared_cpp_sources", |
| 171 ":surface_handle_type", |
157 "//gpu/command_buffer/common", | 172 "//gpu/command_buffer/common", |
158 "//mojo/public/cpp/bindings:bindings", | 173 "//mojo/public/cpp/bindings:bindings", |
159 ] | 174 ] |
160 } | 175 } |
OLD | NEW |