summaryrefslogtreecommitdiff
path: root/chromium/chromeos/services/tts/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chromeos/services/tts/BUILD.gn')
-rw-r--r--chromium/chromeos/services/tts/BUILD.gn58
1 files changed, 58 insertions, 0 deletions
diff --git a/chromium/chromeos/services/tts/BUILD.gn b/chromium/chromeos/services/tts/BUILD.gn
new file mode 100644
index 00000000000..e2feb37c081
--- /dev/null
+++ b/chromium/chromeos/services/tts/BUILD.gn
@@ -0,0 +1,58 @@
+# 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",
+ ]
+}