# 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("task_runner_lifetime_handler") { sources = [ "task_runner_lifetime_handler.cc", "task_runner_lifetime_handler.h", ] deps = [ "//base", "//chromecast/base", "//chromecast/public", ] } cast_source_set("cast_media_shlib_common") { sources = [ "cast_media_shlib_common.cc", ] deps = [ "//chromecast/media/cma/backend:for_mixer_audio", "//chromecast/public", "//chromecast/public/media", ] } cast_source_set("cast_media_shlib_default") { sources = [ "cast_media_shlib_default.cc", ] deps = [ ":cast_media_shlib_common", ":task_runner_lifetime_handler", "//base", "//chromecast/base", "//chromecast/media/cma/backend:for_mixer_audio", "//chromecast/public", ] } cast_shared_library("libcast_media_1.0_avsync") { deps = [ ":av_sync_video", ":cast_media_shlib_default", ":task_runner_lifetime_handler", "//chromecast/base:base", "//chromecast/media/cma/backend:for_mixer_audio", "//chromecast/public/media", "//media", ] if (use_alsa) { deps += [ "//chromecast/media/cma/backend/alsa:cma_backend_support" ] libs = [ "videodecoderformixer" ] } }