| # Copyright 2018 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("//build/config/chromecast_build.gni") |
| import("//chromecast/chromecast.gni") |
| import("//media/media_options.gni") |
| |
| cast_source_set("av_sync_video") { |
| sources = [ |
| "av_sync_video.cc", |
| "av_sync_video.h", |
| ] |
| deps = [ |
| "//base", |
| "//chromecast/base", |
| "//chromecast/media/cma/backend:for_mixer_audio", |
| "//chromecast/public", |
| "//chromecast/public/media", |
| ] |
| } |
| |
| cast_source_set("cast_media_shlib_common") { |
| sources = [ |
| "cast_media_shlib_common.cc", |
| ] |
| deps = [ |
| "//base", |
| "//chromecast/public/media", |
| ] |
| } |
| |
| cast_source_set("cast_media_shlib_default") { |
| sources = [ |
| "cast_media_shlib_default.cc", |
| ] |
| deps = [ |
| ":cast_media_shlib_common", |
| "//base", |
| "//chromecast/base", |
| "//chromecast/media/cma/backend:for_mixer_audio", |
| "//chromecast/public", |
| ] |
| } |
| |
| cast_source_set("libcast_media_1.0_avsync") { |
| deps = [ |
| ":av_sync_video", |
| ":cast_media_shlib_default", |
| "//chromecast/base", |
| "//chromecast/media/cma/backend:for_mixer_audio", |
| "//chromecast/public/media", |
| "//media", |
| ] |
| |
| if (use_alsa) { |
| deps += [ "//chromecast/media/cma/backend/alsa:cma_backend_support" ] |
| if (!is_cast_desktop_build) { |
| libs = [ "videodecoderformixer" ] |
| } else { |
| deps += |
| [ "//chromecast/media/cma/backend/desktop:video_decoder_for_mixer" ] |
| } |
| } |
| |
| if (is_fuchsia) { |
| deps += [ "//chromecast/media/cma/backend:null_video" ] |
| } |
| } |