naiveproxy/ios/chrome/browser/ui/voice/BUILD.gn
2018-08-14 22:19:20 +00:00

64 lines
1.6 KiB
Plaintext

# Copyright 2015 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.
source_set("voice") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"text_to_speech_notification_handler.h",
"text_to_speech_notification_handler.mm",
"text_to_speech_playback_controller.h",
"text_to_speech_playback_controller.mm",
"text_to_speech_playback_controller_factory.h",
"text_to_speech_playback_controller_factory.mm",
"text_to_speech_player+subclassing.h",
"text_to_speech_player.h",
"text_to_speech_player.mm",
"voice_search_notification_names.h",
"voice_search_notification_names.mm",
]
deps = [
"//base",
"//components/keyed_service/core",
"//components/keyed_service/ios",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/web_state_list",
"//ios/web/public",
]
libs = [ "AVFoundation.framework" ]
}
source_set("unit_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [
"text_to_speech_player_unittest.mm",
]
deps = [
":voice",
":voice_unit_tests_bundle_data",
"//base",
"//base/test:test_support",
"//ios/web",
"//ios/web/public/test",
"//testing/gtest",
"//url",
]
}
bundle_data("voice_unit_tests_bundle_data") {
visibility = [ ":unit_tests" ]
testonly = true
sources = [
"//ios/chrome/test/data/voice/test_sound.m4a",
]
outputs = [
"{{bundle_resources_dir}}/{{source_root_relative_dir}}/" +
"{{source_file_part}}",
]
}