content/media/webspeech/synth/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 # vim: set filetype=python:
     2 # This Source Code Form is subject to the terms of the Mozilla Public
     3 # License, v. 2.0. If a copy of the MPL was not distributed with this
     4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     6 if CONFIG['MOZ_WEBSPEECH']:
     8     TEST_DIRS += ['test', 'ipc/test']
    10     XPIDL_MODULE = 'dom_webspeechsynth'
    12     XPIDL_SOURCES += [
    13         'nsIDOMSpeechSynthesisEvent.idl',
    14         'nsISpeechService.idl',
    15         'nsISynthVoiceRegistry.idl'
    16     ]
    18     EXPORTS.mozilla.dom += [
    19         'ipc/SpeechSynthesisChild.h',
    20         'ipc/SpeechSynthesisParent.h',
    21         'nsSpeechTask.h',
    22         'nsSynthVoiceRegistry.h',
    23         'SpeechSynthesis.h',
    24         'SpeechSynthesisUtterance.h',
    25         'SpeechSynthesisVoice.h',
    26     ]
    28     UNIFIED_SOURCES += [
    29         'ipc/SpeechSynthesisChild.cpp',
    30         'ipc/SpeechSynthesisParent.cpp',
    31         'nsSpeechTask.cpp',
    32         'nsSynthVoiceRegistry.cpp',
    33         'SpeechSynthesis.cpp',
    34         'SpeechSynthesisUtterance.cpp',
    35         'SpeechSynthesisVoice.cpp',
    36     ]
    38     if CONFIG['MOZ_SYNTH_PICO']:
    39         PARALLEL_DIRS = ['pico']
    41 IPDL_SOURCES += [
    42     'ipc/PSpeechSynthesis.ipdl',
    43     'ipc/PSpeechSynthesisRequest.ipdl',
    44 ]
    46 FAIL_ON_WARNINGS = True
    48 include('/ipc/chromium/chromium-config.mozbuild')
    50 FINAL_LIBRARY = 'gklayout'
    51 LOCAL_INCLUDES += [
    52     'ipc',
    53 ]

mercurial