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 if (is_mac) { | 9 if (is_mac) { |
10 import("//build/config/mac/mac_sdk.gni") | 10 import("//build/config/mac/mac_sdk.gni") |
11 } | 11 } |
12 | 12 |
13 if (is_chromeos && current_cpu != "arm") { | 13 if (use_cros_fe && current_cpu != "arm") { |
14 action("libva_generate_stubs") { | 14 action("libva_generate_stubs") { |
15 extra_header = "gpu/media/va_stub_header.fragment" | 15 extra_header = "gpu/media/va_stub_header.fragment" |
16 | 16 |
17 script = "../../tools/generate_stubs/generate_stubs.py" | 17 script = "../../tools/generate_stubs/generate_stubs.py" |
18 sources = [ | 18 sources = [ |
19 "gpu/media/va.sigs", | 19 "gpu/media/va.sigs", |
20 ] | 20 ] |
21 inputs = [ | 21 inputs = [ |
22 extra_header, | 22 extra_header, |
23 ] | 23 ] |
(...skipping 21 matching lines...) Expand all Loading... |
45 "-s", | 45 "-s", |
46 stubs_filename_root, | 46 stubs_filename_root, |
47 "-p", | 47 "-p", |
48 "content/common/gpu/media", | 48 "content/common/gpu/media", |
49 ] | 49 ] |
50 | 50 |
51 args += rebase_path(sources, root_build_dir) | 51 args += rebase_path(sources, root_build_dir) |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 if (is_chromeos && use_v4lplugin) { | 55 if (use_cros_fe && use_v4lplugin) { |
56 action("libv4l2_generate_stubs") { | 56 action("libv4l2_generate_stubs") { |
57 extra_header = "gpu/media/v4l2_stub_header.fragment" | 57 extra_header = "gpu/media/v4l2_stub_header.fragment" |
58 | 58 |
59 script = "../../tools/generate_stubs/generate_stubs.py" | 59 script = "../../tools/generate_stubs/generate_stubs.py" |
60 sources = [ | 60 sources = [ |
61 "gpu/media/v4l2.sig", | 61 "gpu/media/v4l2.sig", |
62 ] | 62 ] |
63 inputs = [ | 63 inputs = [ |
64 extra_header, | 64 extra_header, |
65 ] | 65 ] |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 } else { | 303 } else { |
304 sources -= [ "font_list_pango.cc" ] | 304 sources -= [ "font_list_pango.cc" ] |
305 } | 305 } |
306 | 306 |
307 if (use_x11) { | 307 if (use_x11) { |
308 configs += [ | 308 configs += [ |
309 "//build/config/linux:xcomposite", | 309 "//build/config/linux:xcomposite", |
310 "//third_party/khronos:khronos_headers", | 310 "//third_party/khronos:khronos_headers", |
311 ] | 311 ] |
312 | 312 |
313 if (current_cpu != "arm" || !is_chromeos) { | 313 if (current_cpu != "arm" || !use_cros_fe) { |
314 sources += [ "gpu/x_util.h" ] | 314 sources += [ "gpu/x_util.h" ] |
315 } | 315 } |
316 } | 316 } |
317 | 317 |
318 if (enable_plugins) { | 318 if (enable_plugins) { |
319 deps += [ "//ppapi/shared_impl" ] | 319 deps += [ "//ppapi/shared_impl" ] |
320 } else { | 320 } else { |
321 sources -= [ | 321 sources -= [ |
322 "pepper_file_util.cc", | 322 "pepper_file_util.cc", |
323 "pepper_file_util.h", | 323 "pepper_file_util.h", |
(...skipping 13 matching lines...) Expand all Loading... |
337 sources += [ | 337 sources += [ |
338 "gpu/media/android_video_decode_accelerator.cc", | 338 "gpu/media/android_video_decode_accelerator.cc", |
339 "gpu/media/android_video_decode_accelerator.h", | 339 "gpu/media/android_video_decode_accelerator.h", |
340 ] | 340 ] |
341 | 341 |
342 if (enable_webrtc) { | 342 if (enable_webrtc) { |
343 deps += [ "//third_party/libyuv" ] | 343 deps += [ "//third_party/libyuv" ] |
344 } | 344 } |
345 } | 345 } |
346 | 346 |
347 if (is_chromeos) { | 347 if (use_cros_fe) { |
348 sources += [ | 348 sources += [ |
349 "gpu/media/accelerated_video_decoder.h", | 349 "gpu/media/accelerated_video_decoder.h", |
350 "gpu/media/h264_decoder.cc", | 350 "gpu/media/h264_decoder.cc", |
351 "gpu/media/h264_decoder.h", | 351 "gpu/media/h264_decoder.h", |
352 "gpu/media/h264_dpb.cc", | 352 "gpu/media/h264_dpb.cc", |
353 "gpu/media/h264_dpb.h", | 353 "gpu/media/h264_dpb.h", |
354 "gpu/media/vp8_decoder.cc", | 354 "gpu/media/vp8_decoder.cc", |
355 "gpu/media/vp8_decoder.h", | 355 "gpu/media/vp8_decoder.h", |
356 "gpu/media/vp8_picture.cc", | 356 "gpu/media/vp8_picture.cc", |
357 "gpu/media/vp8_picture.h", | 357 "gpu/media/vp8_picture.h", |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 | 506 |
507 import_dirs = [ "//mojo/services" ] | 507 import_dirs = [ "//mojo/services" ] |
508 | 508 |
509 deps = [ | 509 deps = [ |
510 "//content/public/common:mojo_bindings", | 510 "//content/public/common:mojo_bindings", |
511 "//mojo/application/public/interfaces", | 511 "//mojo/application/public/interfaces", |
512 "//skia/public/interfaces", | 512 "//skia/public/interfaces", |
513 "//ui/mojo/geometry:interfaces", | 513 "//ui/mojo/geometry:interfaces", |
514 ] | 514 ] |
515 } | 515 } |
OLD | NEW |