Skip to content

Commit 542d52e

Browse files
committed
Bug 856370 - Add a Makefile.in in webspeech/recognition and remove webspeech top-level VPATH. r=smaug
--HG-- rename : content/media/webspeech/Makefile.in => content/media/webspeech/recognition/Makefile.in rename : content/media/webspeech/moz.build => content/media/webspeech/recognition/moz.build
1 parent 38e99e2 commit 542d52e

File tree

11 files changed

+81
-61
lines changed

11 files changed

+81
-61
lines changed

b2g/installer/package-manifest.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
@BINPATH@/components/dom_traversal.xpt
215215
@BINPATH@/components/dom_views.xpt
216216
#ifdef MOZ_WEBSPEECH
217-
@BINPATH@/components/dom_webspeech.xpt
217+
@BINPATH@/components/dom_webspeechrecognition.xpt
218218
#endif
219219
@BINPATH@/components/dom_xbl.xpt
220220
@BINPATH@/components/dom_xpath.xpt

b2g/installer/removed-files.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ run-mozilla.sh
1111
defaults/preferences/services-sync.js
1212
defaults/preferences/healthreport-prefs.js
1313
components/dom_sms.xpt
14+
components/dom_webspeech.xpt
1415
#ifdef MOZ_FOLD_LIBS
1516
@DLL_PREFIX@nspr4@DLL_SUFFIX@
1617
@DLL_PREFIX@plds4@DLL_SUFFIX@

browser/installer/package-manifest.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
@BINPATH@/components/dom_stylesheets.xpt
214214
@BINPATH@/components/dom_traversal.xpt
215215
#ifdef MOZ_WEBSPEECH
216-
@BINPATH@/components/dom_webspeech.xpt
216+
@BINPATH@/components/dom_webspeechrecognition.xpt
217217
#endif
218218
@BINPATH@/components/dom_xbl.xpt
219219
@BINPATH@/components/dom_xpath.xpt

browser/installer/removed-files.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ components/dom_wifi.xpt
9191
components/dom_system_b2g.xpt
9292
#endif
9393
components/dom_sms.xpt
94+
components/dom_webspeech.xpt
9495
components/uconvd.dll
9596
components/WeaveCrypto.js
9697
components/WeaveCrypto.manifest

content/media/webspeech/Makefile.in

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,11 @@
22
# License, v. 2.0. If a copy of the MPL was not distributed with this
33
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
44

5-
DEPTH := @DEPTH@
6-
topsrcdir := @top_srcdir@
7-
srcdir := @srcdir@
8-
VPATH := @srcdir@
5+
DEPTH = @DEPTH@
6+
topsrcdir = @top_srcdir@
7+
srcdir = @srcdir@
8+
VPATH = @srcdir@
99

1010
include $(DEPTH)/config/autoconf.mk
11-
include $(topsrcdir)/dom/dom-config.mk
1211

13-
VPATH += \
14-
$(srcdir)/recognition \
15-
$(srcdir)/recognition/test \
16-
$(NULL)
17-
18-
LIBRARY_NAME := gkconwebspeech_s
19-
LIBXUL_LIBRARY := 1
20-
21-
LOCAL_INCLUDES += $(VPATH:%=-I%)
22-
23-
CPPSRCS := \
24-
EnableWebSpeechRecognitionCheck.cpp \
25-
SpeechGrammar.cpp \
26-
SpeechGrammarList.cpp \
27-
SpeechRecognitionAlternative.cpp \
28-
SpeechRecognition.cpp \
29-
SpeechRecognitionResult.cpp \
30-
SpeechRecognitionResultList.cpp \
31-
SpeechStreamListener.cpp \
32-
endpointer.cc \
33-
energy_endpointer.cc \
34-
energy_endpointer_params.cc \
35-
FakeSpeechRecognitionService.cpp \
36-
$(NULL)
37-
38-
EXPORTS_NAMESPACES := mozilla/dom
39-
EXPORTS_mozilla/dom := \
40-
FakeSpeechRecognitionService.h \
41-
SpeechGrammar.h \
42-
SpeechGrammarList.h \
43-
SpeechRecognitionAlternative.h \
44-
SpeechRecognition.h \
45-
SpeechRecognitionResult.h \
46-
SpeechRecognitionResultList.h \
47-
SpeechStreamListener.h \
48-
$(NULL)
49-
50-
FORCE_STATIC_LIB := 1
51-
52-
include $(topsrcdir)/config/config.mk
53-
include $(topsrcdir)/ipc/chromium/chromium-config.mk
5412
include $(topsrcdir)/config/rules.mk

content/media/webspeech/moz.build

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,4 @@
33
# License, v. 2.0. If a copy of the MPL was not distributed with this
44
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
55

6-
MODULE = 'content'
7-
8-
XPIDL_MODULE = 'dom_webspeech'
9-
10-
XPIDL_SOURCES = [
11-
'nsIDOMSpeechRecognitionEvent.idl',
12-
'nsIDOMSpeechRecognitionError.idl',
13-
'nsISpeechRecognitionService.idl'
14-
]
15-
16-
TEST_DIRS += ['recognition/test']
6+
PARALLEL_DIRS = ['recognition']
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
DEPTH := @DEPTH@
6+
topsrcdir := @top_srcdir@
7+
srcdir := @srcdir@
8+
VPATH := @srcdir@
9+
10+
include $(DEPTH)/config/autoconf.mk
11+
include $(topsrcdir)/dom/dom-config.mk
12+
13+
VPATH += \
14+
$(srcdir)/test \
15+
$(NULL)
16+
17+
LIBRARY_NAME := gkconwebspeechrecognition_s
18+
LIBXUL_LIBRARY := 1
19+
20+
LOCAL_INCLUDES += $(VPATH:%=-I%)
21+
22+
CPPSRCS := \
23+
EnableWebSpeechRecognitionCheck.cpp \
24+
SpeechGrammar.cpp \
25+
SpeechGrammarList.cpp \
26+
SpeechRecognitionAlternative.cpp \
27+
SpeechRecognition.cpp \
28+
SpeechRecognitionResult.cpp \
29+
SpeechRecognitionResultList.cpp \
30+
SpeechStreamListener.cpp \
31+
endpointer.cc \
32+
energy_endpointer.cc \
33+
energy_endpointer_params.cc \
34+
FakeSpeechRecognitionService.cpp \
35+
$(NULL)
36+
37+
EXPORTS_NAMESPACES := mozilla/dom
38+
EXPORTS_mozilla/dom := \
39+
FakeSpeechRecognitionService.h \
40+
SpeechGrammar.h \
41+
SpeechGrammarList.h \
42+
SpeechRecognitionAlternative.h \
43+
SpeechRecognition.h \
44+
SpeechRecognitionResult.h \
45+
SpeechRecognitionResultList.h \
46+
SpeechStreamListener.h \
47+
$(NULL)
48+
49+
FORCE_STATIC_LIB := 1
50+
51+
include $(topsrcdir)/config/config.mk
52+
include $(topsrcdir)/ipc/chromium/chromium-config.mk
53+
include $(topsrcdir)/config/rules.mk
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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/.
5+
6+
MODULE = 'content'
7+
8+
XPIDL_MODULE = 'dom_webspeechrecognition'
9+
10+
XPIDL_SOURCES = [
11+
'nsIDOMSpeechRecognitionEvent.idl',
12+
'nsIDOMSpeechRecognitionError.idl',
13+
'nsISpeechRecognitionService.idl'
14+
]
15+
16+
TEST_DIRS += ['test']

layout/build/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ endif
210210

211211
ifdef MOZ_WEBSPEECH
212212
SHARED_LIBRARY_LIBS += \
213-
$(DEPTH)/content/media/webspeech/$(LIB_PREFIX)gkconwebspeech_s.$(LIB_SUFFIX) \
213+
$(DEPTH)/content/media/webspeech/recognition/$(LIB_PREFIX)gkconwebspeechrecognition_s.$(LIB_SUFFIX) \
214214
$(NULL)
215215
endif
216216

mobile/android/installer/package-manifest.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
@BINPATH@/components/dom_traversal.xpt
144144
@BINPATH@/components/dom_views.xpt
145145
#ifdef MOZ_WEBSPEECH
146-
@BINPATH@/components/dom_webspeech.xpt
146+
@BINPATH@/components/dom_webspeechrecognition.xpt
147147
#endif
148148
@BINPATH@/components/dom_xbl.xpt
149149
@BINPATH@/components/dom_xpath.xpt

0 commit comments

Comments
 (0)