Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: content/common/BUILD.gn

Issue 902773003: Revert of Clean up V4L2 codec-related flags and defines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/common/common.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10 matching lines...) Expand all
21 if (use_x11) { 21 if (use_x11) {
22 sources += [ "gpu/media/va_x11.sigs" ] 22 sources += [ "gpu/media/va_x11.sigs" ]
23 } 23 }
24 if (use_ozone) { 24 if (use_ozone) {
25 sources += [ "gpu/media/va_drm.sigs" ] 25 sources += [ "gpu/media/va_drm.sigs" ]
26 } 26 }
27 stubs_filename_root = "va_stubs" 27 stubs_filename_root = "va_stubs"
28 28
29 outputs = [ 29 outputs = [
30 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", 30 "$target_gen_dir/gpu/media/$stubs_filename_root.cc",
31 "$target_gen_dir/gpu/media/$stubs_filename_root.h",
32 ]
33 args = [
34 "-i",
35 rebase_path("$target_gen_dir/gpu/media", root_build_dir),
36 "-o",
37 rebase_path("$target_gen_dir/gpu/media", root_build_dir),
38 "-t",
39 "posix_stubs",
40 "-e",
41 rebase_path(extra_header, root_build_dir),
42 "-s",
43 stubs_filename_root,
44 "-p",
45 "content/common/gpu/media",
46 ]
47
48 args += rebase_path(sources, root_build_dir)
49 }
50 }
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", 31 "$target_gen_dir/gpu/media/$stubs_filename_root.h",
68 ] 32 ]
69 args = [ 33 args = [
70 "-i", 34 "-i",
71 rebase_path("$target_gen_dir/gpu/media", root_build_dir), 35 rebase_path("$target_gen_dir/gpu/media", root_build_dir),
72 "-o", 36 "-o",
73 rebase_path("$target_gen_dir/gpu/media", root_build_dir), 37 rebase_path("$target_gen_dir/gpu/media", root_build_dir),
74 "-t", 38 "-t",
75 "posix_stubs", 39 "posix_stubs",
76 "-e", 40 "-e",
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 "gpu/media/android_video_decode_accelerator.cc", 273 "gpu/media/android_video_decode_accelerator.cc",
310 "gpu/media/android_video_decode_accelerator.h", 274 "gpu/media/android_video_decode_accelerator.h",
311 ] 275 ]
312 276
313 if (enable_webrtc) { 277 if (enable_webrtc) {
314 deps += [ "//third_party/libyuv" ] 278 deps += [ "//third_party/libyuv" ]
315 } 279 }
316 } 280 }
317 281
318 if (is_chromeos) { 282 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 }
324 if (use_v4l2_codec) { 283 if (use_v4l2_codec) {
325 defines += [ "USE_V4L2_CODEC" ] 284 defines += [ "USE_V4L2_CODEC" ]
285 }
286 if (cpu_arch == "arm" || (use_ozone && use_v4l2_codec)) {
326 sources += [ 287 sources += [
327 "gpu/media/accelerated_video_decoder.h",
328 "gpu/media/generic_v4l2_video_device.cc", 288 "gpu/media/generic_v4l2_video_device.cc",
329 "gpu/media/generic_v4l2_video_device.h", 289 "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",
334 "gpu/media/v4l2_image_processor.cc", 290 "gpu/media/v4l2_image_processor.cc",
335 "gpu/media/v4l2_image_processor.h", 291 "gpu/media/v4l2_image_processor.h",
336 "gpu/media/v4l2_slice_video_decode_accelerator.cc",
337 "gpu/media/v4l2_slice_video_decode_accelerator.h",
338 "gpu/media/v4l2_video_decode_accelerator.cc", 292 "gpu/media/v4l2_video_decode_accelerator.cc",
339 "gpu/media/v4l2_video_decode_accelerator.h", 293 "gpu/media/v4l2_video_decode_accelerator.h",
340 "gpu/media/v4l2_video_device.cc", 294 "gpu/media/v4l2_video_device.cc",
341 "gpu/media/v4l2_video_device.h", 295 "gpu/media/v4l2_video_device.h",
342 "gpu/media/v4l2_video_encode_accelerator.cc", 296 "gpu/media/v4l2_video_encode_accelerator.cc",
343 "gpu/media/v4l2_video_encode_accelerator.h", 297 "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",
348 ] 298 ]
349 libs = [ 299 libs = [
350 "EGL", 300 "EGL",
351 "GLESv2", 301 "GLESv2",
352 ] 302 ]
353 } 303 if (cpu_arch == "arm") {
354 if (cpu_arch == "arm") { 304 sources += [
355 sources += [ 305 "gpu/media/tegra_v4l2_video_device.cc",
356 "gpu/media/tegra_v4l2_video_device.cc", 306 "gpu/media/tegra_v4l2_video_device.h",
357 "gpu/media/tegra_v4l2_video_device.h", 307 ]
358 ] 308 }
359 } 309 }
360 if (cpu_arch != "arm") { 310 if (cpu_arch != "arm") {
361 sources += [ 311 sources += [
362 "gpu/media/va_surface.h", 312 "gpu/media/va_surface.h",
363 "gpu/media/vaapi_h264_decoder.cc", 313 "gpu/media/vaapi_h264_decoder.cc",
364 "gpu/media/vaapi_h264_decoder.h", 314 "gpu/media/vaapi_h264_decoder.h",
365 "gpu/media/vaapi_h264_dpb.cc", 315 "gpu/media/vaapi_h264_dpb.cc",
366 "gpu/media/vaapi_h264_dpb.h", 316 "gpu/media/vaapi_h264_dpb.h",
367 "gpu/media/vaapi_picture.cc", 317 "gpu/media/vaapi_picture.cc",
368 "gpu/media/vaapi_picture.h", 318 "gpu/media/vaapi_picture.h",
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 "geolocation_service.mojom", 409 "geolocation_service.mojom",
460 "permission_service.mojom", 410 "permission_service.mojom",
461 "render_frame_setup.mojom", 411 "render_frame_setup.mojom",
462 ] 412 ]
463 413
464 deps = [ 414 deps = [
465 "//content/public/common:mojo_bindings", 415 "//content/public/common:mojo_bindings",
466 "//third_party/mojo/src/mojo/public/interfaces/application:application", 416 "//third_party/mojo/src/mojo/public/interfaces/application:application",
467 ] 417 ]
468 } 418 }
OLDNEW
« no previous file with comments | « no previous file | content/common/common.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698