From 348ee215c31838bb560f4b2fbf236b82354ff95a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20Gon=C3=83=C2=A7alves?= Date: Mon, 1 Jul 2013 09:27:09 -0400 Subject: [PATCH] Bug 884407 - Only build SpeechRecognitionError when MOZ_WEBSPEECH is enabled. r=smaug --- content/events/src/moz.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/events/src/moz.build b/content/events/src/moz.build index 6b071c321d1b..143b8f6b5404 100644 --- a/content/events/src/moz.build +++ b/content/events/src/moz.build @@ -16,10 +16,12 @@ EXPORTS += [ ] EXPORTS.mozilla.dom += [ - 'SpeechRecognitionError.h', 'Touch.h', ] +if CONFIG['MOZ_WEBSPEECH']: + EXPORTS.mozilla.dom += ['SpeechRecognitionError.h'] + CPP_SOURCES += [ 'DOMWheelEvent.cpp', 'EventTarget.cpp', @@ -60,5 +62,7 @@ CPP_SOURCES += [ 'nsIMEStateManager.cpp', 'nsPaintRequest.cpp', 'nsPrivateTextRange.cpp', - 'SpeechRecognitionError.cpp', ] + +if CONFIG['MOZ_WEBSPEECH']: + CPP_SOURCES += ['SpeechRecognitionError.cpp']