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("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
9 | 9 |
10 if (is_chromeos && use_x11 && cpu_arch != "arm") { | 10 if (is_chromeos && cpu_arch != "arm") { |
11 action("libva_generate_stubs") { | 11 action("libva_generate_stubs") { |
12 extra_header = "gpu/media/va_stub_header.fragment" | 12 extra_header = "gpu/media/va_stub_header.fragment" |
13 | 13 |
14 script = "../../tools/generate_stubs/generate_stubs.py" | 14 script = "../../tools/generate_stubs/generate_stubs.py" |
15 sources = [ | 15 sources = [ |
16 "gpu/media/va.sigs", | 16 "gpu/media/va.sigs", |
17 ] | 17 ] |
18 inputs = [ | 18 inputs = [ |
19 extra_header, | 19 extra_header, |
20 ] | 20 ] |
| 21 if (use_x11) { |
| 22 sources += [ "content/common/gpu/media/va_x11.sigs" ] |
| 23 } |
| 24 if (use_ozone) { |
| 25 sources += [ "content/common/gpu/media/va_drm.sigs" ] |
| 26 } |
21 stubs_filename_root = "va_stubs" | 27 stubs_filename_root = "va_stubs" |
22 | 28 |
23 outputs = [ | 29 outputs = [ |
24 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", | 30 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
25 "$target_gen_dir/gpu/media/$stubs_filename_root.h", | 31 "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
26 ] | 32 ] |
27 args = [ | 33 args = [ |
28 "-i", | 34 "-i", |
29 rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 35 rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
30 "-o", | 36 "-o", |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 sources += [ | 272 sources += [ |
267 "gpu/media/android_video_decode_accelerator.cc", | 273 "gpu/media/android_video_decode_accelerator.cc", |
268 "gpu/media/android_video_decode_accelerator.h", | 274 "gpu/media/android_video_decode_accelerator.h", |
269 ] | 275 ] |
270 | 276 |
271 if (enable_webrtc) { | 277 if (enable_webrtc) { |
272 deps += [ "//third_party/libyuv" ] | 278 deps += [ "//third_party/libyuv" ] |
273 } | 279 } |
274 } | 280 } |
275 | 281 |
276 if (is_chromeos && use_x11) { | 282 if (is_chromeos) { |
277 if (cpu_arch == "arm") { | 283 if (cpu_arch == "arm" && use_x11) { |
278 sources += [ | 284 sources += [ |
279 "gpu/media/exynos_v4l2_video_device.cc", | 285 "gpu/media/exynos_v4l2_video_device.cc", |
280 "gpu/media/exynos_v4l2_video_device.h", | 286 "gpu/media/exynos_v4l2_video_device.h", |
281 "gpu/media/tegra_v4l2_video_device.cc", | 287 "gpu/media/tegra_v4l2_video_device.cc", |
282 "gpu/media/tegra_v4l2_video_device.h", | 288 "gpu/media/tegra_v4l2_video_device.h", |
283 "gpu/media/v4l2_image_processor.cc", | 289 "gpu/media/v4l2_image_processor.cc", |
284 "gpu/media/v4l2_image_processor.h", | 290 "gpu/media/v4l2_image_processor.h", |
285 "gpu/media/v4l2_video_decode_accelerator.cc", | 291 "gpu/media/v4l2_video_decode_accelerator.cc", |
286 "gpu/media/v4l2_video_decode_accelerator.h", | 292 "gpu/media/v4l2_video_decode_accelerator.h", |
287 "gpu/media/v4l2_video_device.cc", | 293 "gpu/media/v4l2_video_device.cc", |
288 "gpu/media/v4l2_video_device.h", | 294 "gpu/media/v4l2_video_device.h", |
289 "gpu/media/v4l2_video_encode_accelerator.cc", | 295 "gpu/media/v4l2_video_encode_accelerator.cc", |
290 "gpu/media/v4l2_video_encode_accelerator.h", | 296 "gpu/media/v4l2_video_encode_accelerator.h", |
291 ] | 297 ] |
292 libs = [ | 298 libs = [ |
293 "EGL", | 299 "EGL", |
294 "GLESv2", | 300 "GLESv2", |
295 ] | 301 ] |
296 } else { # !arm | 302 } else { # !arm |
297 sources += [ | 303 sources += [ |
298 "gpu/media/h264_dpb.cc", | 304 "gpu/media/h264_dpb.cc", |
299 "gpu/media/h264_dpb.h", | 305 "gpu/media/h264_dpb.h", |
300 "gpu/media/va_surface.h", | 306 "gpu/media/va_surface.h", |
301 "gpu/media/vaapi_h264_decoder.cc", | 307 "gpu/media/vaapi_h264_decoder.cc", |
302 "gpu/media/vaapi_h264_decoder.h", | 308 "gpu/media/vaapi_h264_decoder.h", |
| 309 "gpu/media/vaapi_picture.cc", |
| 310 "gpu/media/vaapi_picture.h", |
303 "gpu/media/vaapi_video_decode_accelerator.cc", | 311 "gpu/media/vaapi_video_decode_accelerator.cc", |
304 "gpu/media/vaapi_video_decode_accelerator.h", | 312 "gpu/media/vaapi_video_decode_accelerator.h", |
305 "gpu/media/vaapi_video_encode_accelerator.cc", | 313 "gpu/media/vaapi_video_encode_accelerator.cc", |
306 "gpu/media/vaapi_video_encode_accelerator.h", | 314 "gpu/media/vaapi_video_encode_accelerator.h", |
307 "gpu/media/vaapi_wrapper.cc", | 315 "gpu/media/vaapi_wrapper.cc", |
308 "gpu/media/vaapi_wrapper.h", | 316 "gpu/media/vaapi_wrapper.h", |
309 ] + get_target_outputs(":libva_generate_stubs") | 317 ] + get_target_outputs(":libva_generate_stubs") |
310 configs += [ | 318 configs += [ |
311 "//third_party/libva:libva_config", | 319 "//third_party/libva:libva_config", |
312 "//third_party/libyuv:libyuv_config", | 320 "//third_party/libyuv:libyuv_config", |
313 ] | 321 ] |
314 deps += [ | 322 deps += [ |
315 ":libva_generate_stubs", | 323 ":libva_generate_stubs", |
316 "//media", | 324 "//media", |
317 "//third_party/libyuv", | 325 "//third_party/libyuv", |
318 ] | 326 ] |
| 327 if (use_x11) { |
| 328 sources += [ |
| 329 "gpu/media/vaapi_tfp_picture.cc", |
| 330 "gpu/media/vaapi_tfp_picture.h", |
| 331 ] |
| 332 } else { |
| 333 sources += [ |
| 334 "gpu/media/vaapi_drm_picture.cc", |
| 335 "gpu/media/vaapi_drm_picture.h", |
| 336 ] |
| 337 } |
319 } | 338 } |
320 } | 339 } |
321 | 340 |
322 if (is_win) { | 341 if (is_win) { |
323 sources += [ | 342 sources += [ |
324 "gpu/media/dxva_video_decode_accelerator.cc", | 343 "gpu/media/dxva_video_decode_accelerator.cc", |
325 "gpu/media/dxva_video_decode_accelerator.h", | 344 "gpu/media/dxva_video_decode_accelerator.h", |
326 ] | 345 ] |
327 include_dirs += [ "//third_party/khronos" ] | 346 include_dirs += [ "//third_party/khronos" ] |
328 deps += [ "//ui/gl" ] | 347 deps += [ "//ui/gl" ] |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 "geolocation_service.mojom", | 386 "geolocation_service.mojom", |
368 "permission_service.mojom", | 387 "permission_service.mojom", |
369 "render_frame_setup.mojom", | 388 "render_frame_setup.mojom", |
370 ] | 389 ] |
371 | 390 |
372 deps = [ | 391 deps = [ |
373 "//content/public/common:mojo_bindings", | 392 "//content/public/common:mojo_bindings", |
374 "//mojo/public/interfaces/application:application", | 393 "//mojo/public/interfaces/application:application", |
375 ] | 394 ] |
376 } | 395 } |
OLD | NEW |