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 MOCHITEST_MANIFESTS += ["test/mochitest.toml"]
8 XPIDL_MODULE = "dom_webspeechrecognition"
10 XPIDL_SOURCES = ["nsISpeechRecognitionService.idl"]
12 EXPORTS.mozilla.dom += [
13 "OnlineSpeechRecognitionService.h",
15 "SpeechGrammarList.h",
16 "SpeechRecognition.h",
17 "SpeechRecognitionAlternative.h",
18 "SpeechRecognitionResult.h",
19 "SpeechRecognitionResultList.h",
20 "SpeechTrackListener.h",
25 "energy_endpointer.h",
26 "energy_endpointer_params.h",
29 if CONFIG["MOZ_WEBSPEECH_TEST_BACKEND"]:
30 EXPORTS.mozilla.dom += [
31 "test/FakeSpeechRecognitionService.h",
36 "energy_endpointer.cc",
37 "energy_endpointer_params.cc",
38 "OnlineSpeechRecognitionService.cpp",
40 "SpeechGrammarList.cpp",
41 "SpeechRecognition.cpp",
42 "SpeechRecognitionAlternative.cpp",
43 "SpeechRecognitionResult.cpp",
44 "SpeechRecognitionResultList.cpp",
45 "SpeechTrackListener.cpp",
48 if CONFIG["MOZ_WEBSPEECH_TEST_BACKEND"]:
50 "test/FakeSpeechRecognitionService.cpp",
59 "/toolkit/components/jsoncpp/include",
62 include("/ipc/chromium/chromium-config.mozbuild")