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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 "gpu/media/android_video_decode_accelerator.cc", | 309 "gpu/media/android_video_decode_accelerator.cc", |
274 "gpu/media/android_video_decode_accelerator.h", | 310 "gpu/media/android_video_decode_accelerator.h", |
275 ] | 311 ] |
276 | 312 |
277 if (enable_webrtc) { | 313 if (enable_webrtc) { |
278 deps += [ "//third_party/libyuv" ] | 314 deps += [ "//third_party/libyuv" ] |
279 } | 315 } |
280 } | 316 } |
281 | 317 |
282 if (is_chromeos) { | 318 if (is_chromeos) { |
| 319 if (use_v4lplugin) { |
| 320 defines += [ "USE_LIBV4L2" ] |
| 321 sources += get_target_outputs(":libv4l2_generate_stubs") |
| 322 deps += [ ":libv4l2_generate_stubs" ] |
| 323 } |
283 if (use_v4l2_codec) { | 324 if (use_v4l2_codec) { |
284 defines += [ "USE_V4L2_CODEC" ] | 325 defines += [ "USE_V4L2_CODEC" ] |
285 } | |
286 if (cpu_arch == "arm" || (use_ozone && use_v4l2_codec)) { | |
287 sources += [ | 326 sources += [ |
| 327 "gpu/media/accelerated_video_decoder.h", |
288 "gpu/media/generic_v4l2_video_device.cc", | 328 "gpu/media/generic_v4l2_video_device.cc", |
289 "gpu/media/generic_v4l2_video_device.h", | 329 "gpu/media/generic_v4l2_video_device.h", |
| 330 "gpu/media/h264_decoder.cc", |
| 331 "gpu/media/h264_decoder.h", |
| 332 "gpu/media/h264_dpb.cc", |
| 333 "gpu/media/h264_dpb.h", |
290 "gpu/media/v4l2_image_processor.cc", | 334 "gpu/media/v4l2_image_processor.cc", |
291 "gpu/media/v4l2_image_processor.h", | 335 "gpu/media/v4l2_image_processor.h", |
| 336 "gpu/media/v4l2_slice_video_decode_accelerator.cc", |
| 337 "gpu/media/v4l2_slice_video_decode_accelerator.h", |
292 "gpu/media/v4l2_video_decode_accelerator.cc", | 338 "gpu/media/v4l2_video_decode_accelerator.cc", |
293 "gpu/media/v4l2_video_decode_accelerator.h", | 339 "gpu/media/v4l2_video_decode_accelerator.h", |
294 "gpu/media/v4l2_video_device.cc", | 340 "gpu/media/v4l2_video_device.cc", |
295 "gpu/media/v4l2_video_device.h", | 341 "gpu/media/v4l2_video_device.h", |
296 "gpu/media/v4l2_video_encode_accelerator.cc", | 342 "gpu/media/v4l2_video_encode_accelerator.cc", |
297 "gpu/media/v4l2_video_encode_accelerator.h", | 343 "gpu/media/v4l2_video_encode_accelerator.h", |
| 344 "gpu/media/vp8_decoder.cc", |
| 345 "gpu/media/vp8_decoder.h", |
| 346 "gpu/media/vp8_picture.cc", |
| 347 "gpu/media/vp8_picture.h", |
298 ] | 348 ] |
299 libs = [ | 349 libs = [ |
300 "EGL", | 350 "EGL", |
301 "GLESv2", | 351 "GLESv2", |
302 ] | 352 ] |
303 if (cpu_arch == "arm") { | 353 } |
304 sources += [ | 354 if (cpu_arch == "arm") { |
305 "gpu/media/tegra_v4l2_video_device.cc", | 355 sources += [ |
306 "gpu/media/tegra_v4l2_video_device.h", | 356 "gpu/media/tegra_v4l2_video_device.cc", |
307 ] | 357 "gpu/media/tegra_v4l2_video_device.h", |
308 } | 358 ] |
309 } | 359 } |
310 if (cpu_arch != "arm") { | 360 if (cpu_arch != "arm") { |
311 sources += [ | 361 sources += [ |
312 "gpu/media/va_surface.h", | 362 "gpu/media/va_surface.h", |
313 "gpu/media/vaapi_h264_decoder.cc", | 363 "gpu/media/vaapi_h264_decoder.cc", |
314 "gpu/media/vaapi_h264_decoder.h", | 364 "gpu/media/vaapi_h264_decoder.h", |
315 "gpu/media/vaapi_h264_dpb.cc", | 365 "gpu/media/vaapi_h264_dpb.cc", |
316 "gpu/media/vaapi_h264_dpb.h", | 366 "gpu/media/vaapi_h264_dpb.h", |
317 "gpu/media/vaapi_picture.cc", | 367 "gpu/media/vaapi_picture.cc", |
318 "gpu/media/vaapi_picture.h", | 368 "gpu/media/vaapi_picture.h", |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 "geolocation_service.mojom", | 459 "geolocation_service.mojom", |
410 "permission_service.mojom", | 460 "permission_service.mojom", |
411 "render_frame_setup.mojom", | 461 "render_frame_setup.mojom", |
412 ] | 462 ] |
413 | 463 |
414 deps = [ | 464 deps = [ |
415 "//content/public/common:mojo_bindings", | 465 "//content/public/common:mojo_bindings", |
416 "//third_party/mojo/src/mojo/public/interfaces/application:application", | 466 "//third_party/mojo/src/mojo/public/interfaces/application:application", |
417 ] | 467 ] |
418 } | 468 } |
OLD | NEW |