| # Copyright 2020 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("//tools/generate_library_loader/generate_library_loader.gni") |
| |
| source_set("tts") { |
| sources = [ |
| "constants.cc", |
| "constants.h", |
| "tts_service.cc", |
| "tts_service.h", |
| ] |
| |
| deps = [ |
| ":libchrometts", |
| "//base", |
| "//chromeos/services/tts/public/mojom", |
| ] |
| } |
| |
| source_set("sandbox_hook") { |
| sources = [ |
| "tts_sandbox_hook.cc", |
| "tts_sandbox_hook.h", |
| ] |
| |
| deps = [ |
| ":libchrometts", |
| ":tts", |
| "//base", |
| "//sandbox/linux:sandbox_services", |
| "//services/service_manager/sandbox:sandbox", |
| ] |
| } |
| |
| generate_library_loader("libchrometts") { |
| name = "LibChromeTtsLoader" |
| output_h = "libchrometts.h" |
| output_cc = "libchrometts_loader.cc" |
| header = "<chrome_tts.h>" |
| bundled_header = "\"chromeos/services/tts/chrome_tts.h\"" |
| |
| functions = [ |
| "GoogleTtsSetLogger", |
| "GoogleTtsInit", |
| "GoogleTtsShutdown", |
| "GoogleTtsInstallVoice", |
| "GoogleTtsInitBuffered", |
| "GoogleTtsReadBuffered", |
| "GoogleTtsFinalizeBuffered", |
| "GoogleTtsGetEventBufferPtr", |
| "GoogleTtsGetEventBufferLen", |
| "GoogleTtsGetTimepointsCount", |
| "GoogleTtsGetTimepointsTimeInSecsAtIndex", |
| "GoogleTtsGetTimepointsCharIndexAtIndex", |
| ] |
| } |