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 += [ "gpu/media/va_x11.sigs" ] |
| 23 } |
21 stubs_filename_root = "va_stubs" | 24 stubs_filename_root = "va_stubs" |
22 | 25 |
23 outputs = [ | 26 outputs = [ |
24 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", | 27 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
25 "$target_gen_dir/gpu/media/$stubs_filename_root.h", | 28 "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
26 ] | 29 ] |
27 args = [ | 30 args = [ |
28 "-i", | 31 "-i", |
29 rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 32 rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
30 "-o", | 33 "-o", |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 sources += [ | 270 sources += [ |
268 "gpu/media/android_video_decode_accelerator.cc", | 271 "gpu/media/android_video_decode_accelerator.cc", |
269 "gpu/media/android_video_decode_accelerator.h", | 272 "gpu/media/android_video_decode_accelerator.h", |
270 ] | 273 ] |
271 | 274 |
272 if (enable_webrtc) { | 275 if (enable_webrtc) { |
273 deps += [ "//third_party/libyuv" ] | 276 deps += [ "//third_party/libyuv" ] |
274 } | 277 } |
275 } | 278 } |
276 | 279 |
277 if (is_chromeos && use_x11) { | 280 if (is_chromeos) { |
278 if (cpu_arch == "arm") { | 281 if (cpu_arch == "arm" && use_x11) { |
279 sources += [ | 282 sources += [ |
280 "gpu/media/exynos_v4l2_video_device.cc", | 283 "gpu/media/exynos_v4l2_video_device.cc", |
281 "gpu/media/exynos_v4l2_video_device.h", | 284 "gpu/media/exynos_v4l2_video_device.h", |
282 "gpu/media/tegra_v4l2_video_device.cc", | 285 "gpu/media/tegra_v4l2_video_device.cc", |
283 "gpu/media/tegra_v4l2_video_device.h", | 286 "gpu/media/tegra_v4l2_video_device.h", |
284 "gpu/media/v4l2_image_processor.cc", | 287 "gpu/media/v4l2_image_processor.cc", |
285 "gpu/media/v4l2_image_processor.h", | 288 "gpu/media/v4l2_image_processor.h", |
286 "gpu/media/v4l2_video_decode_accelerator.cc", | 289 "gpu/media/v4l2_video_decode_accelerator.cc", |
287 "gpu/media/v4l2_video_decode_accelerator.h", | 290 "gpu/media/v4l2_video_decode_accelerator.h", |
288 "gpu/media/v4l2_video_device.cc", | 291 "gpu/media/v4l2_video_device.cc", |
289 "gpu/media/v4l2_video_device.h", | 292 "gpu/media/v4l2_video_device.h", |
290 "gpu/media/v4l2_video_encode_accelerator.cc", | 293 "gpu/media/v4l2_video_encode_accelerator.cc", |
291 "gpu/media/v4l2_video_encode_accelerator.h", | 294 "gpu/media/v4l2_video_encode_accelerator.h", |
292 ] | 295 ] |
293 libs = [ | 296 libs = [ |
294 "EGL", | 297 "EGL", |
295 "GLESv2", | 298 "GLESv2", |
296 ] | 299 ] |
297 } else { # !arm | 300 } |
| 301 if (cpu_arch != "arm") { |
298 sources += [ | 302 sources += [ |
299 "gpu/media/h264_dpb.cc", | 303 "gpu/media/h264_dpb.cc", |
300 "gpu/media/h264_dpb.h", | 304 "gpu/media/h264_dpb.h", |
301 "gpu/media/va_surface.h", | 305 "gpu/media/va_surface.h", |
302 "gpu/media/vaapi_h264_decoder.cc", | 306 "gpu/media/vaapi_h264_decoder.cc", |
303 "gpu/media/vaapi_h264_decoder.h", | 307 "gpu/media/vaapi_h264_decoder.h", |
| 308 "gpu/media/vaapi_picture.cc", |
| 309 "gpu/media/vaapi_picture.h", |
304 "gpu/media/vaapi_video_decode_accelerator.cc", | 310 "gpu/media/vaapi_video_decode_accelerator.cc", |
305 "gpu/media/vaapi_video_decode_accelerator.h", | 311 "gpu/media/vaapi_video_decode_accelerator.h", |
306 "gpu/media/vaapi_video_encode_accelerator.cc", | 312 "gpu/media/vaapi_video_encode_accelerator.cc", |
307 "gpu/media/vaapi_video_encode_accelerator.h", | 313 "gpu/media/vaapi_video_encode_accelerator.h", |
308 "gpu/media/vaapi_wrapper.cc", | 314 "gpu/media/vaapi_wrapper.cc", |
309 "gpu/media/vaapi_wrapper.h", | 315 "gpu/media/vaapi_wrapper.h", |
310 ] + get_target_outputs(":libva_generate_stubs") | 316 ] + get_target_outputs(":libva_generate_stubs") |
311 configs += [ | 317 configs += [ |
312 "//third_party/libva:libva_config", | 318 "//third_party/libva:libva_config", |
313 "//third_party/libyuv:libyuv_config", | 319 "//third_party/libyuv:libyuv_config", |
314 ] | 320 ] |
315 deps += [ | 321 deps += [ |
316 ":libva_generate_stubs", | 322 ":libva_generate_stubs", |
317 "//media", | 323 "//media", |
318 "//third_party/libyuv", | 324 "//third_party/libyuv", |
319 ] | 325 ] |
| 326 if (use_x11) { |
| 327 sources += [ |
| 328 "gpu/media/vaapi_tfp_picture.cc", |
| 329 "gpu/media/vaapi_tfp_picture.h", |
| 330 ] |
| 331 } |
320 } | 332 } |
321 } | 333 } |
322 | 334 |
323 if (is_win) { | 335 if (is_win) { |
324 sources += [ | 336 sources += [ |
325 "gpu/media/dxva_video_decode_accelerator.cc", | 337 "gpu/media/dxva_video_decode_accelerator.cc", |
326 "gpu/media/dxva_video_decode_accelerator.h", | 338 "gpu/media/dxva_video_decode_accelerator.h", |
327 ] | 339 ] |
328 include_dirs += [ "//third_party/khronos" ] | 340 include_dirs += [ "//third_party/khronos" ] |
329 deps += [ "//ui/gl" ] | 341 deps += [ "//ui/gl" ] |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 "geolocation_service.mojom", | 380 "geolocation_service.mojom", |
369 "permission_service.mojom", | 381 "permission_service.mojom", |
370 "render_frame_setup.mojom", | 382 "render_frame_setup.mojom", |
371 ] | 383 ] |
372 | 384 |
373 deps = [ | 385 deps = [ |
374 "//content/public/common:mojo_bindings", | 386 "//content/public/common:mojo_bindings", |
375 "//mojo/public/interfaces/application:application", | 387 "//mojo/public/interfaces/application:application", |
376 ] | 388 ] |
377 } | 389 } |
OLD | NEW |