Bug 1943761 - Add class alignment to the mozsearch analysis file. r=asuth
[gecko.git] / dom / media / webspeech / synth / moz.build
blob2cf19982b2c6382c5900ffc5988c3b449f8b1c0f
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 += [
8         "test/mochitest.toml",
9         "test/startup/mochitest.toml",
10     ]
12     XPIDL_MODULE = "dom_webspeechsynth"
14     XPIDL_SOURCES += ["nsISpeechService.idl", "nsISynthVoiceRegistry.idl"]
16     EXPORTS.mozilla.dom += [
17         "ipc/SpeechSynthesisChild.h",
18         "ipc/SpeechSynthesisParent.h",
19         "nsSpeechTask.h",
20         "nsSynthVoiceRegistry.h",
21         "SpeechSynthesis.h",
22         "SpeechSynthesisUtterance.h",
23         "SpeechSynthesisVoice.h",
24     ]
26     UNIFIED_SOURCES += [
27         "ipc/SpeechSynthesisChild.cpp",
28         "ipc/SpeechSynthesisParent.cpp",
29         "nsSpeechTask.cpp",
30         "nsSynthVoiceRegistry.cpp",
31         "SpeechSynthesis.cpp",
32         "SpeechSynthesisUtterance.cpp",
33         "SpeechSynthesisVoice.cpp",
34     ]
36     if CONFIG["MOZ_WEBSPEECH_TEST_BACKEND"]:
37         UNIFIED_SOURCES += ["test/nsFakeSynthServices.cpp"]
39         XPCOM_MANIFESTS += [
40             "test/components.conf",
41         ]
43     if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
44         DIRS += ["windows"]
46     if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
47         DIRS += ["cocoa"]
49     if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
50         DIRS += ["android"]
52     if CONFIG["MOZ_SYNTH_SPEECHD"]:
53         DIRS += ["speechd"]
55     IPDL_SOURCES += [
56         "ipc/PSpeechSynthesis.ipdl",
57         "ipc/PSpeechSynthesisRequest.ipdl",
58     ]
60 include("/ipc/chromium/chromium-config.mozbuild")
62 FINAL_LIBRARY = "xul"
63 LOCAL_INCLUDES += [
64     "ipc",