OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//media/gpu/args.gni") | 7 import("//media/gpu/args.gni") |
8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 args += rebase_path(sources, root_build_dir) | 125 args += rebase_path(sources, root_build_dir) |
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 config("gpu_config") { | 129 config("gpu_config") { |
130 defines = [] | 130 defines = [] |
131 if (is_chromeos && use_v4lplugin) { | 131 if (is_chromeos && use_v4lplugin) { |
132 defines += [ "USE_LIBV4L2" ] | 132 defines += [ "USE_LIBV4L2" ] |
133 } | 133 } |
| 134 if (is_chromeos && use_v4l2_codec) { |
| 135 defines += [ "USE_V4L2_CODEC" ] |
| 136 } |
134 } | 137 } |
135 | 138 |
136 component("gpu") { | 139 component("gpu") { |
137 output_name = "media_gpu" | 140 output_name = "media_gpu" |
138 | 141 |
139 # Only local test code, GPU-related IPC code in the media layer, and | 142 # Only local test code, GPU-related IPC code in the media layer, and |
140 # media-related content code should access //media/gpu. | 143 # media-related content code should access //media/gpu. |
141 visibility = [ | 144 visibility = [ |
142 "//content/gpu:*", | 145 "//content/gpu:*", |
143 "//content/public/gpu:*", | 146 "//content/public/gpu:*", |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 "vp9_decoder.cc", | 253 "vp9_decoder.cc", |
251 "vp9_decoder.h", | 254 "vp9_decoder.h", |
252 "vp9_picture.cc", | 255 "vp9_picture.cc", |
253 "vp9_picture.h", | 256 "vp9_picture.h", |
254 ] | 257 ] |
255 if (use_v4lplugin) { | 258 if (use_v4lplugin) { |
256 sources += get_target_outputs(":libv4l2_generate_stubs") | 259 sources += get_target_outputs(":libv4l2_generate_stubs") |
257 deps += [ ":libv4l2_generate_stubs" ] | 260 deps += [ ":libv4l2_generate_stubs" ] |
258 } | 261 } |
259 if (use_v4l2_codec) { | 262 if (use_v4l2_codec) { |
260 defines += [ "USE_V4L2_CODEC" ] | |
261 deps += [ "//third_party/libyuv" ] | 263 deps += [ "//third_party/libyuv" ] |
262 sources += [ | 264 sources += [ |
263 "generic_v4l2_device.cc", | 265 "generic_v4l2_device.cc", |
264 "generic_v4l2_device.h", | 266 "generic_v4l2_device.h", |
265 "v4l2_device.cc", | 267 "v4l2_device.cc", |
266 "v4l2_device.h", | 268 "v4l2_device.h", |
267 "v4l2_image_processor.cc", | 269 "v4l2_image_processor.cc", |
268 "v4l2_image_processor.h", | 270 "v4l2_image_processor.h", |
269 "v4l2_jpeg_decode_accelerator.cc", | 271 "v4l2_jpeg_decode_accelerator.cc", |
270 "v4l2_jpeg_decode_accelerator.h", | 272 "v4l2_jpeg_decode_accelerator.h", |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 "video_encode_accelerator_unittest.cc", | 456 "video_encode_accelerator_unittest.cc", |
455 ] | 457 ] |
456 if (use_x11) { | 458 if (use_x11) { |
457 deps += [ "//ui/gfx/x" ] | 459 deps += [ "//ui/gfx/x" ] |
458 } | 460 } |
459 if (use_ozone) { | 461 if (use_ozone) { |
460 deps += [ "//ui/ozone" ] | 462 deps += [ "//ui/ozone" ] |
461 } | 463 } |
462 } | 464 } |
463 } | 465 } |
OLD | NEW |