blob: 8c7b370162c35b697035c2b0175246414e939a9e [file] [log] [blame]
# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
assert(is_chromeos)
static_library("live_caption") {
sources = [
"system_live_caption_service.cc",
"system_live_caption_service.h",
"system_live_caption_service_factory.cc",
"system_live_caption_service_factory.h",
]
deps = [
"//ash/webui/settings/public/constants:mojom",
"//chromeos/ash/components/browser_context_helper",
"//chromeos/ash/experiences/settings_ui",
"//components/live_caption",
"//components/live_caption:constants",
"//components/live_caption:live_translate",
"//components/live_caption:utils",
"//media/mojo/mojom",
]
public_deps = [
"//ash",
"//base",
"//chrome/browser:browser_public_dependencies",
"//chrome/browser/profiles:profile",
"//chromeos/ash/components/audio",
"//components/soda",
"//components/soda:constants",
]
}
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [ "system_live_caption_service_browsertest.cc" ]
deps = [
":live_caption",
"//base",
"//chrome/browser/ash/login/session",
"//chrome/test:test_support",
"//components/live_caption",
"//components/live_caption:constants",
]
}