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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//content/common/common.gni") | 7 import("//content/common/common.gni") |
8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
9 import("//mojo/public/tools/bindings/mojom.gni") | 9 import("//mojo/public/tools/bindings/mojom.gni") |
10 if (is_mac) { | 10 if (is_mac) { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 "//gpu/blink", | 166 "//gpu/blink", |
167 "//gpu/command_buffer/client:gl_in_process_context", | 167 "//gpu/command_buffer/client:gl_in_process_context", |
168 "//gpu/command_buffer/client:gles2_c_lib", | 168 "//gpu/command_buffer/client:gles2_c_lib", |
169 "//gpu/command_buffer/client:gles2_cmd_helper", | 169 "//gpu/command_buffer/client:gles2_cmd_helper", |
170 "//gpu/command_buffer/client:gles2_implementation", | 170 "//gpu/command_buffer/client:gles2_implementation", |
171 "//gpu/command_buffer/client:gles2_interface", | 171 "//gpu/command_buffer/client:gles2_interface", |
172 "//gpu/command_buffer/common:gles2_utils", | 172 "//gpu/command_buffer/common:gles2_utils", |
173 "//gpu/command_buffer/service", | 173 "//gpu/command_buffer/service", |
174 "//gpu/ipc/client", | 174 "//gpu/ipc/client", |
175 "//gpu/ipc/common", | 175 "//gpu/ipc/common", |
| 176 |
| 177 # TODO(markdittmer): This should be removed once content/common/gpu/media |
| 178 # is refactored into media/ipc. |
| 179 "//gpu/ipc/service", |
176 "//gpu/skia_bindings", | 180 "//gpu/skia_bindings", |
177 "//ipc", | 181 "//ipc", |
178 "//ipc/mojo", | 182 "//ipc/mojo", |
179 "//media", | 183 "//media", |
180 "//media:shared_memory_support", | 184 "//media:shared_memory_support", |
181 "//media/gpu/ipc/common", | 185 "//media/gpu/ipc/common", |
182 "//media/midi", | 186 "//media/midi", |
183 "//mojo/common:common_base", | 187 "//mojo/common:common_base", |
184 "//mojo/converters/network", | 188 "//mojo/converters/network", |
185 "//mojo/edk/system", | 189 "//mojo/edk/system", |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 set_sources_assignment_filter([]) | 223 set_sources_assignment_filter([]) |
220 sources += [ | 224 sources += [ |
221 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", | 225 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", |
222 "sandbox_linux/sandbox_bpf_base_policy_linux.h", | 226 "sandbox_linux/sandbox_bpf_base_policy_linux.h", |
223 ] | 227 ] |
224 set_sources_assignment_filter(sources_assignment_filter) | 228 set_sources_assignment_filter(sources_assignment_filter) |
225 } | 229 } |
226 | 230 |
227 if (is_mac) { | 231 if (is_mac) { |
228 sources += [ | 232 sources += [ |
229 "gpu/gpu_memory_buffer_factory_io_surface.cc", | |
230 "gpu/gpu_memory_buffer_factory_io_surface.h", | |
231 "gpu/media/vt_mac.h", | 233 "gpu/media/vt_mac.h", |
232 "gpu/media/vt_video_decode_accelerator_mac.cc", | 234 "gpu/media/vt_video_decode_accelerator_mac.cc", |
233 "gpu/media/vt_video_decode_accelerator_mac.h", | 235 "gpu/media/vt_video_decode_accelerator_mac.h", |
234 "gpu/media/vt_video_encode_accelerator_mac.cc", | 236 "gpu/media/vt_video_encode_accelerator_mac.cc", |
235 "gpu/media/vt_video_encode_accelerator_mac.h", | 237 "gpu/media/vt_video_encode_accelerator_mac.h", |
236 ] + get_target_outputs(":libvt_generate_stubs") | 238 ] + get_target_outputs(":libvt_generate_stubs") |
237 | 239 |
238 sources -= [ "plugin_list_posix.cc" ] | 240 sources -= [ "plugin_list_posix.cc" ] |
239 | 241 |
240 deps += [ | 242 deps += [ |
(...skipping 10 matching lines...) Expand all Loading... |
251 "CoreMedia.framework", | 253 "CoreMedia.framework", |
252 "CoreVideo.framework", | 254 "CoreVideo.framework", |
253 "IOSurface.framework", | 255 "IOSurface.framework", |
254 "OpenGL.framework", | 256 "OpenGL.framework", |
255 "QuartzCore.framework", | 257 "QuartzCore.framework", |
256 "sandbox", | 258 "sandbox", |
257 ] | 259 ] |
258 } | 260 } |
259 | 261 |
260 if (is_android) { | 262 if (is_android) { |
261 sources += [ | |
262 "gpu/gpu_memory_buffer_factory_surface_texture.cc", | |
263 "gpu/gpu_memory_buffer_factory_surface_texture.h", | |
264 ] | |
265 | |
266 deps += [ | 263 deps += [ |
267 "//content/public/android:common_aidl", | 264 "//content/public/android:common_aidl", |
268 "//content/public/android:jni", | 265 "//content/public/android:jni", |
269 ] | 266 ] |
270 | 267 |
271 libs += [ "android" ] | 268 libs += [ "android" ] |
272 } | 269 } |
273 | 270 |
274 if (is_debug && !is_component_build && enable_plugins) { | 271 if (is_debug && !is_component_build && enable_plugins) { |
275 # Content depends on the PPAPI message logging stuff; if this isn't here, | 272 # Content depends on the PPAPI message logging stuff; if this isn't here, |
276 # some unit test binaries won't compile. This only worked in release mode | 273 # some unit test binaries won't compile. This only worked in release mode |
277 # because logging is disabled there. | 274 # because logging is disabled there. |
278 deps += [ "//ppapi/proxy:ipc_sources" ] | 275 deps += [ "//ppapi/proxy:ipc_sources" ] |
279 } | 276 } |
280 | 277 |
281 if (use_ozone) { | 278 if (use_ozone) { |
282 deps += [ "//ui/ozone" ] | 279 deps += [ "//ui/ozone" ] |
283 } else { | 280 } else { |
284 sources -= [ | 281 sources -= [ |
285 "cursors/webcursor_ozone.cc", | 282 "cursors/webcursor_ozone.cc", |
286 "font_list_ozone.cc", | 283 "font_list_ozone.cc", |
287 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc", | |
288 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h", | |
289 ] | 284 ] |
290 } | 285 } |
291 | 286 |
292 if (!use_aura || is_android) { | 287 if (!use_aura || is_android) { |
293 sources -= [ "cursors/webcursor_aura.cc" ] | 288 sources -= [ "cursors/webcursor_aura.cc" ] |
294 } | 289 } |
295 | 290 |
296 if (!use_aura || !use_x11) { | 291 if (!use_aura || !use_x11) { |
297 sources -= [ "cursors/webcursor_aurax11.cc" ] | 292 sources -= [ "cursors/webcursor_aurax11.cc" ] |
298 } | 293 } |
299 | 294 |
300 if (use_pango) { | 295 if (use_pango) { |
301 configs += [ "//build/config/linux:pangocairo" ] | 296 configs += [ "//build/config/linux:pangocairo" ] |
302 if (use_ozone) { | 297 if (use_ozone) { |
303 # If we're using pango, never use this ozone file (it was removed in all | 298 # If we're using pango, never use this ozone file (it was removed in all |
304 # non-ozone cases above). | 299 # non-ozone cases above). |
305 sources -= [ "font_list_ozone.cc" ] | 300 sources -= [ "font_list_ozone.cc" ] |
306 } | 301 } |
307 } else { | 302 } else { |
308 sources -= [ "font_list_pango.cc" ] | 303 sources -= [ "font_list_pango.cc" ] |
309 } | 304 } |
310 | 305 |
311 if (use_x11) { | |
312 configs += [ | |
313 "//build/config/linux:xcomposite", | |
314 "//third_party/khronos:khronos_headers", | |
315 ] | |
316 | |
317 if (current_cpu != "arm" || !is_chromeos) { | |
318 sources += [ "gpu/x_util.h" ] | |
319 } | |
320 } | |
321 | |
322 if (enable_plugins) { | 306 if (enable_plugins) { |
323 deps += [ "//ppapi/shared_impl" ] | 307 deps += [ "//ppapi/shared_impl" ] |
324 } else { | 308 } else { |
325 sources -= [ | 309 sources -= [ |
326 "pepper_file_util.cc", | 310 "pepper_file_util.cc", |
327 "pepper_file_util.h", | 311 "pepper_file_util.h", |
328 "pepper_messages.h", | 312 "pepper_messages.h", |
329 "pepper_plugin_list.cc", | 313 "pepper_plugin_list.cc", |
330 "pepper_plugin_list.h", | 314 "pepper_plugin_list.h", |
331 "pepper_renderer_instance_data.cc", | 315 "pepper_renderer_instance_data.cc", |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 "//components/leveldb/public/interfaces", | 540 "//components/leveldb/public/interfaces", |
557 "//components/mus/public/interfaces", | 541 "//components/mus/public/interfaces", |
558 "//content/public/common:mojo_bindings", | 542 "//content/public/common:mojo_bindings", |
559 "//mojo/shell/public/interfaces", | 543 "//mojo/shell/public/interfaces", |
560 "//skia/public/interfaces", | 544 "//skia/public/interfaces", |
561 "//third_party/WebKit/public:mojo_bindings", | 545 "//third_party/WebKit/public:mojo_bindings", |
562 "//ui/mojo/geometry:interfaces", | 546 "//ui/mojo/geometry:interfaces", |
563 "//url/mojo:url_mojom_origin", | 547 "//url/mojo:url_mojom_origin", |
564 ] | 548 ] |
565 } | 549 } |
OLD | NEW |