| # Copyright 2019 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//media/gpu/args.gni") |
| |
| assert(is_chromeos) |
| |
| source_set("chromeos") { |
| defines = [ "MEDIA_GPU_IMPLEMENTATION" ] |
| sources = [ |
| "chromeos_video_decoder_factory.cc", |
| "chromeos_video_decoder_factory.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//media", |
| "//media/gpu:buildflags", |
| "//media/gpu:command_buffer_helper", |
| "//media/gpu:common", |
| ] |
| |
| if (use_vaapi || use_v4l2_codec) { |
| deps += [ "//media/gpu/linux:common" ] |
| } |
| |
| if (use_vaapi) { |
| deps += [ "//media/gpu/vaapi" ] |
| } |
| |
| if (use_v4l2_codec) { |
| deps += [ "//media/gpu/v4l2" ] |
| } |
| } |