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") { | 10 if (is_chromeos && 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 = [ "gpu/media/va.sigs" ] | 15 sources = [ "gpu/media/va.sigs" ] |
16 if (use_x11) { | |
17 sources += [ "content/common/gpu/media/va_x11.sigs" ] | |
18 } else { | |
Pawel Osciak
2014/12/08 10:55:15
Do we need use_ozone here?
llandwerlin-old
2014/12/08 16:42:06
Done.
| |
19 sources += [ "content/common/gpu/media/va_drm.sigs" ] | |
20 } | |
16 source_prereqs = [ extra_header ] | 21 source_prereqs = [ extra_header ] |
17 stubs_filename_root = "va_stubs" | 22 stubs_filename_root = "va_stubs" |
18 | 23 |
19 outputs = [ | 24 outputs = [ |
20 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", | 25 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
21 "$target_gen_dir/gpu/media/$stubs_filename_root.h", | 26 "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
22 ] | 27 ] |
23 args = [ | 28 args = [ |
24 "-i", rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 29 "-i", rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
25 "-o", rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 30 "-o", rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
221 sources += [ | 226 sources += [ |
222 "gpu/media/android_video_decode_accelerator.cc", | 227 "gpu/media/android_video_decode_accelerator.cc", |
223 "gpu/media/android_video_decode_accelerator.h", | 228 "gpu/media/android_video_decode_accelerator.h", |
224 ] | 229 ] |
225 | 230 |
226 if (enable_webrtc) { | 231 if (enable_webrtc) { |
227 deps += [ "//third_party/libyuv" ] | 232 deps += [ "//third_party/libyuv" ] |
228 } | 233 } |
229 } | 234 } |
230 | 235 |
231 if (is_chromeos && use_x11) { | 236 if (is_chromeos) { |
232 if (cpu_arch == "arm") { | 237 if (cpu_arch == "arm" && use_x11) { |
233 sources += [ | 238 sources += [ |
234 "gpu/media/exynos_v4l2_video_device.cc", | 239 "gpu/media/exynos_v4l2_video_device.cc", |
235 "gpu/media/exynos_v4l2_video_device.h", | 240 "gpu/media/exynos_v4l2_video_device.h", |
236 "gpu/media/tegra_v4l2_video_device.cc", | 241 "gpu/media/tegra_v4l2_video_device.cc", |
237 "gpu/media/tegra_v4l2_video_device.h", | 242 "gpu/media/tegra_v4l2_video_device.h", |
238 "gpu/media/v4l2_image_processor.cc", | 243 "gpu/media/v4l2_image_processor.cc", |
239 "gpu/media/v4l2_image_processor.h", | 244 "gpu/media/v4l2_image_processor.h", |
240 "gpu/media/v4l2_video_decode_accelerator.cc", | 245 "gpu/media/v4l2_video_decode_accelerator.cc", |
241 "gpu/media/v4l2_video_decode_accelerator.h", | 246 "gpu/media/v4l2_video_decode_accelerator.h", |
242 "gpu/media/v4l2_video_device.cc", | 247 "gpu/media/v4l2_video_device.cc", |
243 "gpu/media/v4l2_video_device.h", | 248 "gpu/media/v4l2_video_device.h", |
244 "gpu/media/v4l2_video_encode_accelerator.cc", | 249 "gpu/media/v4l2_video_encode_accelerator.cc", |
245 "gpu/media/v4l2_video_encode_accelerator.h", | 250 "gpu/media/v4l2_video_encode_accelerator.h", |
246 ] | 251 ] |
247 libs = [ "EGL", "GLESv2" ] | 252 libs = [ "EGL", "GLESv2" ] |
248 } else { # !arm | 253 } else { # !arm |
249 sources += [ | 254 sources += [ |
250 "gpu/media/h264_dpb.cc", | 255 "gpu/media/h264_dpb.cc", |
251 "gpu/media/h264_dpb.h", | 256 "gpu/media/h264_dpb.h", |
252 "gpu/media/va_surface.h", | 257 "gpu/media/va_surface.h", |
253 "gpu/media/vaapi_h264_decoder.cc", | 258 "gpu/media/vaapi_h264_decoder.cc", |
254 "gpu/media/vaapi_h264_decoder.h", | 259 "gpu/media/vaapi_h264_decoder.h", |
260 "gpu/media/vaapi_picture.h", | |
255 "gpu/media/vaapi_video_decode_accelerator.cc", | 261 "gpu/media/vaapi_video_decode_accelerator.cc", |
256 "gpu/media/vaapi_video_decode_accelerator.h", | 262 "gpu/media/vaapi_video_decode_accelerator.h", |
257 "gpu/media/vaapi_video_encode_accelerator.cc", | 263 "gpu/media/vaapi_video_encode_accelerator.cc", |
258 "gpu/media/vaapi_video_encode_accelerator.h", | 264 "gpu/media/vaapi_video_encode_accelerator.h", |
259 "gpu/media/vaapi_wrapper.cc", | 265 "gpu/media/vaapi_wrapper.cc", |
260 "gpu/media/vaapi_wrapper.h", | 266 "gpu/media/vaapi_wrapper.h", |
261 ] + get_target_outputs(":libva_generate_stubs") | 267 ] + get_target_outputs(":libva_generate_stubs") |
262 configs += [ | 268 configs += [ |
263 "//third_party/libva:libva_config", | 269 "//third_party/libva:libva_config", |
264 "//third_party/libyuv:libyuv_config", | 270 "//third_party/libyuv:libyuv_config", |
265 ] | 271 ] |
266 deps += [ | 272 deps += [ |
267 ":libva_generate_stubs", | 273 ":libva_generate_stubs", |
268 "//media", | 274 "//media", |
269 "//third_party/libyuv", | 275 "//third_party/libyuv", |
270 ] | 276 ] |
277 if (use_x11) { | |
278 sources += [ | |
279 "gpu/media/vaapi_tfp_picture.cc", | |
280 "gpu/media/vaapi_tfp_picture.h", | |
281 ] | |
282 } else { | |
283 sources += [ | |
284 "gpu/media/vaapi_drm_picture.cc", | |
285 "gpu/media/vaapi_drm_picture.h", | |
286 ] | |
287 } | |
271 } | 288 } |
272 } | 289 } |
273 | 290 |
274 if (is_win) { | 291 if (is_win) { |
275 sources += [ | 292 sources += [ |
276 "gpu/media/dxva_video_decode_accelerator.cc", | 293 "gpu/media/dxva_video_decode_accelerator.cc", |
277 "gpu/media/dxva_video_decode_accelerator.h", | 294 "gpu/media/dxva_video_decode_accelerator.h", |
278 ] | 295 ] |
279 include_dirs += [ "//third_party/khronos" ] | 296 include_dirs += [ "//third_party/khronos" ] |
280 deps += [ | 297 deps += [ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 | 335 |
319 mojom("mojo_bindings") { | 336 mojom("mojo_bindings") { |
320 sources = [ | 337 sources = [ |
321 "render_frame_setup.mojom", | 338 "render_frame_setup.mojom", |
322 ] | 339 ] |
323 | 340 |
324 deps = [ | 341 deps = [ |
325 "//mojo/public/interfaces/application:application", | 342 "//mojo/public/interfaces/application:application", |
326 ] | 343 ] |
327 } | 344 } |
OLD | NEW |