| 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 && current_cpu != "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 ] |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 sources -= [ "font_list_ozone.cc" ] | 275 sources -= [ "font_list_ozone.cc" ] |
| 276 } | 276 } |
| 277 } else { | 277 } else { |
| 278 sources -= [ "font_list_pango.cc" ] | 278 sources -= [ "font_list_pango.cc" ] |
| 279 } | 279 } |
| 280 | 280 |
| 281 if (use_x11) { | 281 if (use_x11) { |
| 282 include_dirs += [ "//third_party/khronos" ] | 282 include_dirs += [ "//third_party/khronos" ] |
| 283 configs += [ "//build/config/linux:xcomposite" ] | 283 configs += [ "//build/config/linux:xcomposite" ] |
| 284 | 284 |
| 285 if (cpu_arch != "arm" || !is_chromeos) { | 285 if (current_cpu != "arm" || !is_chromeos) { |
| 286 sources += [ | 286 sources += [ |
| 287 "gpu/x_util.cc", | 287 "gpu/x_util.cc", |
| 288 "gpu/x_util.h", | 288 "gpu/x_util.h", |
| 289 ] | 289 ] |
| 290 } | 290 } |
| 291 } | 291 } |
| 292 | 292 |
| 293 if (enable_plugins) { | 293 if (enable_plugins) { |
| 294 deps += [ "//ppapi/shared_impl" ] | 294 deps += [ "//ppapi/shared_impl" ] |
| 295 } else { | 295 } else { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 "gpu/media/vp8_decoder.cc", | 348 "gpu/media/vp8_decoder.cc", |
| 349 "gpu/media/vp8_decoder.h", | 349 "gpu/media/vp8_decoder.h", |
| 350 "gpu/media/vp8_picture.cc", | 350 "gpu/media/vp8_picture.cc", |
| 351 "gpu/media/vp8_picture.h", | 351 "gpu/media/vp8_picture.h", |
| 352 ] | 352 ] |
| 353 libs = [ | 353 libs = [ |
| 354 "EGL", | 354 "EGL", |
| 355 "GLESv2", | 355 "GLESv2", |
| 356 ] | 356 ] |
| 357 } | 357 } |
| 358 if (cpu_arch == "arm") { | 358 if (current_cpu == "arm") { |
| 359 sources += [ | 359 sources += [ |
| 360 "gpu/media/tegra_v4l2_video_device.cc", | 360 "gpu/media/tegra_v4l2_video_device.cc", |
| 361 "gpu/media/tegra_v4l2_video_device.h", | 361 "gpu/media/tegra_v4l2_video_device.h", |
| 362 ] | 362 ] |
| 363 } | 363 } |
| 364 if (cpu_arch != "arm") { | 364 if (current_cpu != "arm") { |
| 365 sources += [ | 365 sources += [ |
| 366 "gpu/media/va_surface.h", | 366 "gpu/media/va_surface.h", |
| 367 "gpu/media/vaapi_h264_decoder.cc", | 367 "gpu/media/vaapi_h264_decoder.cc", |
| 368 "gpu/media/vaapi_h264_decoder.h", | 368 "gpu/media/vaapi_h264_decoder.h", |
| 369 "gpu/media/vaapi_h264_dpb.cc", | 369 "gpu/media/vaapi_h264_dpb.cc", |
| 370 "gpu/media/vaapi_h264_dpb.h", | 370 "gpu/media/vaapi_h264_dpb.h", |
| 371 "gpu/media/vaapi_picture.cc", | 371 "gpu/media/vaapi_picture.cc", |
| 372 "gpu/media/vaapi_picture.h", | 372 "gpu/media/vaapi_picture.h", |
| 373 "gpu/media/vaapi_video_decode_accelerator.cc", | 373 "gpu/media/vaapi_video_decode_accelerator.cc", |
| 374 "gpu/media/vaapi_video_decode_accelerator.h", | 374 "gpu/media/vaapi_video_decode_accelerator.h", |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 ] | 450 ] |
| 451 } | 451 } |
| 452 if (is_android) { | 452 if (is_android) { |
| 453 sources -= [ | 453 sources -= [ |
| 454 "sandbox_linux/android/sandbox_bpf_base_policy_android.cc", | 454 "sandbox_linux/android/sandbox_bpf_base_policy_android.cc", |
| 455 "sandbox_linux/android/sandbox_bpf_base_policy_android.h", | 455 "sandbox_linux/android/sandbox_bpf_base_policy_android.h", |
| 456 ] | 456 ] |
| 457 } | 457 } |
| 458 } | 458 } |
| 459 | 459 |
| 460 if (is_win && cpu_arch == "x64") { | 460 if (is_win && current_cpu == "x64") { |
| 461 # TODO(jschuh): Remove this after crbug.com/173851 gets fixed. | 461 # TODO(jschuh): Remove this after crbug.com/173851 gets fixed. |
| 462 cflags = [ "/bigobj" ] | 462 cflags = [ "/bigobj" ] |
| 463 } | 463 } |
| 464 } | 464 } |
| 465 | 465 |
| 466 mojom("mojo_bindings") { | 466 mojom("mojo_bindings") { |
| 467 sources = [ | 467 sources = [ |
| 468 "application_setup.mojom", | 468 "application_setup.mojom", |
| 469 "geolocation_service.mojom", | 469 "geolocation_service.mojom", |
| 470 "permission_service.mojom", | 470 "permission_service.mojom", |
| 471 "presentation/presentation_service.mojom", | 471 "presentation/presentation_service.mojom", |
| 472 "render_frame_setup.mojom", | 472 "render_frame_setup.mojom", |
| 473 ] | 473 ] |
| 474 | 474 |
| 475 deps = [ | 475 deps = [ |
| 476 "//content/public/common:mojo_bindings", | 476 "//content/public/common:mojo_bindings", |
| 477 "//third_party/mojo/src/mojo/public/interfaces/application:application", | 477 "//third_party/mojo/src/mojo/public/interfaces/application:application", |
| 478 ] | 478 ] |
| 479 } | 479 } |
| OLD | NEW |