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