| 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("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| 9 | 9 |
| 10 if (is_chromeos && cpu_arch != "arm") { | 10 if (is_chromeos && cpu_arch != "arm") { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 "-s", | 42 "-s", |
| 43 stubs_filename_root, | 43 stubs_filename_root, |
| 44 "-p", | 44 "-p", |
| 45 "content/common/gpu/media", | 45 "content/common/gpu/media", |
| 46 ] | 46 ] |
| 47 | 47 |
| 48 args += rebase_path(sources, root_build_dir) | 48 args += rebase_path(sources, root_build_dir) |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 if (is_chromeos && use_v4lplugin) { |
| 53 action("libv4l2_generate_stubs") { |
| 54 extra_header = "gpu/media/v4l2_stub_header.fragment" |
| 55 |
| 56 script = "../../tools/generate_stubs/generate_stubs.py" |
| 57 sources = [ |
| 58 "gpu/media/v4l2.sig", |
| 59 ] |
| 60 inputs = [ |
| 61 extra_header, |
| 62 ] |
| 63 stubs_filename_root = "v4l2_stubs" |
| 64 |
| 65 outputs = [ |
| 66 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
| 67 "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
| 68 ] |
| 69 args = [ |
| 70 "-i", |
| 71 rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 72 "-o", |
| 73 rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 74 "-t", |
| 75 "posix_stubs", |
| 76 "-e", |
| 77 rebase_path(extra_header, root_build_dir), |
| 78 "-s", |
| 79 stubs_filename_root, |
| 80 "-p", |
| 81 "content/common/gpu/media", |
| 82 ] |
| 83 |
| 84 args += rebase_path(sources, root_build_dir) |
| 85 } |
| 86 } |
| 87 |
| 52 if (is_mac) { | 88 if (is_mac) { |
| 53 action("libvt_generate_stubs") { | 89 action("libvt_generate_stubs") { |
| 54 extra_header = "gpu/media/vt_stubs_header.fragment" | 90 extra_header = "gpu/media/vt_stubs_header.fragment" |
| 55 | 91 |
| 56 script = "../../tools/generate_stubs/generate_stubs.py" | 92 script = "../../tools/generate_stubs/generate_stubs.py" |
| 57 sources = [ | 93 sources = [ |
| 58 "gpu/media/vt.sig", | 94 "gpu/media/vt.sig", |
| 59 ] | 95 ] |
| 60 inputs = [ | 96 inputs = [ |
| 61 extra_header, | 97 extra_header, |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 "gpu/media/android_video_decode_accelerator.cc", | 310 "gpu/media/android_video_decode_accelerator.cc", |
| 275 "gpu/media/android_video_decode_accelerator.h", | 311 "gpu/media/android_video_decode_accelerator.h", |
| 276 ] | 312 ] |
| 277 | 313 |
| 278 if (enable_webrtc) { | 314 if (enable_webrtc) { |
| 279 deps += [ "//third_party/libyuv" ] | 315 deps += [ "//third_party/libyuv" ] |
| 280 } | 316 } |
| 281 } | 317 } |
| 282 | 318 |
| 283 if (is_chromeos) { | 319 if (is_chromeos) { |
| 320 if (use_v4lplugin) { |
| 321 defines += [ "USE_LIBV4L2" ] |
| 322 sources += get_target_outputs(":libv4l2_generate_stubs") |
| 323 deps += [ ":libv4l2_generate_stubs" ] |
| 324 } |
| 284 if (use_v4l2_codec) { | 325 if (use_v4l2_codec) { |
| 285 defines += [ "USE_V4L2_CODEC" ] | 326 defines += [ "USE_V4L2_CODEC" ] |
| 286 } | |
| 287 if (cpu_arch == "arm" || (use_ozone && use_v4l2_codec)) { | |
| 288 sources += [ | 327 sources += [ |
| 328 "gpu/media/accelerated_video_decoder.h", |
| 289 "gpu/media/generic_v4l2_video_device.cc", | 329 "gpu/media/generic_v4l2_video_device.cc", |
| 290 "gpu/media/generic_v4l2_video_device.h", | 330 "gpu/media/generic_v4l2_video_device.h", |
| 331 "gpu/media/h264_decoder.cc", |
| 332 "gpu/media/h264_decoder.h", |
| 333 "gpu/media/h264_dpb.cc", |
| 334 "gpu/media/h264_dpb.h", |
| 291 "gpu/media/v4l2_image_processor.cc", | 335 "gpu/media/v4l2_image_processor.cc", |
| 292 "gpu/media/v4l2_image_processor.h", | 336 "gpu/media/v4l2_image_processor.h", |
| 337 "gpu/media/v4l2_slice_video_decode_accelerator.cc", |
| 338 "gpu/media/v4l2_slice_video_decode_accelerator.h", |
| 293 "gpu/media/v4l2_video_decode_accelerator.cc", | 339 "gpu/media/v4l2_video_decode_accelerator.cc", |
| 294 "gpu/media/v4l2_video_decode_accelerator.h", | 340 "gpu/media/v4l2_video_decode_accelerator.h", |
| 295 "gpu/media/v4l2_video_device.cc", | 341 "gpu/media/v4l2_video_device.cc", |
| 296 "gpu/media/v4l2_video_device.h", | 342 "gpu/media/v4l2_video_device.h", |
| 297 "gpu/media/v4l2_video_encode_accelerator.cc", | 343 "gpu/media/v4l2_video_encode_accelerator.cc", |
| 298 "gpu/media/v4l2_video_encode_accelerator.h", | 344 "gpu/media/v4l2_video_encode_accelerator.h", |
| 345 "gpu/media/vp8_decoder.cc", |
| 346 "gpu/media/vp8_decoder.h", |
| 347 "gpu/media/vp8_picture.cc", |
| 348 "gpu/media/vp8_picture.h", |
| 299 ] | 349 ] |
| 300 libs = [ | 350 libs = [ |
| 301 "EGL", | 351 "EGL", |
| 302 "GLESv2", | 352 "GLESv2", |
| 303 ] | 353 ] |
| 304 if (cpu_arch == "arm") { | 354 } |
| 305 sources += [ | 355 if (cpu_arch == "arm") { |
| 306 "gpu/media/tegra_v4l2_video_device.cc", | 356 sources += [ |
| 307 "gpu/media/tegra_v4l2_video_device.h", | 357 "gpu/media/tegra_v4l2_video_device.cc", |
| 308 ] | 358 "gpu/media/tegra_v4l2_video_device.h", |
| 309 } | 359 ] |
| 310 } | 360 } |
| 311 if (cpu_arch != "arm") { | 361 if (cpu_arch != "arm") { |
| 312 sources += [ | 362 sources += [ |
| 313 "gpu/media/va_surface.h", | 363 "gpu/media/va_surface.h", |
| 314 "gpu/media/vaapi_h264_decoder.cc", | 364 "gpu/media/vaapi_h264_decoder.cc", |
| 315 "gpu/media/vaapi_h264_decoder.h", | 365 "gpu/media/vaapi_h264_decoder.h", |
| 316 "gpu/media/vaapi_h264_dpb.cc", | 366 "gpu/media/vaapi_h264_dpb.cc", |
| 317 "gpu/media/vaapi_h264_dpb.h", | 367 "gpu/media/vaapi_h264_dpb.h", |
| 318 "gpu/media/vaapi_picture.cc", | 368 "gpu/media/vaapi_picture.cc", |
| 319 "gpu/media/vaapi_picture.h", | 369 "gpu/media/vaapi_picture.h", |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 "permission_service.mojom", | 462 "permission_service.mojom", |
| 413 "presentation/presentation_service.mojom", | 463 "presentation/presentation_service.mojom", |
| 414 "render_frame_setup.mojom", | 464 "render_frame_setup.mojom", |
| 415 ] | 465 ] |
| 416 | 466 |
| 417 deps = [ | 467 deps = [ |
| 418 "//content/public/common:mojo_bindings", | 468 "//content/public/common:mojo_bindings", |
| 419 "//third_party/mojo/src/mojo/public/interfaces/application:application", | 469 "//third_party/mojo/src/mojo/public/interfaces/application:application", |
| 420 ] | 470 ] |
| 421 } | 471 } |
| OLD | NEW |