diff --git a/content/media/fmp4/moz.build b/content/media/fmp4/moz.build index 01394cb1c9eb..fc63df6aef82 100644 --- a/content/media/fmp4/moz.build +++ b/content/media/fmp4/moz.build @@ -8,10 +8,6 @@ EXPORTS += [ 'MP4Decoder.h', 'MP4Reader.h', 'PlatformDecoderModule.h', - 'wmf/MFTDecoder.h', - 'wmf/WMFAudioDecoder.h', - 'wmf/WMFDecoderModule.h', - 'wmf/WMFVideoDecoder.h', ] EXPORTS.mp4_demuxer += [ @@ -53,12 +49,22 @@ SOURCES += [ 'MP4Decoder.cpp', 'MP4Reader.cpp', 'PlatformDecoderModule.cpp', - 'wmf/MFTDecoder.cpp', - 'wmf/WMFAudioDecoder.cpp', - 'wmf/WMFDecoderModule.cpp', - 'wmf/WMFVideoDecoder.cpp', ] +if CONFIG['MOZ_WMF']: + EXPORTS += [ + 'wmf/MFTDecoder.h', + 'wmf/WMFAudioDecoder.h', + 'wmf/WMFDecoderModule.h', + 'wmf/WMFVideoDecoder.h', + ] + SOURCES += [ + 'wmf/MFTDecoder.cpp', + 'wmf/WMFAudioDecoder.cpp', + 'wmf/WMFDecoderModule.cpp', + 'wmf/WMFVideoDecoder.cpp', + ] + FINAL_LIBRARY = 'gklayout' FAIL_ON_WARNINGS = True