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 && 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 } | 326 } |
286 if (cpu_arch == "arm" || (use_ozone && use_v4l2_codec)) { | 327 if (cpu_arch == "arm" || (use_ozone && use_v4l2_codec)) { |
287 sources += [ | 328 sources += [ |
288 "gpu/media/generic_v4l2_video_device.cc", | 329 "gpu/media/generic_v4l2_video_device.cc", |
289 "gpu/media/generic_v4l2_video_device.h", | 330 "gpu/media/generic_v4l2_video_device.h", |
290 "gpu/media/v4l2_image_processor.cc", | 331 "gpu/media/v4l2_image_processor.cc", |
291 "gpu/media/v4l2_image_processor.h", | 332 "gpu/media/v4l2_image_processor.h", |
292 "gpu/media/v4l2_video_decode_accelerator.cc", | 333 "gpu/media/v4l2_video_decode_accelerator.cc", |
293 "gpu/media/v4l2_video_decode_accelerator.h", | 334 "gpu/media/v4l2_video_decode_accelerator.h", |
294 "gpu/media/v4l2_video_device.cc", | 335 "gpu/media/v4l2_video_device.cc", |
295 "gpu/media/v4l2_video_device.h", | 336 "gpu/media/v4l2_video_device.h", |
296 "gpu/media/v4l2_video_encode_accelerator.cc", | 337 "gpu/media/v4l2_video_encode_accelerator.cc", |
297 "gpu/media/v4l2_video_encode_accelerator.h", | 338 "gpu/media/v4l2_video_encode_accelerator.h", |
339 "gpu/media/accelerated_video_decoder.h", | |
Pawel Osciak
2015/01/22 08:30:01
Please keep lexicographical order.
henryhsu
2015/01/22 09:09:08
Done.
| |
340 "gpu/media/h264_decoder.cc", | |
341 "gpu/media/h264_decoder.h", | |
342 "gpu/media/h264_dpb.cc", | |
343 "gpu/media/h264_dpb.h", | |
344 "gpu/media/v4l2_slice_video_decode_accelerator.cc", | |
345 "gpu/media/v4l2_slice_video_decode_accelerator.h", | |
346 "gpu/media/vp8_decoder.cc", | |
347 "gpu/media/vp8_decoder.h", | |
348 "gpu/media/vp8_picture.cc", | |
349 "gpu/media/vp8_picture.h", | |
298 ] | 350 ] |
299 libs = [ | 351 libs = [ |
300 "EGL", | 352 "EGL", |
301 "GLESv2", | 353 "GLESv2", |
302 ] | 354 ] |
303 if (cpu_arch == "arm") { | 355 if (cpu_arch == "arm") { |
304 sources += [ | 356 sources += [ |
305 "gpu/media/tegra_v4l2_video_device.cc", | 357 "gpu/media/tegra_v4l2_video_device.cc", |
306 "gpu/media/tegra_v4l2_video_device.h", | 358 "gpu/media/tegra_v4l2_video_device.h", |
307 ] | 359 ] |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
409 "geolocation_service.mojom", | 461 "geolocation_service.mojom", |
410 "permission_service.mojom", | 462 "permission_service.mojom", |
411 "render_frame_setup.mojom", | 463 "render_frame_setup.mojom", |
412 ] | 464 ] |
413 | 465 |
414 deps = [ | 466 deps = [ |
415 "//content/public/common:mojo_bindings", | 467 "//content/public/common:mojo_bindings", |
416 "//mojo/public/interfaces/application:application", | 468 "//mojo/public/interfaces/application:application", |
417 ] | 469 ] |
418 } | 470 } |
OLD | NEW |