1 # vim: set filetype=python:
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 if CONFIG["MOZ_WEBSPEECH"]:
7 MOCHITEST_MANIFESTS += [
9 "test/startup/mochitest.toml",
12 XPIDL_MODULE = "dom_webspeechsynth"
14 XPIDL_SOURCES += ["nsISpeechService.idl", "nsISynthVoiceRegistry.idl"]
16 EXPORTS.mozilla.dom += [
17 "ipc/SpeechSynthesisChild.h",
18 "ipc/SpeechSynthesisParent.h",
20 "nsSynthVoiceRegistry.h",
22 "SpeechSynthesisUtterance.h",
23 "SpeechSynthesisVoice.h",
27 "ipc/SpeechSynthesisChild.cpp",
28 "ipc/SpeechSynthesisParent.cpp",
30 "nsSynthVoiceRegistry.cpp",
31 "SpeechSynthesis.cpp",
32 "SpeechSynthesisUtterance.cpp",
33 "SpeechSynthesisVoice.cpp",
36 if CONFIG["MOZ_WEBSPEECH_TEST_BACKEND"]:
37 UNIFIED_SOURCES += ["test/nsFakeSynthServices.cpp"]
40 "test/components.conf",
43 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
46 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
49 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
52 if CONFIG["MOZ_SYNTH_SPEECHD"]:
56 "ipc/PSpeechSynthesis.ipdl",
57 "ipc/PSpeechSynthesisRequest.ipdl",
60 include("/ipc/chromium/chromium-config.mozbuild")