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']