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 && use_x11 && cpu_arch != "arm") { |
| 11 action("libva_generate_stubs") { |
| 12 extra_header = "gpu/media/va_stub_header.fragment" |
| 13 |
| 14 script = "../../tools/generate_stubs/generate_stubs.py" |
| 15 sources = [ "gpu/media/va.sigs" ] |
| 16 source_prereqs = [ extra_header ] |
| 17 stubs_filename_root = "va_stubs" |
| 18 |
| 19 outputs = [ |
| 20 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
| 21 "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
| 22 ] |
| 23 args = [ |
| 24 "-i", rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 25 "-o", rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 26 "-t", "posix_stubs", |
| 27 "-e", rebase_path(extra_header, root_build_dir), |
| 28 "-s", stubs_filename_root, |
| 29 "-p", "content/common/gpu/media", |
| 30 ] |
| 31 |
| 32 args += rebase_path(sources, root_build_dir) |
| 33 } |
| 34 } |
| 35 |
10 source_set("common") { | 36 source_set("common") { |
11 # Only the public target should depend on this. All other targets (even | 37 # Only the public target should depend on this. All other targets (even |
12 # internal content ones) should depend on the public one. | 38 # internal content ones) should depend on the public one. |
13 visibility = [ "//content/public/common:common_sources" ] | 39 visibility = [ "//content/public/common:common_sources" ] |
14 | 40 |
15 sources = rebase_path(content_common_gypi_values.private_common_sources, | 41 sources = rebase_path(content_common_gypi_values.private_common_sources, |
16 ".", "//content") | 42 ".", "//content") |
17 | 43 |
18 configs += [ | 44 configs += [ |
19 "//content:content_implementation", | 45 "//content:content_implementation", |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 "gpu/media/h264_dpb.cc", | 247 "gpu/media/h264_dpb.cc", |
222 "gpu/media/h264_dpb.h", | 248 "gpu/media/h264_dpb.h", |
223 "gpu/media/va_surface.h", | 249 "gpu/media/va_surface.h", |
224 "gpu/media/vaapi_h264_decoder.cc", | 250 "gpu/media/vaapi_h264_decoder.cc", |
225 "gpu/media/vaapi_h264_decoder.h", | 251 "gpu/media/vaapi_h264_decoder.h", |
226 "gpu/media/vaapi_video_decode_accelerator.cc", | 252 "gpu/media/vaapi_video_decode_accelerator.cc", |
227 "gpu/media/vaapi_video_decode_accelerator.h", | 253 "gpu/media/vaapi_video_decode_accelerator.h", |
228 "gpu/media/vaapi_wrapper.cc", | 254 "gpu/media/vaapi_wrapper.cc", |
229 "gpu/media/vaapi_wrapper.h", | 255 "gpu/media/vaapi_wrapper.h", |
230 ] | 256 ] |
231 assert(false, "Implement generate_stubs for libva") | 257 configs += [ |
| 258 "//third_party/libva:libva_config", |
| 259 "//third_party/libyuv:libyuv_config", |
| 260 ] |
| 261 deps += [ |
| 262 ":libva_generate_stubs", |
| 263 "//media", |
| 264 "//third_party/libyuv", |
| 265 ] |
232 } | 266 } |
233 } | 267 } |
234 | 268 |
235 if (is_win) { | 269 if (is_win) { |
236 sources += [ | 270 sources += [ |
237 "gpu/media/dxva_video_decode_accelerator.cc", | 271 "gpu/media/dxva_video_decode_accelerator.cc", |
238 "gpu/media/dxva_video_decode_accelerator.h", | 272 "gpu/media/dxva_video_decode_accelerator.h", |
239 ] | 273 ] |
240 include_dirs += [ "//third_party/khronos" ] | 274 include_dirs += [ "//third_party/khronos" ] |
241 deps += [ | 275 deps += [ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 313 |
280 mojom("mojo_bindings") { | 314 mojom("mojo_bindings") { |
281 sources = [ | 315 sources = [ |
282 "render_frame_setup.mojom", | 316 "render_frame_setup.mojom", |
283 ] | 317 ] |
284 | 318 |
285 deps = [ | 319 deps = [ |
286 "//mojo/public/interfaces/application:application", | 320 "//mojo/public/interfaces/application:application", |
287 ] | 321 ] |
288 } | 322 } |
OLD | NEW |