1# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2# vim: set filetype=python:
3# This Source Code Form is subject to the terms of the Mozilla Public
4# License, v. 2.0. If a copy of the MPL was not distributed with this
5# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7EXPORTS += [
8    'AudioSinkFilter.h',
9    'AudioSinkInputPin.h',
10    'DirectShowDecoder.h',
11    'DirectShowReader.h',
12    'DirectShowUtils.h',
13]
14
15UNIFIED_SOURCES += [
16    'DirectShowDecoder.cpp',
17    'DirectShowUtils.cpp',
18    'SourceFilter.cpp',
19]
20
21SOURCES += [
22    'AudioSinkFilter.cpp',
23    'AudioSinkInputPin.cpp',
24    'DirectShowReader.cpp',
25    'SampleSink.cpp',
26]
27
28# If WebRTC isn't being built, we need to compile the DirectShow base classes so that
29# they're available at link time.
30if not CONFIG['MOZ_WEBRTC']:
31    SOURCES += [
32        '/media/webrtc/trunk/webrtc/modules/video_capture/windows/BaseFilter.cpp',
33        '/media/webrtc/trunk/webrtc/modules/video_capture/windows/BaseInputPin.cpp',
34        '/media/webrtc/trunk/webrtc/modules/video_capture/windows/BasePin.cpp',
35        '/media/webrtc/trunk/webrtc/modules/video_capture/windows/MediaType.cpp',
36    ]
37
38FINAL_LIBRARY = 'xul'
39LOCAL_INCLUDES += [
40    '/media/webrtc/trunk/webrtc/modules/video_capture/windows',
41]
42