content/media/directshow/moz.build

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 # -*- Mode: python; c-basic-offset: 4; 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/.
     7 EXPORTS += [
     8     'AudioSinkFilter.h',
     9     'AudioSinkInputPin.h',
    10     'DirectShowDecoder.h',
    11     'DirectShowReader.h',
    12     'DirectShowUtils.h',
    13 ]
    15 UNIFIED_SOURCES += [
    16     'AudioSinkInputPin.cpp',
    17     'DirectShowDecoder.cpp',
    18     'DirectShowReader.cpp',
    19     'DirectShowUtils.cpp',
    20     'SampleSink.cpp',
    21     'SourceFilter.cpp',
    22 ]
    24 SOURCES += [
    25     'AudioSinkFilter.cpp',
    26 ]
    28 # If WebRTC isn't being built, we need to compile the DirectShow base classes so that
    29 # they're available at link time.
    30 if not CONFIG['MOZ_WEBRTC']:
    31     SOURCES += [ '%s/%s' % (TOPSRCDIR, p) for p in [
    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     ]]
    38 FAIL_ON_WARNINGS = True
    40 FINAL_LIBRARY = 'gklayout'
    41 LOCAL_INCLUDES += [
    42     '/media/webrtc/trunk/webrtc/modules/video_capture/windows',
    43 ]

mercurial